update : 25-06-2017

DBA Script : dba_controlfile_records.sql

-- | FILE : dba_controlfile_records.sql |
-- +----------------------------------------------------------------------------+
-- | |
-- | |
-- | www.high-oracle.com |
-- |----------------------------------------------------------------------------|
-- | www.high-oracle.com |
-- |----------------------------------------------------------------------------|
-- | DATABASE : Oracle |
-- | FILE : dba_controlfile_records.sql |
-- | CLASS : Database Administration |
-- | PURPOSE : Query information information about the control file record |
-- | sections. |
-- | NOTE : As with any code, ensure to test this script in a development |
-- | environment before attempting to run it in production. |
-- +----------------------------------------------------------------------------+
SET TERMOUT OFF;
COLUMN current_instance NEW_VALUE current_instance NOPRINT;
SELECT rpad(instance_name, 17) current_instance FROM v$instance;
SET TERMOUT ON;
PROMPT
PROMPT +------------------------------------------------------------------------+
PROMPT | Report : Control File Records |
PROMPT | Instance : ¤t_instance |
PROMPT +------------------------------------------------------------------------+
SET ECHO OFF
SET FEEDBACK 6
SET HEADING ON
SET LINESIZE 180
SET PAGESIZE 50000
SET TERMOUT ON
SET TIMING OFF
SET TRIMOUT ON
SET TRIMSPOOL ON
SET VERIFY OFF
CLEAR COLUMNS
CLEAR BREAKS
CLEAR COMPUTES
COLUMN type FORMAT a30 HEADING "Record Section Type"
COLUMN record_size FORMAT 999,999 HEADING "Record Size|(in bytes)"
COLUMN records_total FORMAT 999,999 HEADING "Records Allocated"
COLUMN bytes_alloc FORMAT 999,999,999 HEADING "Bytes Allocated"
COLUMN records_used FORMAT 999,999 HEADING "Records Used"
COLUMN bytes_used FORMAT 999,999,999 HEADING "Bytes Used"
COLUMN pct_used FORMAT B999 HEADING "% Used"
COLUMN first_index HEADING "First Index"
COLUMN last_index HEADING "Last Index"
COLUMN last_recid HEADING "Last RecID"
BREAK ON report
COMPUTE sum OF records_total ON report
COMPUTE sum OF bytes_alloc ON report
COMPUTE sum OF records_used ON report
COMPUTE sum OF bytes_used ON report
COMPUTE avg OF pct_used ON report
SELECT
type
, record_size
, records_total
, (records_total * record_size) bytes_alloc
, records_used
, (records_used * record_size) bytes_used
, NVL(records_used/records_total * 100, 0) pct_used
, first_index
, last_index
, last_recid
FROM v$controlfile_record_section
ORDER BY type
/

End Script

Oracle Database Error Messages



Oracle Database High Availability Any organization evaluating a database solution for enterprise data must also evaluate the High Availability (HA) capabilities of the database. Data is one of the most critical business assets of an organization. If this data is not available and/or not protected, companies may stand to lose millions of dollars in business downtime as well as negative publicity. Building a highly available data infrastructure is critical to the success of all organizations in today's fast moving economy.

Well, the reason for above error is that i have taken the above script from a 11g database and running it on 10g database. 11g has bring some changes in password management. Below code is executed on 11g and user created successfully, which is expected result.