SlideShare a Scribd company logo
Anar Godjaev

Oracle Managed Files
/*Init parameters*/
DB_CREATE_FILE_DEST -- datafilestempfiles
DB_CREATE_ONLINE_LOG_DEST_n -- 1 <= n <= 5 -- redologs and
controlfiles
DB_RECOVERY_FILE_DEST -- archivedlogs, rman backups, flashback
logs
DB_RECOVERY_FILE_DEST_SIZE = 20G
DB_UNIQUE_NAME = <db_name>
<destination_location>/<db_unique_name>/<datafile>/o1_mf_%t_%u_.
dbf
Examples
CREATE DATABASE sample;
-- system and sysauxdatafiles will be 100MB and autoextend on
-- redo log files will be two members 100MB
-- undo file will be 10M with autoextend on if
undo_management=AUTO
CREATE DATABASE sample DATAFILE SIZE 400M
SYSAUX DATAFILE SIZE 200M
DEFAULT TEMPORARY TABLESPACE dflt_ts TEMPFILE SIZE 10M
UNDO TABLESPACE undo_ts DATAFILE SIZE 10M;
CREATE DATABASE sample
DEFAULT TEMPORARY TABLESPACE temp;
/*
* datafiles will have the specified properties
* name of the datafiles will be oracle managed
*/
ALTER SYSTEM SET DB_CREATE_FILE_DEST = '/u01/oradata';
CREATE TABLESPACE tbs_1;
CREATE TABLESPACE tbs_2 DATAFILE SIZE 400M;
Anar Godjaev
CREATE TABLESPACE tbs_3 DATAFILE AUTOEXTEND ON MAXSIZE 800M;
CREATE TABLESPACE tbs_4 DATAFILE SIZE 200M SIZE 200M;
CREATE UNDO TABLESPACE undotbs_1;
ALTER TABLESPACE tbs_1 ADD DATAFILE AUTOEXTEND ON MAXSIZE 800M;
CREATE TEMPORARY TABLESPACE temptbs_1;
ALTER TABLESPACE TBS_1 ADD TEMPFILE;
ALTER TABLESPACE tbs_1 ADD DATAFILE;
DROP TABLESPACE tbs_1;
-- Creating Controlfiles
-- NORESETLOGS EXAMPLE
CREATE CONTROLFILE
DATABASE sample
LOGFILE
GROUP 1 ('/u01/oradata/SAMPLE/onlinelog/o1_mf_1_o220rtt9_.log',
'/u02/oradata/SAMPLE/onlinelog/o1_mf_1_v2o0b2i3_.log')
SIZE 100M,
GROUP 2 ('/u01/oradata/SAMPLE/onlinelog/o1_mf_2_p22056iw_.log',
'/u02/oradata/SAMPLE/onlinelog/o1_mf_2_p02rcyg3_.log')
SIZE 100M
NORESETLOGS
DATAFILE
'/u01/oradata/SAMPLE/datafile/o1_mf_system_xu34ybm2_.dbf'
SIZE 100M,
'/u01/oradata/SAMPLE/datafile/o1_mf_sysaux_aawbmz51_.dbf'
SIZE 100M,
'/u01/oradata/SAMPLE/datafile/o1_mf_sys_undotbs_apqbmz51_.dbf'
SIZE 100M
MAXLOGFILES 5
MAXLOGHISTORY 100
MAXDATAFILES 10
MAXINSTANCES 2
ARCHIVELOG;
-- RESETLOGS EXAMPLE
-- Some combination of DB_CREATE_FILE_DEST,
DB_RECOVERY_FILE_DEST, and
-- DB_CREATE_ONLINE_LOG_DEST_n or must be set.
Anar Godjaev
CREATE CONTROLFILE
DATABASE sample
RESETLOGS
DATAFILE
'/u01/oradata/SAMPLE/datafile/o1_mf_system_aawbmz51_.dbf',
'/u01/oradata/SAMPLE/datafile/o1_mf_sysaux_axybmz51_.dbf',
'/u01/oradata/SAMPLE/datafile/o1_mf_sys_undotbs_azzbmz51_.dbf'
SIZE 100M
MAXLOGFILES 5
MAXLOGHISTORY 100
MAXDATAFILES 10
MAXINSTANCES 2
ARCHIVELOG;
-- Adding Redo Logs
DB_CREATE_ONLINE_LOG_DEST_1 = '/u01/oradata'
DB_CREATE_ONLINE_LOG_DEST_2 = '/u02/oradata'
ALTER DATABASE ADD LOGFILE;
-- Creating Archived Logs Using Oracle-Managed Files
DB_RECOVERY_FILE_DEST_SIZE = 20G
DB_RECOVERY_FILE_DEST = '/u01/oradata'
LOG_ARCHIVE_DEST_1 = 'LOCATION=USE_DB_RECOVERY_FILE_DEST'

