国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Table of Contents
本章目標
介紹Oracle公司
Oracle下載安裝
Oracle用戶類型
Enterprise Manager管理工具
SQL*Plus管理工具
本章總結
Home Database Mysql Tutorial Oracle基礎第一章 Oracle簡介

Oracle基礎第一章 Oracle簡介

Jun 07, 2016 pm 03:08 PM
dba oracle introduce Base Target Introduction

本章目標 介紹 Oracle 公司 Oracle 下載安裝 Oracle 用戶類型 Enterprise Manager 管理工具 SQL*Plus 管理工具 介紹Oracle公司 1. Oracle 公司簡介 a) Oracle (甲骨文)公司 i. 1977 年 6 月, Larry Ellison , Bob Minor 和 Ed Oates 三人合伙創(chuàng)辦( Soft

本章目標

介紹Oracle公司

Oracle下載安裝

Oracle用戶類型

Enterprise Manager管理工具

SQL*Plus管理工具

?

介紹Oracle公司

1.???????Oracle公司簡介

a)???????Oracle(甲骨文)公司

??????????????????????? i.????????????? 19776月,Larry Ellison,Bob MinorEd Oates三人合伙創(chuàng)辦(Software Development Laboratories,SDL

????????????????????? ii.????????????? 1979年,更名為Relational Software Inc.RSI

??????????????????? iii.????????????? 1983年,為了突出核心產品,RSI更名為Oracle

???????????????????? iv.????????????? 19976月,Oracle第八版發(fā)布

?????????????????????? v.????????????? 20020426日,啟用“甲骨文”作為中文注冊商標

???????????????????? vi.????????????? 20039月,Ellison宣布下一代數(shù)據(jù)庫產品“Oracle 10g”,“g”代表“grid,網格”

?????????????????? vii.????????????? 200711月,Oracle 11g正式發(fā)布,功能上大大加強

2.???????Oracle 11g數(shù)據(jù)庫產品

a)??????? 企業(yè)版(Enterprise Edition)

此版本是為企業(yè)級應用設計的

b)??????? 標準版(Standard Edition)

此版本是為部門或工作組級應用設計的。也適用與中小企業(yè)

c)??????? 標準版1(Standard Edition One)

此版本是為部門,工作組級或Web應用設計的。

d)??????? 簡化版(Express)

此版本近支持要求與企業(yè)版和標準版完全兼容的單用戶開發(fā)環(huán)境和部署環(huán)境。

?

Oracle下載安裝

1.??????? 安裝Oracle 11g

a)??????? 下載地址

??????????????????????? i.?????????????http://www.oracle.com/technetwork/cn/database/enterprise-edition/downloads/index.html

b)??????? 下載安裝文件,以下是適合Windows32位操作系統(tǒng)的文件

??????????????????????? i.????????????? Oracle 11g服務器相關文件

1.???????win32_11gR2_database_1of2.zip

2.???????win32_11gR2_database_2of2.zip

????????????????????? ii.????????????? Oracle 11g客戶端相關文件

1.???????win32_11gR2_client.zip

2.???????Oracle安裝

Oracle基礎第一章 Oracle簡介

?

Oracle基礎第一章 Oracle簡介

?

Oracle基礎第一章 Oracle簡介

?

Oracle基礎第一章 Oracle簡介

?

Oracle基礎第一章 Oracle簡介

?

Oracle基礎第一章 Oracle簡介

?

Oracle基礎第一章 Oracle簡介

?

?

Oracle基礎第一章 Oracle簡介

?

Oracle基礎第一章 Oracle簡介

?

?

Oracle基礎第一章 Oracle簡介

Oracle用戶類型

1.???????Oracle數(shù)據(jù)庫包含多種用戶類型,只有數(shù)據(jù)庫管理員(DBA)用戶才能對數(shù)據(jù)庫進行管理。

2.???????Oracle數(shù)據(jù)庫用戶類型

a)??????? 數(shù)據(jù)庫管理員

b)??????? 安全員

c)??????? 網絡管理員

d)??????? 應用程序開發(fā)員

e)??????? 應用程序管理員

f)???????? 數(shù)據(jù)庫用戶

3.??????? 數(shù)據(jù)庫管理員

