- 浏览: 27352 次
- 性别:
- 来自: 北京
最新评论
a binary file 1.what's controlfiles
Every Oracle Database has a control file, which is a small binary file that records the physical structure of the database.The database control file is a small binary file necessary for the database to start and operate successfully. A control file is updated continuously by Oracle during database use, so it must be available for writing whenever the database is open. If for some reason the control file is not accessible, then the database cannot function properly.Each control file is associated with only one Oracle database.The control file of an Oracle Database is created at the same time as the database.no database administrator or user can edit a control file.
2.controlfiles contents
The timestamp of database creation The names and locations of associated datafiles and redo log files Tablespace information Datafile offline ranges The log history Archived log information Backup set and backup piece information Backup datafile and redo log information Datafile copy information Checkpoint information
3. the Size of Control Files
The main determinants of the size of a control file are the values set for t he MAXDATAFILES
, MAXLOGFILES
, MAXLOGMEMBERS
, MAXLOGHISTORY
, and MAXINSTANCES
parameters in the CREATE DATABASE
maxdatafiles
maxlogfiles
maxlogmembers<=5
maxloghistory
maxinstances
4. Multiplexing the control file when using SPFILE
1.select * from v$controlfile/show parameter control;
2.show parameter spfile if value not null,it means that you server is now using spfile,otherwise using pfile
3.alter system set control_files=('','','') scope=spfile
4.shutdown immediate
5.cp one to one //create the additional controlfile
6.startup
7.show parameter control
5. Multiplexing the control file when using PFILE
1. show parameter spfile
2.shutdown immeidate
3.cp one to one
4.edit the pfile
5.startup
6.show parameter spfile;
6. create controlfiles
if not exist controlfile,modify the db_name,modify maxlogfiles maxlogmembers,maxloghistory,maxinstances,maxdatafiles,we need create new controlfiles.
1.get informations about datafiles and logfiles
select * from v$logfile;
select * from v$datafile;
the database can not be opened,because of all of controlfiles was lost.we must find the datafiles and logfiles in the enviroment(server).
2.shutdown immediate
3.startup nomount;
4.create controlfile
set database "lsh"
norestlogs/resetlogs
archivelog
character set al16utf16
datafile
'/u01/oradata/lsh/system01.dbf' size 300m,
'/u01/oradata/lsh/sysaux01.dbf' size 300m,
'/u01/oradata/lsh/undotbs01.dbf size 200m
logfile
group 1 '/u01/oradata/lsh/redo01a.dbf','/u01/oradata/lsh/redo01b.dbf',
group 2 '/u01/oradata/lsh/redo02a.dbf','/u01/oradata/lsh/redo02b.dbf',
group 3 '/u01/oradata/lsh/redo03a.dbf','/u01/oradata/lsh/redo03b.dbf'
maxlogfiles 5
maxlogmembers 3
maxloghistory 10
maxinstances 1
maxdatafiles 4;
note:‘resetlogs’ command basically forces the entire database to re-synchronise at time zero, which is fine for getting the database open, but is not exactly useful if you ever need to restore from your prior backups (taken when the database was at a time of, say, 10894329), or if you ever expect to be able to apply redo from priot archive logs (which were also taken when the database was at time 10894329 and earlier). Basically, a ‘resetlogs’ renders your database entirely vulnerable: there are no effective backups, and no effective archives. You are therefore supposed to immediately shut the newly-recovered database down, and perform a whole, closed backup of the entire database (which is not exactly a cheap option).
5. alter database open /alter database open resetlogs
6. select * from v$logfile;
select * from v$datafile;
7.backup controlfiles
alter database backup controlfile to trace; textfile
alter database backup controlfile to '/u01/oradata/lsh/control.bakl' a binary file
note: a binary file record the scn ,the scn is not agree with the scn of the crush database
we issue the command:
1. recover database using backup controfile
2. alter database open resetlogs
a text file record the location of the datafile and logfile ,so it uses those locations to read the headers of all the data files, whereupon it picks the highest SCN it comes across as the one to write into the header of the Control File it is about to create. That means the re-constructed Control File is already in synchronisation with the data files, and no forced synchronisation to time Zero is therefore required.
So, what’s the best way of backing up the Control File? Answer: multiplex your Control Files so that a recovery is never needed in the first place. But if, despite that, you need some insurance, the Trace File is definitely the better way to go. It doesn’t render your entire database exposed to failure, it doesn’t effectively trash all prior backups and archives, it works quickly, and well.
8.drop the controlfile
alter system set control_file=;
发表评论
-
from string get number data using pl/sql or sql
2012-02-16 17:32 890declare @aa varchar(80),--- ... -
SQL
2012-02-15 18:01 7331.select sal salary from emp; ... -
modify ip
2012-02-10 17:45 7991.netconfig 2./etc/sysconfig/n ... -
MULTI dbwr or io slaves
2012-02-10 15:21 883thanks dukope of itpub. ... -
FAQS
2012-02-09 15:59 7581.How can I get the largest amo ... -
HOW TO STUDY ORACLE FROM Yong Huang
2012-01-18 14:48 804Assuming you want to study orac ... -
RMAN
2012-01-14 17:07 7081.components of the rman ... -
INSTANCE and CRASH RECOVERY
2012-01-12 10:12 7541.type of checkpoint full c ... -
STARTUP PFILE=
2011-12-31 14:11 12281.vi initdbs.ora spfile=&quo ... -
MANAGE TABLE
2011-12-26 16:50 5731.heap table IOT PARTI ... -
MONITOR redo size
2011-12-21 17:48 6491.set autot on stat 2.unsin ... -
What do rollback and commit
2011-12-21 11:21 745When we COMMIT, all that is lef ... -
What is the schema ?
2011-12-20 15:18 591A schema is a collection of dat ... -
MANAGE UNDOTABS
2011-12-19 17:15 6781.manual undo_management=ma ... -
DBA SQL
2011-12-19 15:21 4381.select a.name,b.status from v ... -
SEGMENT EXTENTS ORACLEBLOCK
2011-12-15 16:11 7981.SEGMENT: allocated fo ... -
MANAGE TABLESPACE AND DATAFILES
2011-12-13 15:28 5781. tablespace,segment,extent,bl ... -
ORACLE NET
2011-12-12 09:49 6871.net_service_name: servive ... -
SQLPLUS TIPS
2011-12-09 17:51 9101.SQLPLUS : a tool that execute ... -
ORACLE ENVIRONMENT VARIABLES
2011-12-09 17:15 659ORACLE_HOME ORACLE_SID : or ...
相关推荐
##### 2.4 管理控制文件的大小(Manage the Size of Control Files) - **问题**:随着数据库的增长,控制文件的大小也会逐渐增加。 - **解决方案**:可以设置控制文件的自动扩展功能或者手动调整其大小,以避免因...
【Manage the Database - Oracle】 在Oracle数据库管理中,掌握如何启动和关闭数据库以及相关工具是至关重要的。这门课程旨在使学习者理解逻辑存储结构,管理和创建表空间,并且能够熟练控制数据库。以下是对这些...
The "RCS Commander" tool makes it easy to manage files on your PC and on SINUMERIK solution line control systems. The "RCS Commander" tool offers the following functions: Exchanging data between ...
That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed. In ...
ad_manage.asp add_admin.asp addmember.asp adduser.asp adm_login.asp admin/admin.asp admin/admin_login.asp admin/index.asp admin/login.asp admin/manage.asp admin_admin.asp admin_del.asp admin_delete....
That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed. In ...
Turn tedious chores into quick tasks: read and write files, manage complex directory hierarchies, perform network diagnostics, download files, work with APIs, and combine individual programs to ...
helping you to manage files across multiple servers and terminal sessions. Avoid common pitfalls and work with best practice ways to efficiently edit and control your files and sessions from the ...
One-stop source control lets you perform all user level Subversion functions — manage project files, checkout, commit, and other operations — within Visual Studio. Compatible with the latest ...
UltraEdit includes a Search and Replace Favorites feature that allows you to manage frequently used Find and Replace strings. Create, name, and edit your Search and Replace Favorites... Customizing ...
- Manage virtual machines using the `virsh` command. Some useful commands include: ```bash virsh list # List active VMs virsh start <vm-name> # Start a VM virsh destroy <vm-name> # Stop a VM ...
Save As, Rename, New Folder make it easier to manage Zip files • New! Zip Properties graphically displays compression savings • New! Encryption Column in Details View shows which files are ...
6. **Administrative Control**: The administrator has the authority to manage user accounts, monitor activities, and control access rights to maintain system stability and security. 7. **Data Security...
interface to create and manage projects for ECM Tuning V1.61 modified files. After reading the file stored in the ECU memory, all you have to do is upload the file and the software starts a search ...
Gain best practice methods on sharing files and resources through a network Install and configure common standard services such as web, mail, FTP, database and domain name server technologies ...
<END><br>58,RebootPlus.zip Here Is Another OCX File That Logs Off, Shutdown, Restart, Displays Device Manage, And Display Properties.<END><br>59,RetCal10.zip This Activex control creates retail...
Whether you’re working entirely with .NET assemblies or also using CSS, HTML and JavaScript files within your applications this book will show you how to manage their requirements smoothly and ...
Covers how to delegate control, view and modify permissions, view effective permissions, and manage Kerberos tickets. Chapter 15, Logging, Monitoring, and Quotas Covers how to enable auditing, ...
* **Benefits:** Understanding file organization helps in managing project directories efficiently, making it easier to locate and manage files. #### Scripting Tools for Linux * **Bash, Python, and ...