More Related Content

TXT
Scripts related to temp tablespace
DOCX
Backup and Recovery
DOCX
Exadata - BULK DATA LOAD Testing on Database Machine
PDF
Installing Apache Hive, internal and external table, import-export
PPT
2 db2 instance creation
ODP
PostgreSQL Administration for System Administrators
PDF
Introduction to scoop and its functions
PPTX
Postgresql Database Administration- Day4
Scripts related to temp tablespace
Backup and Recovery
Exadata - BULK DATA LOAD Testing on Database Machine
Installing Apache Hive, internal and external table, import-export
2 db2 instance creation
PostgreSQL Administration for System Administrators
Introduction to scoop and its functions
Postgresql Database Administration- Day4

What's hot (18)

PPT
eZ Publish Cluster Unleashed
TXT
Db health check
PPTX
MongoDB Replication (Dwight Merriman)
ODP
Postgre sql unleashed
DOC
Rman cloning guide
PDF
Drupal 8 configuration management
PPTX
Postgresql Database Administration Basic - Day2
DOCX
Change DB Name
PDF
Apache Scoop - Import with Append mode and Last Modified mode
PPTX
Hadoop installation on windows
ODP
Asian Spirit 3 Day Dba On Ubl
PDF
Backup andrecoverychecklist
PDF
One Page Linux Manual
PDF
리눅스 간단 강의 5강
PDF
Configuring and manipulating HDFS files
ODP
Go Replicator
PDF
PGDay.Amsterdam 2018 - Stefan Fercot - Save your data with pgBackRest
PDF
Restore MySQL database from mysqlbackup
eZ Publish Cluster Unleashed
Db health check
MongoDB Replication (Dwight Merriman)
Postgre sql unleashed
Rman cloning guide
Drupal 8 configuration management
Postgresql Database Administration Basic - Day2
Change DB Name
Apache Scoop - Import with Append mode and Last Modified mode
Hadoop installation on windows
Asian Spirit 3 Day Dba On Ubl
Backup andrecoverychecklist
One Page Linux Manual
리눅스 간단 강의 5강
Configuring and manipulating HDFS files
Go Replicator
PGDay.Amsterdam 2018 - Stefan Fercot - Save your data with pgBackRest
Restore MySQL database from mysqlbackup
Ad

Viewers also liked (20)

PPT
Less05 storage
PDF
J2ee user managment using dwh builder
PPTX
Oracle Managed File Transfer
PPTX
Hitchhiker's Guide to free Oracle tuning tools
PPTX
Oracle Database Introduction
PPTX
Base1
PPTX
Basic oracle-database-administration
PPT
Creating a database
PPT
Creating database
PPT
Lecture2 oracle ppt
PPT
Lecture 04 data resource management
PPT
Chapter 3: Processes
PPSX
Database Performance Tuning Introduction
PDF
Database Management
PPTX
File Management
PPTX
Presentation on Database management system
PPTX
Data base management system
DOCX
Database management system
PPTX
Oracle architecture ppt
PPTX
Data and database administration(database)
Less05 storage
J2ee user managment using dwh builder
Oracle Managed File Transfer
Hitchhiker's Guide to free Oracle tuning tools
Oracle Database Introduction
Base1
Basic oracle-database-administration
Creating a database
Creating database
Lecture2 oracle ppt
Lecture 04 data resource management
Chapter 3: Processes
Database Performance Tuning Introduction
Database Management
File Management
Presentation on Database management system
Data base management system
Database management system
Oracle architecture ppt
Data and database administration(database)
Ad

Similar to Oracle Managed Files (20)