a)??????? 每個數(shù)據(jù)庫都至少有一個數(shù)據(jù)庫管理員。對于大型的數(shù)據(jù)庫,需要一組數(shù)據(jù)庫管理員共同完成。數(shù)據(jù)庫管理員的主要任務是

??????????????????????? i.????????????? 評估數(shù)據(jù)庫服務器的硬件配置

????????????????????? ii.????????????? 安裝Oracle數(shù)據(jù)庫軟件及補丁

??????????????????? iii.????????????? 規(guī)劃數(shù)據(jù)庫的邏輯存儲結構、數(shù)據(jù)庫結構及備份策略

???????????????????? iv.????????????? 創(chuàng)建并日常啟動或關閉數(shù)據(jù)庫

?????????????????????? v.????????????? 創(chuàng)建并維護主要的數(shù)據(jù)庫存儲結構及數(shù)據(jù)庫對象

???????????????????? vi.????????????? 管理用戶,維護系統(tǒng)安全

?????????????????? vii.????????????? 控制和監(jiān)控用戶對數(shù)據(jù)庫的訪問

???????????????? viii.????????????? 監(jiān)控和優(yōu)化數(shù)據(jù)庫的行為

???????????????????? ix.????????????? 備份和恢復數(shù)據(jù)庫

4.??????? 其他數(shù)據(jù)庫用戶類型

a)??????? 安全員

主要管理用戶、控制和監(jiān)控用戶對數(shù)據(jù)庫的訪問,以及維護數(shù)據(jù)庫的安全

b)??????? 網絡管理員

管理Oracle的網絡產品

c)??????? 應用程序開發(fā)員

負責設計和開發(fā)數(shù)據(jù)庫應用程序

d)??????? 應用程序管理員

對指定的應用程序進行管理

e)??????? 數(shù)據(jù)庫用戶

數(shù)據(jù)庫用戶通過應用程序與數(shù)據(jù)庫打交道,例如:添加、修改和刪除數(shù)據(jù)

5.??????? 默認數(shù)據(jù)庫管理員用戶

a)??????? 在安裝Oracle數(shù)據(jù)庫時,自動創(chuàng)建用戶名SYSSYSTEM,用戶密碼在安裝時被設定,并自動授予數(shù)據(jù)庫管理員(DBA)的角色。

b)???????SYS用戶

這個賬號具有所有數(shù)據(jù)庫管理的功能,所有數(shù)據(jù)庫數(shù)據(jù)字典中的基本表和視圖都存儲在用戶SYS的方案(Schema)中,這些基本表和視圖對于Oracle數(shù)據(jù)庫的操作都非常重要。

c)???????SYSTEM用戶

該賬號除了不能用于數(shù)據(jù)庫備份及恢復、數(shù)據(jù)庫升級外,可以執(zhí)行其他所有的日常管理管理工作。

?

Enterprise Manager管理工具

1.???????Enterprise Manager管理工具

a)???????Oracle Enterprise Manager Database Control是基于Web界面的管理數(shù)據(jù)庫的主要工具。

??????????????????????? i.????????????? 它可以用于日常的管理及維護任務,包括創(chuàng)建方案(表、視圖和索引等等),管理用戶及系統(tǒng)安全,管理數(shù)據(jù)庫的內存及存儲,備份及恢復數(shù)據(jù)庫,數(shù)據(jù)的導入及導出,監(jiān)控數(shù)據(jù)庫的性能。

b)???????Enterprise Manager的啟動

c)??????? 在Microsoft Windows環(huán)境下,進入“控制面板”,選擇“管理工具”。打開“服務”窗口,確認OracleDBConsole是否啟動

d)??????? 在瀏覽器上輸入以下URL

https://數(shù)據(jù)庫服務器名稱>:端口號>/em

比如:https://localhost:1158/em

2.???????Enterprise Manager的主要功能

a)??????? 可以使用SYSSYSTEM,或有DBA權限的用戶帳戶登錄

b)??????? 主頁面主要包含當前數(shù)據(jù)庫的狀態(tài)及環(huán)境信息

??????????????????????? i.????????????? 當前數(shù)據(jù)庫示例的狀態(tài)和運行時間

