SQL> alter tablespace ts_stage add datafile '+NSP' size 20m;
Creating Tablespace with Auto Extend On #
create tablespace ts_vmstat datafile ‘+NSP’ size 20m auto extend on;
Size of table space is automatically extended as the datafile is filled
We cannot auto extend on for tablespace. It can occupy the size of the file system. To avoid this scenario we specify max size option while we create tablespace on database as follows
SQL> create tablespace ts_vmdata datafile ‘+NSP’ size 100m AUTOEXTEND ON NEXT 20m MAXSIZE 200m;
When we create Tablespace, To Check Tablespace is Autoextensible ?
column tablespace_name format A20
column file_name format A20
column bytes format A10
column autoextensible format A15
column increment_by format A15
select tablespace_name, file_name, bytes/1048576 File_Size_MB, autoextensible from dba_data_files order by file_id;
Turnning off Auto Extended for datafile #
SQL> alter database datafile ‘PATH’ autoextend off;
To check datafile Offline and Online Status
column file_name format A50
column online_status format A18
select file_name,file_id,online_status from dba_data_files;
TO check datafile size
set linesize 120
col file_name formar a80
select file_name, sum(bytes)/1024/1024 df_size from dba_data_files group by file_name;
How to Resize datafile
SQL> alter database datafile '+NSP/oval009/datafile/ts_stage.281.912735591' resize 40m;
GRID infrastructure Installation Failed with Error in invoking "mkldflags ntcontab.o nnfgt.o' of makefile '/u01/app/11.2.0/grid/network/lib/ins_net_client.mk' #### Rootcause# Ignored pre-checks for packages during installation #
We can find Master Node by querying CRSD and CSSD logs
[root@tnc1 cssd]# pwd
/u01/app/11.2.0/grid/log/tnc1/cssd
Querying cssd logs to find Master Node information #
[root@tnc1 cssd]# for x in `ls -tr ocssd.*`; do grep -i "master node" $x ; done | tail -1
2016-05-14 01:29:06.282: [ CSSD][4099299072]clssgmCMReconfig: reconfiguration successful, incarnation 358651350 with 2 nodes, local node number 1, master node number 1
We know that ocr is backuped by CRSD demon by master node query ocrconfig to find out Master Node in RAC Cluster #
tnc2 239627031 C2A63A5807C20F7415001E62A0FCFBE93ECED91352A330C24A15C3A544553A62 The binary and checksum values of the following nodes does not match with that of tnc1 (local node)
tnc2 -------------------------------------------------------------------------------- OPatch Session completed with warnings. OPatch completed with warnings.