PDF
Tablespaces
DOC
br_test_lossof-datafile_10g.doc
PDF
MySQL for Oracle DBAs
DOCX
Migrate from database file system to asm
DOCX
Moving 12c database from NON-ASM to ASM
TXT
oracle dba
PPT
2011 384 hackworth_ppt
PDF
MySQL Backup & Recovery
PDF
RMAN in 12c: The Next Generation (PPT)
DOC
Create manula and automaticly database
PDF
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
DOCX
Rman cloning when both directory and db name are same.
DOCX
Rman cloning when both directory and db name are same.
DOC
Oracle data guard configuration in 12c
PDF
Database decommission process
PPTX
Data Guard New Features
PPT
Les 01 Arch
PDF
[Altibase] 13 backup and recovery
DOCX
PDF
Colvin RMAN New Features
Tablespaces
br_test_lossof-datafile_10g.doc
MySQL for Oracle DBAs
Migrate from database file system to asm
Moving 12c database from NON-ASM to ASM
oracle dba
2011 384 hackworth_ppt
MySQL Backup & Recovery
RMAN in 12c: The Next Generation (PPT)
Create manula and automaticly database
آموزش مدیریت بانک اطلاعاتی اوراکل - بخش پانزدهم
Rman cloning when both directory and db name are same.
Rman cloning when both directory and db name are same.
Oracle data guard configuration in 12c
Database decommission process
Data Guard New Features
Les 01 Arch
[Altibase] 13 backup and recovery
Colvin RMAN New Features

More from Anar Godjaev (20)

DOCX
Oracle GoldenGate
DOCX
Asm disk group migration from
DOCX
How to protect your sensitive data using oracle database vault / Creating and...
DOCX
how to protect your sensitive data using oracle database vault
DOCX
Database Vault / Verinin Güvenliği
DOCX
Oracle Golden Gate
PDF
Oracle 10g Database Server Kurulum
DOCX
DataPump ile Single Parititon Export
DOCX
Redologlar ve Yöneti̇mi̇
DOCX
Contraints
DOCX
Oracle SQL
DOCX
Veri̇tabani ve Kullanici Yöneti̇mi̇
DOCX
Instance ve Media Bozukluklarını Inceleme
DOCX
Conditional Control
DOCX
PL/SQL Blocks
DOCX
Wait Interface
DOCX
Audit Mekani̇zmasi
DOCX
Tuning SGA
DOCX
Parallel Server
DOCX
Table Partitions
Oracle GoldenGate
Asm disk group migration from
How to protect your sensitive data using oracle database vault / Creating and...
how to protect your sensitive data using oracle database vault
Database Vault / Verinin Güvenliği
Oracle Golden Gate
Oracle 10g Database Server Kurulum
DataPump ile Single Parititon Export
Redologlar ve Yöneti̇mi̇
Contraints
Oracle SQL
Veri̇tabani ve Kullanici Yöneti̇mi̇
Instance ve Media Bozukluklarını Inceleme
Conditional Control
PL/SQL Blocks
Wait Interface
Audit Mekani̇zmasi
Tuning SGA
Parallel Server
Table Partitions

Recently uploaded (20)

PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
August Patch Tuesday
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Machine learning based COVID-19 study performance prediction
PDF
Approach and Philosophy of On baking technology
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Mushroom cultivation and it's methods.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
Assigned Numbers - 2025 - Bluetooth® Document
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
August Patch Tuesday
Unlocking AI with Model Context Protocol (MCP)
Digital-Transformation-Roadmap-for-Companies.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Machine learning based COVID-19 study performance prediction
Approach and Philosophy of On baking technology
Spectroscopy.pptx food analysis technology
Group 1 Presentation -Planning and Decision Making .pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Mushroom cultivation and it's methods.pdf
Machine Learning_overview_presentation.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
TLE Review Electricity (Electricity).pptx
Getting Started with Data Integration: FME Form 101
Assigned Numbers - 2025 - Bluetooth® Document

