Documente Academic
Documente Profesional
Documente Cultură
----------------------------------
startup or
startup mount(it will directly start the db into mount stage)
STOP DATABASE
---------------
srvctl stop database -d PRODB -o normal
START DATABASE
----------------
srvctl start database -d PRODB -o nomount
--------------------------------------------------------------
To know location of alert log
--------------------------------------------------------------
---------------------------------------------------------
To check freespace in Tablespace
---------------------------------------------------------
SELECT Total.name "Tablespace Name",total_space,
round(nvl(total_space-Free_space, 0),2) Used_space,
round(nvl(Free_space, 0),2) Free_space,
round((nvl(total_space-Free_space, 0)/ total_space)*100,2) "UsedPCT%"
FROM
(select tablespace_name, sum(bytes/1024/1024) Free_Space
from sys.dba_free_space
group by tablespace_name
) Free,
(select b.name, sum(bytes/1024/1024) TOTAL_SPACE
from sys.v_$datafile a, sys.v_$tablespace B
where a.ts# = b.ts#
group by b.name
) Total
WHERE Free.Tablespace_name(+) = Total.name
ORDER BY 5 desc;
%%%%%%%%%%%%%%%%%%%% To check the datafile path & Partition of Tbl Space %%%%%%%%%%
%%%%%%%%%%%%
2 nd step :
#############
select
file_name,tablespace_name,BYTES/1024/1024/1024,AUTOEXTENSIBLE,MAXBYTES/1024/1024/10
24 from dba_data_files order by 3;
alter tablespace TBS_DIGPRDUSR add datafile '+DATDIG1' size 30G AUTOEXTEND ON;