亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Oracle學(xué)習(xí)筆記(六)

 更新時間:2011年12月28日 22:57:46   作者:  
最近需要用的oracle,所以大家好好的學(xué)習(xí)下基礎(chǔ)并整理下資料,希望能幫助到需要的朋友。
一、oracle
oracle服務(wù)器有Oracle instace 和Oracle database
instance有memory structure 和 background process 組成。
memory structure包括shared pool、 SGA(System Global Area).

SGA包括:Database buffer cache 和 Redo log buffer cache.
show sga;
show parameter shared;
show parameter db_cache;
show parameter log;
alter system set shared_pool_size=65M;

Process 包括User process、Server process、Background process;
databasey有data file 和 log file 和 control file組成。


database邏輯結(jié)構(gòu):表空間(tablespaces)、段(segments)、分區(qū)(extents)、塊(blocks)

ODCA(Oracle Database Configuration Assistant)
:創(chuàng)建數(shù)據(jù)庫
:配置數(shù)據(jù)庫選項
:刪除數(shù)據(jù)庫
:管理數(shù)據(jù)庫模板

二、管理數(shù)據(jù)庫實例
1、創(chuàng)建和管理初始參數(shù)文件initialization parameter files
系統(tǒng)參數(shù)文件system parameter file——spfilesid,spfile
初始參數(shù)文件init parameter file——initsid.ora
放置位置在oracle安裝目錄下database文件下
參數(shù)分:顯示參數(shù)explicit、隱式參數(shù)implicit、動態(tài)、靜態(tài)
2、configure omf
v$system_parameter動態(tài)性能表
創(chuàng)建spfile
create spfile from pfile
create spfile='d:\spfile.ora' from pfile;

創(chuàng)建表空間
create tablespace test1 datafile='d:\12.dbf' size 3M;

3、開啟和關(guān)閉數(shù)據(jù)庫
開啟數(shù)據(jù)庫Starting Up a Database
shutdown、nomount、mount、open
nomount——startup instance
used to create db,create controlfile
mount——open controlfile
used to change log mode,rename file,db recovery...
startup [nomount|mount|open]
pfile=
restrict
recovery
force

修改數(shù)據(jù)庫指令( alter database command)
1、改變數(shù)據(jù)庫從nomount狀態(tài)為mount;
alter database db_01 mount;
2、打開一個只讀的數(shù)據(jù)庫
alter database db_01 open read only;

關(guān)閉數(shù)據(jù)庫Shutting Down the Database
shutdown mode:normal、transactional、immediate、abort
4、監(jiān)視和使用diagnostic files
alter log file——alertsid.log
background tace file、use trace files

三、創(chuàng)建一個Oracle數(shù)據(jù)庫
1、使用ODCA(oracle database configuration assistant)創(chuàng)建數(shù)據(jù)庫

相關(guān)文章

  • oracle dba 應(yīng)該熟悉的命令

    oracle dba 應(yīng)該熟悉的命令

    oracle dba 命令集合,非常的多啊,好東西。
    2009-06-06
  • oracle 11g導(dǎo)出數(shù)據(jù)時報ORA 1455錯誤的處理方法

    oracle 11g導(dǎo)出數(shù)據(jù)時報ORA 1455錯誤的處理方法

    oracle 11g導(dǎo)出數(shù)據(jù)時報ORA 1455錯誤,原因是由于導(dǎo)出的該用戶的表可能存在空數(shù)據(jù)表,下面是正確的導(dǎo)出步驟
    2014-08-08
  • Oracle表空間設(shè)置和管理淺析

    Oracle表空間設(shè)置和管理淺析

    這篇文章主要給大家介紹了關(guān)于Oracle表空間設(shè)置和管理的相關(guān)資料,文中通過示例代碼介紹的非常詳細(xì),對大家學(xué)習(xí)或者使用Oracle具有一定的參考學(xué)習(xí)價值,需要的朋友們下面來一起學(xué)習(xí)學(xué)習(xí)吧
    2019-07-07
  • Oracle中pivot函數(shù)圖文實例詳解

    Oracle中pivot函數(shù)圖文實例詳解

    pivot操作是一種數(shù)據(jù)處理方法,可以將一個表中的行數(shù)據(jù)轉(zhuǎn)換為列數(shù)據(jù),這種轉(zhuǎn)換對于表格數(shù)據(jù)的分析和展示非常有用,下面這篇文章主要給大家介紹了關(guān)于Oracle中pivot函數(shù)的相關(guān)資料,需要的朋友可以參考下
    2023-05-05
  • Oracle數(shù)據(jù)庫按時間進(jìn)行分組統(tǒng)計數(shù)據(jù)的方法

    Oracle數(shù)據(jù)庫按時間進(jìn)行分組統(tǒng)計數(shù)據(jù)的方法

    這篇文章主要介紹了Oracle數(shù)據(jù)庫按時間進(jìn)行分組統(tǒng)計數(shù)據(jù)的方法,同時附帶了一個在不同時間段內(nèi)的統(tǒng)計實現(xiàn),需要的朋友可以參考下
    2015-11-11
  • Oracle計算時間差為毫秒的實現(xiàn)代碼

    Oracle計算時間差為毫秒的實現(xiàn)代碼

    這里我是用分隔字符串單獨計算毫秒部分,如果有更好的辦法,請大家分享一下,下面是查詢時間差為毫秒的模板,需要的朋友可以參考下
    2017-03-03
  • oracle 更改數(shù)據(jù)庫名的方法

    oracle 更改數(shù)據(jù)庫名的方法

    這兩天一朋友問如何更改數(shù)據(jù)庫名,于是做個測試,簡單記錄下,以便說明問題。
    2009-10-10
  • Oracle單實例升級補(bǔ)丁全過程記錄

    Oracle單實例升級補(bǔ)丁全過程記錄

    這篇文章主要介紹了Oracle單實例升級補(bǔ)丁,oracle19.3升級補(bǔ)丁到19.18,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2023-08-08
  • Oracle 表空間查詢與操作方法

    Oracle 表空間查詢與操作方法

    本文將介紹Oracle 表空間查詢與操作方法,需要了解跟多的朋友可以參考下
    2012-11-11
  • Oracle配置dblink訪問PostgreSQL的操作方法

    Oracle配置dblink訪問PostgreSQL的操作方法

    本文給大家介紹下Oracle配置dblink訪問PostgreSQL的操作方法,通過dblink訪問PostgreSQL的詳細(xì)過程,對Oracle?dblink訪問PostgreSQL相關(guān)知識感興趣的朋友一起看看吧
    2022-03-03

最新評論