Oracle Managed Files

  • 1. Anar Godjaev Oracle Managed Files /*Init parameters*/ DB_CREATE_FILE_DEST -- datafilestempfiles DB_CREATE_ONLINE_LOG_DEST_n -- 1 <= n <= 5 -- redologs and controlfiles DB_RECOVERY_FILE_DEST -- archivedlogs, rman backups, flashback logs DB_RECOVERY_FILE_DEST_SIZE = 20G DB_UNIQUE_NAME = <db_name> <destination_location>/<db_unique_name>/<datafile>/o1_mf_%t_%u_. dbf Examples CREATE DATABASE sample; -- system and sysauxdatafiles will be 100MB and autoextend on -- redo log files will be two members 100MB -- undo file will be 10M with autoextend on if undo_management=AUTO CREATE DATABASE sample DATAFILE SIZE 400M SYSAUX DATAFILE SIZE 200M DEFAULT TEMPORARY TABLESPACE dflt_ts TEMPFILE SIZE 10M UNDO TABLESPACE undo_ts DATAFILE SIZE 10M; CREATE DATABASE sample DEFAULT TEMPORARY TABLESPACE temp; /* * datafiles will have the specified properties * name of the datafiles will be oracle managed */ ALTER SYSTEM SET DB_CREATE_FILE_DEST = '/u01/oradata'; CREATE TABLESPACE tbs_1; CREATE TABLESPACE tbs_2 DATAFILE SIZE 400M;
  • 2. Anar Godjaev CREATE TABLESPACE tbs_3 DATAFILE AUTOEXTEND ON MAXSIZE 800M; CREATE TABLESPACE tbs_4 DATAFILE SIZE 200M SIZE 200M; CREATE UNDO TABLESPACE undotbs_1; ALTER TABLESPACE tbs_1 ADD DATAFILE AUTOEXTEND ON MAXSIZE 800M; CREATE TEMPORARY TABLESPACE temptbs_1; ALTER TABLESPACE TBS_1 ADD TEMPFILE; ALTER TABLESPACE tbs_1 ADD DATAFILE; DROP TABLESPACE tbs_1; -- Creating Controlfiles -- NORESETLOGS EXAMPLE CREATE CONTROLFILE DATABASE sample LOGFILE GROUP 1 ('/u01/oradata/SAMPLE/onlinelog/o1_mf_1_o220rtt9_.log', '/u02/oradata/SAMPLE/onlinelog/o1_mf_1_v2o0b2i3_.log') SIZE 100M, GROUP 2 ('/u01/oradata/SAMPLE/onlinelog/o1_mf_2_p22056iw_.log', '/u02/oradata/SAMPLE/onlinelog/o1_mf_2_p02rcyg3_.log') SIZE 100M NORESETLOGS DATAFILE '/u01/oradata/SAMPLE/datafile/o1_mf_system_xu34ybm2_.dbf' SIZE 100M, '/u01/oradata/SAMPLE/datafile/o1_mf_sysaux_aawbmz51_.dbf' SIZE 100M, '/u01/oradata/SAMPLE/datafile/o1_mf_sys_undotbs_apqbmz51_.dbf' SIZE 100M MAXLOGFILES 5 MAXLOGHISTORY 100 MAXDATAFILES 10 MAXINSTANCES 2 ARCHIVELOG; -- RESETLOGS EXAMPLE -- Some combination of DB_CREATE_FILE_DEST, DB_RECOVERY_FILE_DEST, and -- DB_CREATE_ONLINE_LOG_DEST_n or must be set.
  • 3. Anar Godjaev CREATE CONTROLFILE DATABASE sample RESETLOGS DATAFILE '/u01/oradata/SAMPLE/datafile/o1_mf_system_aawbmz51_.dbf', '/u01/oradata/SAMPLE/datafile/o1_mf_sysaux_axybmz51_.dbf', '/u01/oradata/SAMPLE/datafile/o1_mf_sys_undotbs_azzbmz51_.dbf' SIZE 100M MAXLOGFILES 5 MAXLOGHISTORY 100 MAXDATAFILES 10 MAXINSTANCES 2 ARCHIVELOG; -- Adding Redo Logs DB_CREATE_ONLINE_LOG_DEST_1 = '/u01/oradata' DB_CREATE_ONLINE_LOG_DEST_2 = '/u02/oradata' ALTER DATABASE ADD LOGFILE; -- Creating Archived Logs Using Oracle-Managed Files DB_RECOVERY_FILE_DEST_SIZE = 20G DB_RECOVERY_FILE_DEST = '/u01/oradata' LOG_ARCHIVE_DEST_1 = 'LOCATION=USE_DB_RECOVERY_FILE_DEST'