Script-Database structure and file location

Source: Internet
Author: User

1. control Filesset pagesize 500 set linesize 130 Prompt Control Files Location >>> col name format a60 heading "Control Files" select name from sys. v _ $ controlfile/2. redo Log FilesPrompt Prompt Redo Log File Locations >>> Prompt col Grp format 9999 col member format a50 heading "Online REDO Logs" col File # format 9999 col name format a50 heading "Online REDO logs "break on Grp select group #, member from sys. v _ $ logfile/3. data FilesPrompt Data Files Locations >>> col Tspace format a25 col status format a3 heading Sta col Id format 9999 col Mbyte format 999999999 col name format a50 heading "Database Data Files" col Reads format 99,999,999 col Writes format 99,999,999 break on report www.2cto. comcompute sum label 'total (MB) 'of Mbyte on report select F. file_id Id, F. file_name name, F. bytes/(1024*1024) Mbyte, decode (F. status, 'available', 'OK', F. status) status, F. tablespace_name Tspace from sys. dba_data_files F order by tablespace_name;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.