????????????????????? ii.????????????? 主機CPU利用率

??????????????????? iii.????????????? 活動會話數(shù)

???????????????????? iv.????????????? SQL響應時間

?????????????????????? v.????????????? 診斷總結

???????????????????? vi.????????????? 空間使用總結

?????????????????? vii.????????????? 高可用性

?

SQL*Plus管理工具

?

1.???????SQL*Plus管理工具

a)???????SQL*Plus工具可以執(zhí)行輸入的SQL語句和包含SQL語句的文件以及PL/SQL語句。通過它可以直接對數(shù)據(jù)庫進行管理操作,例如:查詢、插入、更新或刪除等等

b)???????SQLPL/SQLSQL*Plus的區(qū)別

??????????????????????? i.????????????? SQL:全稱為結構化查詢語言,是工業(yè)化標準的計算機語言用于查詢及更新數(shù)據(jù)庫,它可以實現(xiàn)各種的數(shù)據(jù)庫管理操作。

????????????????????? ii.????????????? PL/SQL:是Oracle在標準SQL語言上進行過程性擴展后形成的程序設計語言,在管理和維護數(shù)據(jù)庫的過程中,經常會使用PL/SQL語言設計并編寫存儲過程、函數(shù)和觸發(fā)器。

??????????????????? iii.????????????? SQL*Plus:是一個命令行的數(shù)據(jù)庫管理工具,是Oracle數(shù)據(jù)庫SQL語句主要的運行環(huán)境,是用戶與服務器之間的主要接口。用戶可以通過它使用SQL語句和PL/SQL程序交互式的訪問數(shù)據(jù)庫。

2.??????? 啟動SQL*Plus連接數(shù)據(jù)庫

a)??????? 在Windows環(huán)境下,可以通過命令行方式和Windows菜單兩種方式啟動SQL*Plus操作

b)??????? 命令行方式啟動SQL*Plus

??????????????????????? i.????????????? 1.打開DOS窗口

????????????????????? ii.????????????? 2.配置操作系統(tǒng)環(huán)境變量(有時可省略)

??????????????????? iii.????????????? 3.可以使用以下命令啟動SQL*Plus

1.???????sqlplus {用戶名| /} [as sysdba]

2.??????? 例如:

3.???????sqlplus SYS AS SYSDBA

4.??????? 輸入口令: password

c)???????Windows菜單啟動SQL*Plus

??????????????????????? i.????????????? 依次點擊:開始?所有程序?Oracle - OraDb11g_home1?應用程序開發(fā)?SQL Plus

????????????????????? ii.????????????? 打開登錄窗口之后,輸入用戶名及密碼

3.???????SQL*Plus編輯器

?

使用SQL*Plus可以方便的編輯和管理編程的過程,其中包括編輯命令、保存命令、加入注釋、運行命令、編輯交互命令、使用綁定變量、跟蹤語句等。

4.??????? 編輯命令

?

Oracle基礎第一章 Oracle簡介

5.??????? 保存命令

a)??????? 在SQL*Plus中,可以將一個或多個SQL命令、PL/SQL塊和SQL*Plus命令存儲在命令文件中,其命令包括SAVE命令、INPUT命令、EDIT命令3

??????????????????????? i.????????????? SAVE命令

1.??????? 格式:SAVE filename

2.??????? 使用SAVE命令可以直接將緩沖區(qū)中的SQL語句保存到在當前路徑或指定路徑下指定的文件中,擴展名是.sql

????????????????????? ii.????????????? INPUT命令

可以將INPUTSAVE命令結合使用,使用INPUT命令將SQL*Plus命令輸入到緩沖區(qū)中,然后可以使用SAVE命令保存到文件中。

??????????????????? iii.????????????? EDIT命令

可以直接使用EDIT命令創(chuàng)建文件

6.??????? 加入注釋

a)??????? 在代碼中加入注釋能夠提高可讀性,在SQL*Plus中加入注釋的方式包括REMARK命令、/*...*/、--三種

??????????????????????? i.????????????? 使用REMARK命令

1.??????? 使用REMARK命令在一個命令文件的一行上加上注釋

2.??????? 例如:REMARK這是注釋內容

