Orcrconfig - Showbackup: Metadata Blocks
Orcrconfig - Showbackup: Metadata Blocks
Orcrconfig - Showbackup: Metadata Blocks
$ orcrconfig –showbackup
An ASM instance manages metadata needed to make ASM files available to Oracle
databases and ASM clients. ASM metadata is stored in disk groups – in metadata
blocks.
Each ASM disk has ASM metadata, with some of this metadata relevant to that disk
only and some relevant to the whole disk group. For example, the ASM disk header
is relevant to that disk only, while the Partnership and Status Table (PST) is relevant
to the whole disk group.
Disk header
Free Space Table (FST)
Allocation Table (AT)
Partnership and Status Table (PST)
what tablespace to can do offline
SYSTEM
The undo tablespace
Temporary tablespaces
RC_BACKUP_SET
BACKUP_TYPE column= D, I or L
The type of the backup: D (full backup or level 0 incremental), I (incremental level
1), L(archived redo log).
HOW TO ANALYZE A TABLE
Oracle will collect statistic on the number of rows, the number of empty data blocks,
the number of blocks below the high water mark, the average row length, and the
number of chained rows in a table when the Oracle ANALYZE TABLE command is
performed:
what is root.sh
orainstRoot.sh
1)It creates the inventory pointer file (/etc/oraInst.loc),This file shows the inventory
location and group it is linked to.
2)It Changes groupname of the oraInventory directory to oinstall group.
eg,
/u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
root.sh
1)This will Creates a /etc/oratab file.This is the file which we use to make automatic
Database shutdown and startup.
How to take backup ( DP ) – using SCN number
what is control file, if control file is missing how you can recover
rman catalog=rman/rman@catdb
IN WHICH COMMAND WILL U SEE WHICH PROCESS IS USING THE FILES IN UNIX
Lsof
Explained
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
--------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost |
--------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1| 2| 2|
| 1 | TABLE ACCESS FULL | DUAL | 1| 2| 2|
--------------------------------------------------------------------
Note: cpu costing is off
The EXPLAIN PLAN statement displays execution plans chosen by the optimizer for SELECT, UPDATE, INSERT, and
DELETE statements. A statement execution plan is the sequence of operations that the database performs to run the
statement.
How to Create a Batch File in Windows. Open a text file, such as a Notepad or WordPad document. Add your
commands, starting with @echo [off], followed by—each in a new line—title [title of your batch script], echo [first
line], and pause. Save your file with the file extension .bat, for example, test.bat.