Orcale Tutorial Content


Getting Started - البدء مع إدارة قواعد البيانات
  • أنواع مستخدمي قواعد البيانات:
  • مهام مسؤول قاعدة البيانات:
  • SQL Statements:
  • Identifying Your Oracle Database Software Release - تحديد إصدار اوركل
  • About Database Administrator Security and Privileges- أمان وامتيازات مسؤول قاعدة البيانات
  • Database Administrator Authentication - مصادقة مسؤول قاعدة البيانات
  • Creating and Maintaining a Database Password File - إنشاء ملف كلمة المرور
  • Oracle Architectural Components - مكونات قاعدة البيانات أوركل
  • ﻤﻜﻭﻨﺎﺕ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ
  • Oracle Instance
  • Oracle Database
  • Installing Oracle Database - تثبيت الأوركل
  • Installing oracle database 10g in windows
  • Creating and Configuring Database - إنشاء قاعدة البيانات
  • ﺍﻟﺘﺨﻁﻴﻁ ﻟﻘﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ
  • ﺇﻨﺸﺎﺀ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﺒﺎﻟﻁﺭﻴﻘﺔ ﺍﻟﻴﺩﻭﻴﺔ علي Windows:
  • ﺇﻨﺸﺎﺀ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﻋﻥ ﻁﺭﻴﻕ ﺍل(DBCA)
  • About Creating an Oracle Database
  • About Selecting a Character Set
  • Prerequisites for Database Creation
  • Creating a Database with the CREATE DATABASE Statement
  • Specifying CREATE DATABASE Statement Clauses
  • Specifying Initialization Parameters
  • Controlling The Database -التحكم في قاعدة البيانات
  • التحكم في قاعدة البيانات - Controlling The Database
  • ﺘﺸﻐﻴل ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ
  • ﺇﻏﻼﻕ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ
  • Opening a Database in Read-Only Mode
  • Opening a Database in Restricted Mode
  • Managing Tablespaces and Data files
  • ﻤﻔﺎﻫﻴﻡ ﻋﺎﻤﺔ ﻋﻥ ﺍل: Tablespaces
  • عملي
  • Control File & Redo Log Files
  • Control File
  • ﺘﻐﻴﻴﺭ ﺍﺴﻡ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ
  • Redo Log Files
  • Administrating Users - إدارة المستخدمين
  • ﺇﻨﺸﺎﺀ ﻭﺇﺩﺍﺭﺓ ﺍﻟﻤﺴﺘﺨﺩﻤﻴﻥ
  • Quota
  • ﻭﺴﻴﻠﺔ ﺍﻟﺘﺤﻘﻴﻕ
  • ﺍﻟﺼﻼﺤﻴﺎﺕ - Privileges
  • Database Security & Monitoring - تأمين ومراقبة قاعدة البيانات
  • Database Security
  • ﻤﺭﺍﻗﺒﺔ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ - AUDITING
  • Oracle Net Services & Database Link & Metrlized Viewِ
  • Oracle Net Services
  • ﺍﻟﺘﺤﻜﻡ ﻓﻲ ﺍﻟﻭﺼﻭل ﻟﻘﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ
  • External Procedures
  • Clients Side
  • Database Link
  • Materialized Views
  • Undo Management & Flashback Technology
  • Flashback Query
  • Flashback Table
  • Flashback Versions Query
  • Flashback Transaction
  • Flashback Drop
  • Flashback Database
  • Managing Shared Servers
  • Why Shared Server
  • Dedicated Server
  • Shared Server Architecture
  • ﻤﺘﻰ ﻨﺴﺘﺨﺩﻡ ﺍل Shared Server ؟
  • Using Globalization Support
  • Globalization
  • ﺍﺨﺘﻴﺎﺭ وتغيير ﺍل Character Set
  • ﻤﺴﺘﻭﻴﺎﺕ ﺍل Globalization
  • ﺍﺴﺘﺨﺩﺍﻡ ﺍل Zones Time
  • Logical Backup & Recovery
  • Use Export Utilities to Export Data
  • TABLES EXPORT Using Export Utilities
  • SCHEMAS EXPORT Using Export Utilities
  • TABLESPACE EXPORT Using Export Utilities
  • DATABASE EXPORT Using Export Utilities
  • Use Import Utilities to Import Data
  • TABLES IMPORT Using Import Utilities
  • SCHEMAS IMPORT Using Import Utilities
  • DATABASE IMPORT Using Import Utilities
  • TABLES EXPORT Using Data Pump
  • SCHEMAS EXPORT Using Data Pump
  • DATABASE EXPORT Using Data Pump
  • TABLES IMPORT Using Data Pump
  • SCHEMAS IMPORT Using Data Pump
  • DATABASE IMPORT Using Data Pump
  • SQL*Loader
  • Physical Backup & Recovery
  • Physical Backup
  • ﻜﻴﻑ ﻨﻬﻴﺊ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﻟﺘﻌﻤل ﻓﻲ ﺍﻟﻨﻤﻁ ARCHIVELOG؟
  • Cold Backup
  • Full Database Recovery
  • Loss of a Non-SYSTEM Data File
  • Loss of a SYSTEM Data File
  • Loss of an Un-archived Online Log Files
  • Loss of Control Files
  • Loss Unbackup Datafile
  • Damage Tempfile
  • Damage Temporary Tablespace
  • Damage Online Logfile Member
  • Point in Time Recovery
  • Backup and Recovery Options
  • Hot Backup
  • Recovery Manager (RMAN)
  • مقدمة
  • مكونات ال Recovery Manager (RMAN)
  • ﺃﻨﻭﺍﻉ ﺍﻻﺘﺼﺎل ﺒﺎل RMAN
  • ﺨﻴﺎﺭﺍﺕ وأنماط ﺍﻟﻨﺴﺦ ﺍﻹﺤﺘﻴﺎﻁﻰ
  • RMAN Configuration Setting
  • Recovery Catalog
  • RMAN Backups
  • Data Files Backup
  • Tablespaces Backup
  • Archived Redo Log Files Backup
  • Control File Backup
  • Database Backup
  • Incremental Backups
  • RMAN Commands
  • Complete Recovery
  • Incomplete Recovery
  • Restore ControlFile and spfile
  • Managing Resources
  • Consumer Groups
  • Resource Manager Plans
  • Resource Manager Configuration
  • Create Consumer Group
  • Update Consumer Group
  • Delete Consumer Group
  • Privileges & Resource Manager
  • Join To Consumer Group
  • Move Active User To Other Consumer Group
  • Create Resource Manager Plans & Directive
  • Update Resource Manager Plans
  • Update Resource Manager Plan Directives
  • Delete Resource Manager Plan Directives
  • Delete Resource Manager Plans
  • Create Simple Plan
  • Consumer Group Mapping
  • Automating Tasks with the Scheduler
  • The Scheduler Architecture
  • Jobs
  • Programs
  • Schedules
  • Using Programs and Schedules
  • Job Classes
  • Windows
  • (Privileges) ﺍﻟﺼﻼﺤﻴﺎﺕ
  • Job Logs
  • Dealing with Locking
  • Shared & Exclusive Locks
  • Manual Lock Table
  • The Enqueue Mechanism
  • Lock Contention
  • Deadlocks
  • Diagnostic Sources
  • Alert Log
  • Background Trace Files
  • Server-Generated Alerts
  • Editing Thresholds
  • User Trace Files
  • Instance-Level SQL Tracing
  • Session-Level SQL Tracing
  • Dealing With Database Corruption
  • Block Corruption
  • ﺍﻜﺘﺸﺎﻑ ﺍﻟﻜﺘل ﺍﻟﻔﺎﺴﺩﺓ (Detecting Block Corruptions)
  • The DBVERIFY Utility
  • The ANALYZE Command
  • DBMS_REPAIR Backage
  • ﺍﺴﺘﺭﺠﺎﻉ ﺍﻟﻜﺘل ﺍﻟﻔﺎﺴﺩﺓ ﺒﻭﺍﺴﻁﺔ ﺍل:RMAN
  • Managing & Monitoring Memory
  • The System Global Area
  • The Shared Pool
  • The Database Buffer Cache
  • The Default, Keep, and Recycle Pools
  • The Nonstandard Block Size Pools
  • Sizing the Database Buffer Cache
  • The Log Buffer
  • The Large Pool
  • The Java Buffer
  • The Steams Buffer
  • Automatic Shared Memory Management
  • Enable Automatic Shared Memory Management
  • The Program Global Area (PGA)
  • Performance Tunning
  • Invalid Objects
  • Unusable Indexes
  • Rebuild Invalid Inexes
  • Optimizer Statistics
  • Gathering Statistics
  • The Automatic Workload Repository (AWR)
  • The Automatic Database Diagnostic Monitor (ADDM)
  • The SQL Tuning Advisor
  • The SQL Access Advisor
  • The Mean Time to Recover Advisor
  • The Segment Advisor
  • The Undo Advisor
  • Recovery Manager (RMAN)

    ﺨﻴﺎﺭﺍﺕ وأنماط ﺍﻟﻨﺴﺦ ﺍﻹﺤﺘﻴﺎﻁﻰ

    ﺘﻭﻓﺭ ﺍلRMAN ﻤﺠﻤﻭﻋﺔ ﻤﻥ ﺍﻟﺨﻴﺎﺭﺍﺕ ﺒﺎﻟﻨﺴﺒﺔ ﻟﻠﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ (Backup) :

    1- ﺇﺴﺘﺭﺍﺘﻴﺠﻴﺔ ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ:-

                                           1- Whole: ﻭﻫﻰ ﻋﻤل ﻨﺴﺦ ﺍﺤﺘﻴﺎﻁﻲ ﻟﺠﻤﻴﻊ ﻤﻠﻔﺎﺕ ﺍلData Files ﺒﺎﻹﻀﺎﻓﺔ ﻋﻠﻰ ﺍﻷﻗل  ﻋﻠﻰ ﻭﺍﺤﺩ ﻤﻥ ﺍلControl File ﻭﺫﻟﻙ ﻷﻥ ﺠﻤﻴﻊ ﻤﻠﻔﺎﺕ ﺍلControl Files

                                            ﻓﻲ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﻫﻲ ﻁﺒﻕ ﺍﻷﺼل.

                                           2- Partial: ﻭﻫﻭ ﻋﻤل ﻨﺴﺦ ﺍﺤﺘﻴﺎﻁﻲ ﻟﺼﻔﺭ ﺃﻭ ﺃﻜﺜﺭ ﻟﻤﻠﻔﺎﺕ ﺍلData Files ﺃﻭ ﺼﻔﺭ ﺃﻭ ﺃﻜﺜﺭ ﻟلTablespaces ﻜﻤﺎ ﻴﻤﻜﻥ ﻋﻤل ﻨﺴﺦ ﺍﺤﺘﻴﺎﻁﻲ ﻟﻤﻠﻑ ﺍلControl File ﺃﻭ ﺘﺠﺎﻫﻠﻪ.


    2- ﺃﻨﻭﺍﻉ ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ:-              

                                        1- Full: ﻭﻫﻭ ﻋﻤل ﻨﺴﺦ ﻟﺠﻤﻴﻊ ﻜﺘل ﺍﻟﺒﻴﺎﻨﺎﺕ ﺃﺜﻨﺎﺀ ﻋﻤل ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ.

                                        2- Incremental: ﻭﻫﻭ ﻋﻤل ﻨﺴﺦ ﻟﻜﺘل ﺍﻟﺒﻴﺎﻨﺎﺕ ﺍﻟﺘﻲ ﺘﻐﻴﺭﺕ ﻤﻨﺫ ﺒﻌﺽ ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻴﺔ.     

                                         ﻋﻤﻭﻤﹰﺎ ﺍﻭﺭﻜل 10g ﺘﻭﻓﺭ ﻨﻭﻋﻴﻥ ﻤﻥ ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ ﺍﻟﺘﺭﺍﻜﻤﻲ Incremental Backup:

                                                               1- 0 Incremental Level: ﻭﻫﻭ ﻋﺒﺎﺭﺓ ﻋﻥ ﻨﺴﺨﺔ ﺍﺤﺘﻴﺎﻁﻴﺔ ﺃﺴﺎﺴﻴﺔ ﺘﺤﻭﻯ ﺠﻤﻴﻊ ﻜﺘل ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﻭﻫﻰ ﺘﻌﺘﺒﺭ ﻙFull Backup

                                                                ﻏﻴﺭ ﺃﻨﻬﺎ ﺘﻌﺘﺒﺭ ﻜﻨﻘﻁﺔ ﺃﺴﺎﺴﻴﺔ ﻴﻤﻜﻥ ﺍﻟﺭﺠﻭﻉ ﺇﻟﻴﻬﺎ ﻋﻨﺩ ﻋﻤل 1 Incremental Level.

                                                                2- 1 Incremental Level: ﻭﻫﻰ ﻋﺒﺎﺭﺓ ﻋﻥ ﻨﺴﺨﺔ ﺍﺤﺘﻴﺎﻁﻴﺔ ﻟﺠﻤﻴﻊ ﻜﺘل ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﺍﻟﺘﻲ ﺘﻐﻴﺭﺕ ﻤﻨﺫ ﺁﺨﺭ  Incremental Level 0.


    3- أنماط ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ:-              

                           1- Offline: ﻭﻫﻭ ﻋﻤل ﻨﺴﺦ ﺍﺤﺘﻴﺎﻁﻲ ﻟﻘﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﺒﺸﺭﻁ ﺃﻥ ﺘﻜﻭﻥ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﻏﻴﺭ ﻤﻔﺘﻭﺤﺔ ﺃﻭ ﺒﻤﻌﻨﻰ ﺁﺨﺭ ﻴﻤﻜﻥ ﻋﻤل ﻨﺴﺦ ﺍﺤﺘﻴﺎﻁﻲ ﻟﻘﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ

                            ﻓﻲ ﺍﻟﻭﻀﻊ Mount ﻭﻫﻨﺎ ﻨﻀﻤﻥ ﺍﻵﺘﻲ:

    The SCN data file headers matches the SCN in the control files.

                             ﻭﻫﺫﺍ ﺍﻟﻨﻭﻉ ﻴﺴﻤﻰ ﺃﻴﻀﺎﹰ (Consistent or Cold) 

                            2- Online: ﻭﻫﻭ ﻋﻤل ﻨﺴﺦ ﺍﺤﺘﻴﺎﻁﻲ ﺃﺜﻨﺎﺀ ﻋﻤل ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﻭﺩﻭﻥ ﺇﻏﻼﻗﻬﺎ، ﻭﻴﺴﻤﻰ ﺃﻴﻀﺎﹰ (Inconsistent or Hot).


    4- ﺃﺸﻜﺎل ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ:-

                                        1- Image Copies: ﻫﻲ ﻋﺒﺎﺭﺓ ﻋﻥ ﻨﺴﺨﺔ ﻁﺒﻕ ﺍﻷﺼل ﻟﻠﻤﻠﻔﺎﺕ ﻭﻫﻰ ﺘﺸﺒﻪ ﻋﻤﻠﻴﺔ ﻨﺴﺦ ﺍﻟﻤﻠﻔﺎﺕ ﻋﻥ ﻁﺭﻴﻕ ﻨﻅﺎﻡ ﺍﻟﺘﺸﻐﻴل، ﻫﺫﺍ ﺍﻟﻨﻭﻉ ﻤﻥ ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ

                                   ﻴﺘﻡ ﺇﺭﺴﺎﻟﻪ ﻓﻘﻁ ﺇﻟﻰ ﺍﻟﺩﻴﺴﻙ ﻭﻻ ﻴﻤﻜﻥ ﺇﺭﺴﺎﻟﻪ ﺇﻟﻰ ﺍلTape، ﻫﺫﺍ ﺍﻟﻨﻭﻉ ﻴﺴﻬل ﻋﻤﻠﻴﺔ ﺍﻻﺴﺘﺭﺠﺎﻉ (Restore).

                                   2- Backup Sets:  ﻭﻫﻰ ﻋﻤل ﻨﺴﺦ ﺍﺤﺘﻴﺎﻁﻲ ﻟﻭﺍﺤﺩ ﺃﻭ ﻤﺠﻤﻭﻋﺔ ﻤﻥ ﺍلData Files  ﺃﻭ ﻤﻠﻔﺎﺕ ﺍلArchive log Files ﺒﺤﻴﺙ ﻴﺘﻡ ﺘﺠﺎﻫل ﺍﻟﻜﺘل ﺍﻟﻔﺎﺭﻏﺔ

                                   ﻭﺇﻤﻜﺎﻨﻴﺔ ﻋﻤل ﻀﻐﻁ ﻟﻠﻜﺘل ﻟﺘﻘﻠﻴل ﺤﺠﻡ ﺍﻟﻤﻠﻔﺎﺕ ﻤﻤﺎ ﻴﺠﻌل ﻤﻠﻔﺎﺕ ﺍﻟﻨﺴﺦ ﺍﻻﺤﺘﻴﺎﻁﻲ ﺍﻗل ﺤﺠﻤﺎﹰ ﻤﻥ ﺍﻟﻨﻭﻉ ﺍﻷﻭل Image Copies.


    5- طرق تنفيذ اوامر الRMAN:-              

    ﺃﻭﻻﹰ ﻭﻗﺒل ﺍﻟﺤﺩﻴﺙ ﻋﻥ ﻁﺭﻕ ﺘﻨﻔﻴﺫ ﺃﻭﺍﻤﺭ ﺍلRMAN ﻴﺠﺏ ﺍﻹﺸﺎﺭﺓ ﺇﻟﻰ ﺃﻥ ﻤﺴﺘﺨﺩﻡ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ ﺍﻟﺫﻱ ﻴﺭﻴﺩ ﺍﺴﺘﺨﺩﺍﻡ ﺍلRMAN ﻴﺠﺏ ﺃﻥ ﻴﻤﻠﻙ ﺍﻟﺼﻼﺤﻴﺔ SYSDBA ﻭﺫﻟﻙ ﻷﻨﻪ ﻗﺩ ﻴﺤﺘﺎﺝ

    ﻹﻏﻼﻕ ﻗﺎﻋﺩﺓ البيانات ﻭﻓﺘﺤﻬﺎ.

    ﺃﻤﺎ ﻁﺭﻕ ﺘﻨﻔﻴﺫ ﺃﻭﺍﻤﺭ ﺍلRMAN ﻓﻬﻲ:

    1-  Stand-alone: ﻴﺘﻡ ﻓﻴﻪ ﺘﻨﻔﻴﺫ ﺍﻷﻭﺍﻤﺭ ﺒﺸﻜل ﻤﻨﻔﺭﺩ ﻓﻲ ﻤﺤﺭﺭ ﺍلRMAN ﻭﺩﻭﻥ ﺒﺩﺍﻴﺔ ﺍﻟﻜﻭﺩ ﺒﺎﻟﻜﻠﻤﺔ RUN.

    2- Job: ﻴﺠﺏ ﺃﻥ ﻴﺘﻡ ﺘﻀﻤﻴﻨﻪ ﺒﻴﻥ ﻗﻭﺴﻴﻥ {} ﻭﻴﺤﺏ ﺃﻥ ﻴﺒﺩﺃ ﺒﻜﻠﻤﺔ RUN ﻭﻴﺘﻡ ﺘﻨﻔﻴﺫ ﺍﻷﻭﺍﻤﺭ ﻓﻴﻪ ﻋﻠﻲ ﺸﻜل ﻤﺠﻤﻭﻋﺔ.

    ﻜﻤﺎ ﻴﻤﻜﻥ ﺤﻔﻅ ﺍﻟﻜﻭﺩ ﻓﻲ ﺸﻜل ﻤﻠﻑ File.rcv ﻭﻴﺘﻡ ﺘﻨﻔﻴﺫﻩ ﻋﻠﻰ ﻤﺤﺭﺭ ﺍلRMAN.


    RMAN TARGET /      @c:\backup.rcv


    ﻗﻤﺕ ﺒﺘﻨﻔﻴﺫ ﺍﻟﻤﻠﻑ c:\backup.rcv ﺍﻟﺫﻱ ﻴﺤﻭﻯ ﻋﻠﻰ ﻜﻠﻤﺘﻴﻥ ﻓﻘﻁ REPORT SCHEMA ﻭﻫﺫﺍ ﺍﻷﻤﺭ ﻟﻌﺭﺽ ﻫﻴﻜﻠﺔ ﻗﺎﻋﺩﺓ ﺍﻟﺒﻴﺎﻨﺎﺕ.