????????????????????? ii.????????????? 使用SQL注釋分隔符/*...*/可以對一個命令文件的一行或多行加注釋

??????????????????? iii.????????????? 使用--

1.??????? 使用ANSI/ISO樣式注釋,對單行進行注釋

2.??????? 例如:

3.???????--清除屏幕

4.???????CLEAR SCREEN

7.??????? 運行命令

a)??????? 運行SQL命令和PL/SQL塊有三種方式,分別為命令行方式、SQL緩沖區(qū)方式、命令文件方式

??????????????????????? i.????????????? 命令行方式

在命令后面加分號(;)作為終止符來運行SQL命令的方式

????????????????????? ii.????????????? SQL緩沖區(qū)方式

1.???????SQL*Plus提供了RUN命令和斜杠(/)命令來以緩沖區(qū)方式執(zhí)行SQL命令。

2.???????RUN命令格式:R[un]。RUN命令列出并執(zhí)行當前存儲在緩沖區(qū)的命令并返回查詢的結果,并使緩沖區(qū)中的最后一行成為當前行。

3.??????? 斜杠(/)命令類似于RUN命令,它執(zhí)行存儲在緩沖區(qū)中的SQL命令或PL/SQL塊,但不顯示緩沖區(qū)的內容,也不會使緩沖區(qū)的最后一行成為當前行。

??????????????????? iii.????????????? 命令文件方式

1.??????? 以命令文件方式運行一個SQL命令或SQL*Plus命令或PL/SQL塊,有兩種方式:START命令和@命令

2.???????START命令

a)??????? 語法:START filename[.sql] [arg1 arg2]

b)???????SQL*Plus在當前路徑下查找具有在START命令中指定的文件名和擴展名的文件。如果沒有找到,將在SQLPATH環(huán)境變量定義的目錄中查找。參數(shù)部分[arg1 arg2]代表

3.???????@命令

START命令的功能相似,唯一的區(qū)別是@命令既可以在SQL*Plus會話內部運行,又可以在啟動SQL*Plus時的命令行級別運行,而START命令只能在SQL*Plus會話命令內部執(zhí)行。

8.??????? 使用SQL*Plus格式化查詢結果

a)??????? 當在SQL*Plus環(huán)境中執(zhí)行查詢語句,希望生成一個可讀性較強的輸出結果。這需要在執(zhí)行查詢語句前做一些設置。

b)???????SET命令

??????????????????????? i.????????????? SET命令用于設置系統(tǒng)變量的值

????????????????????? ii.????????????? 語法:SET 系統(tǒng)變量名> 變量值>

??????????????????? iii.????????????? 有些變量是與輸出結果相關的

1.???????PAGESIZE:設置每頁顯示的行數(shù)

2.???????LINESIZE:設置每行顯示的字符個數(shù)

3.???????NEWPAGE:設置分割頁與頁之間的空白行數(shù)

4.???????HEADING:用于說明是否顯示查詢結果的列標題,默認值是ON,表示顯示標題

5.???????FEEDBACK:當一個查詢中選擇至少n行記錄時,就會在結果集的項顯示返回的行數(shù),默認值是6

6.???????ECHO:在用START命令執(zhí)行一個腳本文件時,ECHO命令用于控制是否顯示腳本中正在執(zhí)行的SQL語句。默認是OFF

9.???????SHOW命令

a)??????? 使用SHOW命令可以用來顯示當前的SQL*Plus環(huán)境中的系統(tǒng)變量,命令格式是

??????????????????????? i.????????????? SHO[W] option

其中option是系統(tǒng)變量名

????????????????????? ii.????????????? 例如

SHOW LINESIZE

返回當前LINESIZE的值

10.??? COLUMN命令

a)???????COLUMN命令可以改變列的標頭,重新格式化查詢中列的數(shù)據(jù),這里介紹兩種語法

??????????????????????? i.????????????? 修改列標頭

1.???????COLUMN column_name HEADING column_heading

2.???????column_name:需要修改的標題的列

3.???????column_heading:將column_name列輸出列標題為指定名

????????????????????? ii.????????????? 格式化NUMBER

1.???????COLUMN column_name FORMAT model

