`
hillmover
  • 浏览: 34020 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论

Oracle - DBA

阅读更多

Enabling Remote HTTP Connection to the Database

  1.  Database Home Page > Administration > Manage Http Access
  2.  SQL> EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);

Starting Up the Database

    $ net start OracleXETNSListener
    $ net start OracleServiceXE
    $ cd %ORACLE_INSTALL_DIR%\app\oracle\product\10.2.0\server\BIN\
    $ SQLPLUS / AS SYSDBA
    $ STARTUP


Stop the Database

    $ net start OracleXETNSListener
    $ net start OracleServiceXE
    $ cd %ORACLE_INSTALL_DIR%\app\oracle\product\10.2.0\server\BIN\
    $ SQLPLUS / AS SYSDBA
    $ SHUTDOWN IMMEDIATE

 

Recovery the database if shutdown fails

    $ SHUTDOWN ABORT

Connect the Databae Remotely

To connect remotely, you must supply not just a user name and password, but a complete Oracle Net connect string.
    Connect Strings
    username/password@[//]host[:port][/service_name]

 

Manage Oracle Net Listener

    $ LSNRCTL STATUS | START | STOP

 

Managing Database Memory

System global area (SGA)
Program global area (PGA)

Memory Allocation in Oracle Database XE 

 

Managing Database Storage

  • Logical structures
  • Physical structures
  • Recovery-related structures

 

Database Storage Structure

 

Tablespaces
   

  • Permanent tablespaces
            store system and user data
  • Temporary tablespaces
            improve the concurrency of multiple sort operations, and reduce their overhead
  • Undo tablespaces
    • undo any uncommited changes made to the database in the event that a rollback is necessary
    • provide read consistency
    • support the Flashback Query feature

Recovery-Related Structures in the Flash Recovery Area

  • Backups of the physical files that make up the database (datafiles, the control file, and the server parameter file (SPFILE))

Note:
Oracle database backup and recovery is based on protecting the physical files of the database, rather than individual database objects such as tables.

  • Online redo logs
  • Archived redo logs
    If you enable log archiving, filled redo log files are archived (copied) in the flash recovery area before being reused. The online and archived logs together constitute a record of all changes committed to the database since the last backup was taken.

Flash Recovery Area Default Locations

Linux  /usr/lib/oracle/xe/app/oracle/flash_recovery_area/
Windows %ORACLE_INSTALL_DIR%\app\oracle\flash_recovery_area\

 
Datafile Locations

Linux /usr/lib/oracle/xe/oradata/XE/
Windows C:\oraclexe\oradata\XE\

 

Online Redo Log Files

The database writes to the redo log files in a circular fashion. When the current redo log file fills, the database begins writing to the next available redo log file. (The redo log files that are not current are called inactive.) When the last available redo log file is filled, the database returns to the first redo log file and writes to it (overwriting previous redo entries), starting the cycle again.

Multiplexed Redo Log

Two or more identical copies of the redo log can be automatically maintained in separate locations.

Archived Redo Log Files

Oracle Database XE can be configured so that a background archiving process makes copies of filled, inactive redo log files in the flash recovery area before they are reused. Redo log files copied in this way are called archived redo log files.
A database configured to archive redo logs is said to be in ARCHIVELOG mode. (A database not configured to archive redo logs is said to be in NOARCHIVELOG mode.)

     

When you drop (delete) a user, you must either first drop all the user's schema objects, or use the cascade feature of the drop operation, which simultaneously drops a user and all of his schema objects.

Role:
    CONNECT
    RESOURCE
    DBA
Internal User Acounts
    SYSTEM
        all administrative orther than startup/shutdown the database
    SYS
        If you want to log in as SYS with SQL Command Line (SQL*Plus), you must connect to the database "AS SYSDBA".
        SQL > connect sys/password as sysdba
Operating System Authentication
    Group Name
        Linux
            dba
                User Name
                    oracle
        Windows
            ORA_DBA


 

 

 

 

 

 

 

 

 

 

 

export ORACLE_BASE=/home/oracle/app #export ORACLE_SID=orcl export ORACLE_HOME=/home/oracle/app/oracle/product/10.2.0/db_1 export ORACLE_SID=orcl # start the listener /home/oracle/app/oracle/product/10.2.0/db_1/bin/lsnrctl start #start the db /home/oracle/app/oracle/product/10.2.0/db_1/bin/dbstart #start em /home/oracle/app/oracle/product/10.2.0/db_1/bin/emctl start dbconsole

分享到:
评论

相关推荐

    Oracle-dba.zip_Oracle-dba_dba_oracle_oracle dba_oracle 管理

    Oracle数据库管理员(DBA)是IT领域中的关键角色,负责维护和优化Oracle数据库系统,确保数据的安全性、可用性和性能。本压缩包“Oracle-dba.zip”提供了丰富的Oracle DBA相关资源,尤其对DBA新手而言,是一份极具...

    Oracle-DBA日常工作手册.doc

    Oracle-DBA日常工作手册 本文档旨在降低现场实施人员及用户 Oracle 数据库的治理难度,提升 Oracle 数据库技术能力。文档针对 Oracle9i、10g 两个版本提供了一套完整的 Oracle 数据库监控、治理的思路、方法步骤。 ...

    Oracle-DBA培训教程

    Oracle DBA(数据库管理员)是管理和维护Oracle数据库系统的专业人员,这个“Oracle-DBA培训教程”显然旨在帮助学习者掌握这一领域的核心技能。Oracle数据库是全球广泛使用的商业关系型数据库管理系统,尤其在大型...

    华为面试题附答案Oracle-DBA数据库管理员JAVA程序员架构师必看.pdf

    华为面试题附答案Oracle-DBA数据库管理员JAVA程序员架构师必看.pdf

    Toad-for-Oracle-DBA培训教程

    Toad for Oracle是一款功能强大的数据库管理工具,特别为Oracle数据库管理员(DBA)设计,以提高他们的工作效率和简化复杂任务。该工具提供了丰富的功能,以满足DBA在管理、诊断、导入导出、监控、优化、报告生成、...

    oracle-dba.ru:[oracle-dba.ru] 网站

    网站源代码使用 docker 容器(例如,类似 ubuntu 的发行版)在您的主机上运行 oracle-dba.ru: 安装和 docker-compose。进行更改的选项Docker 和 docker-compose 应该已经安装好了。 更远: $ cd ~$ mkdir oracle-...

    oracle-dba管理脚本.doc

    Oracle DBA 管理脚本 Oracle DBA 管理脚本是一个功能强大且实用的数据库管理工具,旨在帮助数据库管理员(DBA)快速、轻松地管理 Oracle 数据库。该脚本提供了多种有用的功能,包括禁用检查约束、外键和主键等。 ...

    ORACLE-DBA面试题

    Oracle DBA面试题通常会涵盖数据库管理、性能优化、故障排查、安全性以及高可用性等多个领域。以下是一些可能在面试中出现的关键知识点: 1. **Oracle数据库基础**: - 数据库架构:理解Oracle的物理和逻辑结构,...

    华为面试题(附答案)Oracle-DBA数据库管理员JAVA程序员架构师必看.doc (2).pdf

    【华为面试题】涵盖Oracle-DBA数据库管理员、JAVA程序员及架构师的必备知识 在IT领域,数据库管理和开发是核心部分,特别是对于Oracle DBA(数据库管理员)、JAVA程序员和架构师来说,深入理解数据库原理和技术是至...

    oracle-dba-职责(ppt文档).ppt

    Oracle DBA,即Oracle数据库管理员,是负责管理和维护Oracle数据库系统的专业人员。他们的职责涵盖了数据库的备份、恢复、性能优化、安全性和日常监控等多个方面。以下是对DBA职责的详细阐述: 1. **备份与恢复**:...

    ORACLE-DBA常用脚本.ppt

    Oracle DBA(数据库管理员)在日常工作中经常需要使用各种脚本来进行数据库的管理和维护。以下是一些关于Oracle DBA常用脚本的知识点: 1. 完整性约束检查: - 完整性约束是数据库设计的重要部分,包括主键、外键...

    oracle-DBA操作常用SQL.txt

    sql语句 oracle_DBA操作常用SQL.txt

    Oracle-DBA 教程下载.rar

    Oracle数据库管理员(Oracle DBA)是负责管理和维护Oracle数据库系统的专业人士。这个角色涵盖了数据库的设计、安装、配置、性能优化、安全管理和故障排除等多个方面。Oracle DBA教程通常会包括以下核心知识点: 1....

    Oracle-DBA-数据库日常维护手册-常用SQL-脚本.docx

    Oracle数据库的日常维护是DBA工作中的重要环节,确保数据库高效稳定运行。本文档主要涵盖了三个方面:Oracle警告日志文件监控、数据库表空间使用情况监控以及查看数据库的连接情况。 一、Oracle警告日志文件监控 ...

    Oracle-DBA-数据库日常维护手册-常用SQL-脚本.pdf

    ### Oracle DBA 数据库日常维护手册关键知识点解析 #### 一、Oracle 警告日志文件监控 **概述:** Oracle 数据库在运行过程中会产生警告日志文件(`alert_SID.log`),该文件记录了数据库的重要事件和异常情况。通过...

    oracle-DBA简历模版.doc

    Oracle DBA 简历模板 本简历模板主要面向 Oracle DBA 职位,涵盖了个人基本信息、求职意向、职业技能、项目经验、教育背景和个人评价等方面的内容。 个人基本信息 * 个人基本信息部分包括姓名、性别、年龄、证书...

    oracle-DBA日常检查.doc

    Oracle DBA(数据库管理员)的日常检查工作是确保数据库高效、稳定运行的关键环节。下面将详细阐述在Oracle 10g数据库中进行日常检查时涉及的一些核心知识点。 1. **数据库基本状态检查**: - **Oracle实例状态**...

    云和恩墨oracle-dba的一天海报

    根据给定的文件信息,我们可以总结出Oracle DBA(数据库管理员)一天的工作涉及多个关键方面,包括但不限于数据库状态检查、性能监控与优化、安全性管理以及数据保护等方面。下面将详细阐述这些知识点: ### 一、...

    深入浅出Oracle: DBA入门、进阶与诊断案例.pdf

    《深入浅出Oracle:DBA入门、进阶与诊断案例》是一本专为数据库管理员(DBA)设计的Oracle技术指南。这本书详细介绍了Oracle数据库管理的基础知识,中级技能以及高级故障诊断技巧,旨在帮助读者从新手到专家逐步提升...

    ORACLE-DBA教程▼.pptx

    Oracle数据库管理系统是企业级广泛应用的数据库解决方案,DBA(Database Administrator)的角色至关重要,他们负责整个数据库系统的管理、监控和维护。本教程将深入探讨Oracle的体系结构,帮助DBA更好地理解和执行其...

Global site tag (gtag.js) - Google Analytics