iSelfSchooling.com - Copyright © 1999-2009 iSelfSchooling.com ||  References  |  Job Openings
    Home  | Search more...  |  FREE Online VIDEO Oracle Training 

   Unlimited access!   

    Oracle  Syntax  | Suggestions

Copyright & User Agreement

Email2aFriend  | Homepage us! |  Bookmark

Products/Services

 Vision/Mission

 Community Sharing

 Services

  Products

 Biography

 Contact Us

 FAQ

 Current News

 Website Traffic

 FREE Training

 SQL

 PL/SQL

 Forms 

 Reports

 Other TOOLS

 Fundamentals

 Performance

 OEM

 Application Server

 Grid Control

 Articles

 Prepare for OCP

Oracle SYNTAX

 Oracle Functions

 Oracle Syntax

 Oracle 10g Syntax

  PL/SQL Syntax

UNIX and more...

 UNIX for DBAs

 LINUX for DBAs

 DB using PHP

  A+ Certification

 Basics of JAVA  

 Tips of  SEO

Finance/Jobs

 Financial Aid

 Skilled

 Oracle

 Jobs

  Magazine

More Training

 Q & Answers

 SQL-PL/SQL

 DBA

 Developer

 Important Notes

 Case Studies

 9i New Features

 10g New Features

 10g Qs/As

 Grid Control

 OracleAS # I

 OracleAS # II

  LDAP and OID

  HTTP Server

 Instructor-Led

  Virtual Hosts

 Community Sharing

More to know...

Acknowledgement**

 FREE Legal Forms

 Who is who

 Market Place

 University Directory

 Advisory Articles

 Links...

 

 

Topics: Multiplexing the Control File

More Resources by Google:

Hands-On 03 (Multiplexing the Control File)

You, as a DBA, are responsible to multiplex controlfiles to protect your organization from a possible and unexpected loss of controlfiles, due to media failure. Your job’s responsibilities dictate that you should at least be informed of the following basic fundamental subjects:

Control Files

Using the V$CONTROLFILE view

Using the V$CONTROLFILE_RECORD_SECTION view

Multiplexing the Control File

Using the INIT.ORA file

Editing the INIT.ORA

Commands:

STARTUP OPEN PFILE=%ORACLE_BASE%\admin\school\pfile\init.ora

HOST MKDIR

ALTER DATABASE BACKUP CONTROLFILE

ALTER DATABASE BACKUP CONTROLFILE TO TRACE

SHUTDOWN IMMEDIATE

 

Manuscript

 

-- Hands-On 03 (Multiplexing the Control File)
-- Preparation
set echo on
connect system/manager@school as sysdba
host copy %ORACLE_HOME%\admin\school\pfile\initoriginal.ora %ORACLE_HOME%\admin\school\pfile\init.ora
SET linesize 1000 pagesize 55
COL name FORMAT a50
col parameter format a40
col username format a10
pause

--Start


CLEAR SCR
-- In this exercise you will learn how to multiplex
-- control files and more.

-- Now, begin by connecting to SQL*Plus as the system/manager user.

pause

CONNECT system/manager@school AS SYSDBA

pause

CLEAR SCR
-- Query the V$CONTROLFILE view to list all of the controlfiles
-- currently used in the database. 

pause


SELECT *
FROM v$controlfile
/

-- Add one more controlfile to the list.

pause

CLEAR SCR
-- First, shutdown the database.

pause

SHUTDOWN IMMEDIATE

pause

CLEAR SCR
-- Copy a controlfile and name it CONTROL04.CTL.

pause


HOST COPY C:\ORACLE\ORADATA\SCHOOL\CONTROL01.CTL C:\ORACLE\ORADATA\SCHOOL\CONTROL04.CTL

pause

CLEAR SCR
-- Then, open the INIT.ORA file located 
-- in the %ORACLE_BASE%\admin\school\pfile\init.ora.

-- Edit the file and add the CONTROL04.CTL file to the
-- control_files list.

--\/-- control_files=("C:\oracle\oradata\school\control01.ctl", 
--\/-- "C:\oracle\oradata\school\control02.ctl", 
--\/-- "C:\oracle\oradata\school\control03.ctl",
--\/-- "C:\oracle\oradata\school\control04.ctl")

-- Then save the changes and close the file.

pause
pause

CLEAR SCR
-- Now, connect to SQL*Plus as the system/manager user.

pause

CONNECT system/manager@school AS SYSDBA

pause

CLEAR SCR
-- Startup the database with the parameter file (INIT.ORA) that 
-- you just edited.

pause

-- >>>>>>>>>>>>>>>>>>>>>> Startup
STARTUP OPEN PFILE=%ORACLE_BASE%\admin\school\pfile\init.ora

pause

CLEAR SCR
-- Query the V$CONTROLFILE view to list all of the controlfiles
-- in the database. 

pause


SELECT *
FROM v$controlfile
/

-- Observe that the controlfile was added.

pause

CLEAR SCR
-- Now, backup the controlfile.

-- Before making a backup, let create a directory name
-- c:\backupcontrolfile and then backup the controlfile into it.

pause

HOST MKDIR c:\backupcontrolfile

ALTER DATABASE BACKUP CONTROLFILE 
TO 'c:\backupcontrolfile\control_ddmmyyyy.ctl'
/

-- Notice that the ddmmyyyy will signify your current date to
-- let you know the date you backed up the controlfile.

pause

CLEAR SCR
-- Check to see how a controlfile is divided into several sections.

pause

CLEAR SCR
-- It is advisable to backup the CONTROLFILE anytime you change
-- the structure of your database such as, adding or dropping
-- tablespaces, datafile, etc...

pause


ALTER DATABASE BACKUP CONTROLFILE TO TRACE
/

pause

CLEAR SCR
-- Check to see how a controlfile is divided into several sections.

pause

SELECT * FROM v$controlfile_record_section
/

-- Notice that each section stores different information about
-- the database with different record sizes. Now, check to see 
-- how many records were used in each section.

pause

CLEAR SCR
-- Now, you should practice this Hands-On exercise.

-- For more information about the subject, you are encouraged
-- to read from a wide selection of available books.

-- Good luck.
--
pause
pause

 

 
 
Google
 
Web web site