2.???????column_name:需要格式化輸出的列

3.???????model:格式化輸出

?

本章總結

?

介紹Oracle公司

Oracle下載安裝

Oracle用戶類型

Enterprise Manager管理工具

SQL*Plus管理工具

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

PHP Tutorial
1502
276
How to uninstall MySQL and clean residual files How to uninstall MySQL and clean residual files Apr 29, 2025 pm 04:03 PM

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

Oracle's Role in the Business World Oracle's Role in the Business World Apr 23, 2025 am 12:01 AM

Oracle is not only a database company, but also a leader in cloud computing and ERP systems. 1. Oracle provides comprehensive solutions from database to cloud services and ERP systems. 2. OracleCloud challenges AWS and Azure, providing IaaS, PaaS and SaaS services. 3. Oracle's ERP systems such as E-BusinessSuite and FusionApplications help enterprises optimize operations.

MongoDB vs. Oracle: Choosing the Right Database for Your Needs MongoDB vs. Oracle: Choosing the Right Database for Your Needs Apr 22, 2025 am 12:10 AM

MongoDB is suitable for unstructured data and high scalability requirements, while Oracle is suitable for scenarios that require strict data consistency. 1.MongoDB flexibly stores data in different structures, suitable for social media and the Internet of Things. 2. Oracle structured data model ensures data integrity and is suitable for financial transactions. 3.MongoDB scales horizontally through shards, and Oracle scales vertically through RAC. 4.MongoDB has low maintenance costs, while Oracle has high maintenance costs but is fully supported.

What software is better for yi framework? Recommended software for yi framework What software is better for yi framework? Recommended software for yi framework Apr 18, 2025 pm 11:03 PM

Abstract of the first paragraph of the article: When choosing software to develop Yi framework applications, multiple factors need to be considered. While native mobile application development tools such as XCode and Android Studio can provide strong control and flexibility, cross-platform frameworks such as React Native and Flutter are becoming increasingly popular with the benefits of being able to deploy to multiple platforms at once. For developers new to mobile development, low-code or no-code platforms such as AppSheet and Glide can quickly and easily build applications. Additionally, cloud service providers such as AWS Amplify and Firebase provide comprehensive tools

MySQL vs. Oracle: Licensing, Features, and Benefits MySQL vs. Oracle: Licensing, Features, and Benefits May 08, 2025 am 12:05 AM

The main difference between MySQL and Oracle is licenses, features, and advantages. 1. License: MySQL provides a GPL license for free use, and Oracle adopts a proprietary license, which is expensive. 2. Function: MySQL has simple functions and is suitable for web applications and small and medium-sized enterprises. Oracle has powerful functions and is suitable for large-scale data and complex businesses. 3. Advantages: MySQL is open source free, suitable for startups, and Oracle is reliable in performance, suitable for large enterprises.

MySQL and Oracle: Exploring Performance and Scalability MySQL and Oracle: Exploring Performance and Scalability Apr 29, 2025 am 12:12 AM

The difference between MySQL and Oracle in performance and scalability is: 1. MySQL performs better on small to medium-sized data sets, suitable for fast scaling and efficient reading and writing; 2. Oracle has more advantages in handling large data sets and complex queries, suitable for high availability and complex business logic. MySQL extends through master-slave replication and sharding technologies, while Oracle achieves high availability and scalability through RAC.

MySQL vs. Oracle: Understanding Licensing and Cost MySQL vs. Oracle: Understanding Licensing and Cost May 03, 2025 am 12:19 AM

MySQL uses GPL and commercial licenses for small and open source projects; Oracle uses commercial licenses for enterprises that require high performance. MySQL's GPL license is free, and commercial licenses require payment; Oracle license fees are calculated based on processors or users, and the cost is relatively high.

MongoDB vs. Oracle: Exploring NoSQL and Relational Approaches MongoDB vs. Oracle: Exploring NoSQL and Relational Approaches May 07, 2025 am 12:02 AM

In different application scenarios, choosing MongoDB or Oracle depends on specific needs: 1) If you need to process a large amount of unstructured data and do not have high requirements for data consistency, choose MongoDB; 2) If you need strict data consistency and complex queries, choose Oracle.

See all articles