Set up a friendly environment to share my understanding and ideas about Oracle / Oracle Spatial database administration, ESRI ArcSDE Geodatabase administration and UNIX (Solaris) operating system.
V$DBLINK describes all database links (links with IN_TRANSACTION = YES) opened by the session issuing the query on V$DBLINK. These database links must be committed or rolled back before being closed.
Column
Datatype
Description
DB_LINK
VARCHAR2(128)
Name of the database link
OWNER_ID
NUMBER
Owner of the database link UID
LOGGED_ON
VARCHAR2(3)
Whether the database link is currently logged on
HETEROGENEOUS
VARCHAR2(3)
Whether the database link is heterogeneous
PROTOCOL
VARCHAR2(6)
Communication protocol for the database link
OPEN_CURSORS
NUMBER
Whether there are open cursors for the database link
IN_TRANSACTION
VARCHAR2(3)
Whether the database link is currently in a transaction
UPDATE_SENT
VARCHAR2(3)
Whether there has been an update on the database link
COMMIT_POINT_STRENGTH
NUMBER
Commit point strength of the transactions on the database link
Note:
1.DBA_DB_LINKSdescribes all database links in the database.ALL_DB_LINKSdescribes the database links accessible to the current user.USER_DB_LINKS describes the database links owned by the current user.
2.How to close and expire database link (Metalink 473635.1)
Database link is opened one for every session. Following are the ways links could be closed
A) Only session which opened the database link can close it. Database link are closed when the session is closed.
select * from DBA_DB_LINKS --->will show database links created select * from V$DBLINK---> will lists all open/active database links in your session
B) Using ALTER SESSION or explicitly using command:
alter session close database link ;
or Use the following package: dbms_session.close_database_link();
C) It is also possible to set idle_time limit to user under which connects dblink.
On the server side of dblink (target of dblink) issue:
create profile pidle limit idle_time 5; -- 5 minutes alter user test profile pidle; -- user under which connects dblink alter system set resource_limit=true; -- must be set to work idle_time limit
(or add resource_limit=trueto init.ora or both)
V$BACKUP_PIECE displays information about backup pieces from the control file. Each backup set consists of one or more backup pieces.
Column
Datatype
Description
RECID
NUMBER
Backup piece record ID
STAMP
NUMBER
Backup piece record stamp
SET_STAMP
NUMBER
Backup set stamp
SET_COUNT
NUMBER
Backup set count
PIECE#
NUMBER
Backup piece number (1-N)
COPY#
NUMBER
Indicates the copy number for backup pieces created with duplex enabled. 1 if the backup piece is not duplexed.
DEVICE_TYPE
VARCHAR2(17)
Type of the device on which the backup piece resides. Set to DISK for backup sets on disk.
See Also: V$BACKUP_DEVICE
HANDLE
VARCHAR2(513)
Backup piece handle identifies the backup piece on restore
COMMENTS
VARCHAR2(64)
Comment returned by the operating system or storage subsystem. Set to NULL for backup pieces on disk. This value is informational only; not needed for restore.
MEDIA
VARCHAR2(65)
Name of the media on which the backup piece resides. This value is informational only; not needed for restore.
MEDIA_POOL
NUMBER
The media pool in which the copy resides. This is the same value that was entered in the POOL operand of the Recovery Manager BACKUP command.
CONCUR
VARCHAR2(3)
(YES | NO) Indicates whether the piece on a media that can be accessed concurrently
TAG
VARCHAR2(32)
Backup piece tag. The tag is specified at backup set level, but stored at piece level.
STATUS
VARCHAR2(1)
Indicates the status of the piece: A (available), D (deleted), or X (expired)
START_TIME
DATE
Starting time
COMPLETION_TIME
DATE
Completion time
ELAPSED_SECONDS
NUMBER
Number of elapsed seconds
DELETED
VARCHAR2(3)
(YES/NO) NO indicates that the file still exists. YES indicates the file no longer exists because it has been deleted.
BYTES
NUMBER
Size of the backup piece (in bytes)
IS_RECOVERY_DEST_FILE
VARCHAR2(3)
Indicates whether the file was created in the flash recovery area (YES) or not (NO)
RMAN_STATUS_RECID
NUMBER
Owning V$RMAN_STATUS record ID
RMAN_STATUS_STAMP
NUMBER
Owning V$RMAN_STATUS record stamp
COMPRESSED
VARCHAR2(3)
Indicates whether the backup piece is compressed (YES) or not (NO)
BACKED_BY_VSS
VARCHAR2(3)
Whether or not the file has been backed up by Volume Shadow Copy Service (VSS). This column is reserved for internal use.
I reserve the right to delete comments that are not contributing to the overall theme of the BLOG or are insulting or demeaning to anyone. The posts on this BLOG are provided "as is" with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer.