當前位置:首頁 » 操作系統 » oracle多資料庫

oracle多資料庫

發布時間: 2022-09-02 18:55:00

1. 怎樣再oracle中建立多個資料庫

通過oracle自帶的DBCA建資料庫。

2. oracle可以創建多個資料庫嗎

不管你是什麼操作系統,可以按照下列的方式創建多個Oracle資料庫點擊[開始]->[程序]->[Oracle - OraHome92]->[Configuration and Migration Tools]->[Database Configuration Assistant],然後按照中文提示創建自己的資料庫!!
Oracle和sql不一樣,可以說是復雜的多,用慣了SQL的朋友真的是很難接受Oracle的操作方式,

3. oracle 一個實例下可以建多個資料庫么


通常情況下:一個實例對應一個資料庫

RAC集群:多個實例對應一個資料庫

oracle12C:一個實例可以對應多個資料庫

4. oracle 一個實例下可以建多個資料庫么

oracle一個資料庫可以有多個實例,每個實例下可以創建多個用戶。
通俗地講就是
資料庫:實例是一對多的關系
實例:用戶也是一對多的關系
望採納

5. 怎麼在一台機器上安裝兩個oracle資料庫

你要明白oracle是一個客戶端對應多個資料庫的,也就是說,同一個計算機室可以安裝多個資料庫的。你在安裝好客戶端後,點擊開始-所有程序-oracle客戶端,在裡面找到一個database開頭的程序,貌似叫DatabaseManager,進去後,你就知道了。

6. Oracle資料庫概述及特點

Oracle資料庫概述及特點

Oracle Database,又名Oracle RDBMS,或簡稱Oracle。是甲骨文公司的一款關系資料庫管理系統。到目前仍在資料庫市場上佔有主要份額。勞倫斯·埃里森和他的朋友,之前的同事Bob Miner和Ed Oates在1977年建立了軟體開發實驗室咨詢公司(SDL,Software Development Laboratories)。

ORACLE資料庫概論

ORACLE資料庫系統是美國ORACLE公司(甲骨文)提供的以分布式資料庫為核心的一組軟體產品,是目前最流行的客戶/伺服器(CLIENT/SERVER)或B/S體系結構的資料庫之一。比如SilverStream就是基於資料庫的`一種中間件。

ORACLE資料庫是目前世界上使用最為廣泛的資料庫管理系統,作為一個通用的資料庫系統,它具有完整的數據管理功能;作為一個關系資料庫,它是一個完備關系的產品;作為分布式資料庫它實現了分布式處理功能。但它的所有知識,只要在一種機型上學習了ORACLE知識,便能在各種類型的機器上使用它。

Oracle資料庫最新版本為Oracle Database 12c。Oracle資料庫12c 引入了一個新的多承租方架構,使用該架構可輕松部署和管理資料庫雲。此外,一些創新特性可最大限度地提高資源使用率和靈活性,如Oracle Multitenant可快速整合多個資料庫,而Automatic Data Optimization和Heat Map能以更高的密度壓縮數據和對數據分層。這些獨一無二的技術進步再加上在可用性、安全性和大數據支持方面的主要增強,使得Oracle資料庫12c 成為私有雲和公有雲部署的理想平台。

ORACLE資料庫特點

1、完整的數據管理功能:

1)數據的大量性

2)數據的保存的持久性

3)數據的共享性

4)數據的可靠性

2、完備關系的產品:

1)信息准則---關系型DBMS的所有信息都應在邏輯上用一種方法,即表中的值顯式地表示;

2)保證訪問的准則

3)視圖更新准則---只要形成視圖的表中的數據變化了,相應的視圖中的數據同時變化

4)數據物理性和邏輯性獨立准則

3、分布式處理功能:

ORACLE資料庫自第5版起就提供了分布式處理能力,到第7版就有比較完善的分布式資料庫功能了,一個ORACLE分布式資料庫由oraclerdbms、sql*Net、SQL*CONNECT和其他非ORACLE的關系型產品構成。

4、用ORACLE能輕松的實現數據倉庫的操作。

這是一個技術發展的趨勢,不在這里討論。

優點

■ 可用性強

■ 可擴展性強

■ 數據安全性強

■ 穩定性強

;

7. oracle10G怎麼里怎麼創建多個資料庫

一個資料庫創建多個實例
1. 先要關閉資料庫(進程和內存關閉)
[Oracle@oracle_2 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Proction on TueNov 12 20:34:53 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release10.2.0.1.0 - Proction
With the Partitioning, OLAP and Data Mining options
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
2. 設置環境變數
[oracle@oracle_2 ~]$ vi .bash_profile
此時環境變數已經設置好了
3. 創建目錄
i. 創建相關文件
此時我們可以看見已經有了相關目錄,那是我們之前創建的實例ORCL的相關目錄
創建目錄是採用了批量創建目錄{a,b,c,u}mp
[oracle@oracle_2 ~]$ cd $ORACLE_BASE
[oracle@oracle_2 oracle]$ ls
admin flash_recovery_area oradata oraInventory proct
[oracle@oracle_2 oracle]$
[oracle@oracle_2 oracle]$ mkdir -p admin/ORA10G/{a,b,c,u}mp
[oracle@oracle_2 oracle]$ ls
admin flash_recovery_area oradata oraInventory proct
[oracle@oracle_2 oracle]$ cd admin/
[oracle@oracle_2 admin]$ ls
ORA10G ORCL
[oracle@oracle_2 admin]$ cd ORA10G/
[oracle@oracle_2 ORA10G]$ ls
amp bmp cmp ump
[oracle@oracle_2 ORA10G]$
[oracle@oracle_2 ORA10G]$ ls
amp bmp cmp ump
[oracle@oracle_2 ORA10G]$ cd ..
[oracle@oracle_2 admin]$ ls
ORA10G ORCL
[oracle@oracle_2 admin]$ cd ..
[oracle@oracle_2 oracle]$ ls
admin flash_recovery_area oradata oraInventory proct
[oracle@oracle_2 oracle]$ mkdir -p oradata/ORA10G
[oracle@oracle_2 oracle]$
ii. 創建密碼文件
創建密碼文件需要到ORACLE_HOME/dbs目錄下創建
[oracle@oracle_2 10.2.0]$ cd $ORACLE_HOME/dbs
[oracle@oracle_2 dbs]$ ls
hc_ORCL.dat initdw.ora init.ora lkORCL orapwORCL spfileORCL.ora
[oracle@oracle_2 dbs]$ orapwd
Usage: orapwd file=<fname>password=<password> entries=<users> force=<y/n>
where
file -name of password file (mand),
password- password for SYS (mand),
entries -maximum number of distinct DBA and force - whether to overwrite existing file (opt),
OPERs (opt),
There areno spaces around the equal-to (=) character.
[oracle@oracle_2 dbs]$ orapwd file=orapwORA10Gpassword=oracle entries=30
[oracle@oracle_2 dbs]$ ls
hc_ORCL.dat init.ora orapwORA10G spfileORCL.ora
initdw.ora lkORCL orapwORCL
[oracle@oracle_2 dbs]$
[oracle@oracle_2 dbs]$ cat init.ora |grep -v^#|grep -v ^$ >initORA10G.ora
[oracle@oracle_2 dbs]$ ls
hc_ORCL.dat init.ora lkORCL orapwORCL
initdw.ora initORA10G.ora orapwORA10G spfileORCL.ora
[oracle@oracle_2 dbs]$
[oracle@oracle_2 dbs]$ vi initORA10G.ora
將內容改的和下面的一樣
db_name=ORA10G
db_files = 80 # SMALL
db_file_multiblock_read_count = 8 #SMALL
log_checkpoint_interval = 10000
processes = 50 # SMALL
parallel_max_servers = 5 #SMALL
log_buffer = 32768 # SMALL
max_mp_file_size = 10240 # limit trace file size to 5 Meg each
global_names = false
control_files =(/u01/app/oracle/oradata/ORA10G/ora_control1.ctl,/u01/app/oracle/oradata/ORA10G/ora_control2.ctl)
sga_max_size=300m
sga_target=300m
4. 啟動實例為ORA10G的資料庫
[oracle@oracle_2 dbs]$ export $ORACLE_SID=ORA10G
[oracle@oracle_2 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Proction on TueNov 12 21:08:55 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SYS@ORA10G>
SYS@ORA10G>create spfile from pfile;
File created.
SYS@ORA10G>startup nomount;
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219184 bytes
Variable Size 96470416 bytes
Database Buffers 213909504 bytes
Redo Buffers 2973696 bytes
SYS@ORA10G>
SYS@ORA10G>show parameter undo
NAME TYPE VALUE
------------------------------------ -----------------------------------------
undo_management string MANUAL
undo_retention integer 900
undo_tablespace string
SYS@ORA10G>
修改參數,由於undo_management參數為靜態參數,所以需要加上scope=spfile
SYS@ORA10G>alter system set undo_management=autoscope=spfile;
System altered.
SYS@ORA10G>show parameter undo
NAME TYPE VALUE
------------------------------------ -----------------------------------------
undo_management string MANUAL
undo_retention integer 900
undo_tablespace string
SYS@ORA10G>shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
此時發現並沒有更改,是由於靜態參數需要重啟才有效
SYS@ORA10G>startup nomount;
ORACLE instance started.
Total System Global Area 314572800 bytes
Fixed Size 1219184 bytes
Variable Size 96470416 bytes
Database Buffers 213909504 bytes
Redo Buffers 2973696 bytes
SYS@ORA10G>
此時只是改了spfile的參數還需要改pfile的參數
SYS@ORA10G>create pfile from spfile;
File created.
SYS@ORA10G>
5. 多個實例的切換
i. 實例為ORCL啟動資料庫
[oracle@oracle_2 dbs]$ export ORACLE_SID=ORCL
[oracle@oracle_2 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Proction on TueNov 12 21:19:19 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SYS@ORCL>
ii. 實例為ORCL10G啟動資料庫
SYS@ORCL>exit
Disconnected
[oracle@oracle_2 dbs]$ export ORACLE_SID=ORA10G
[oracle@oracle_2 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Proction on TueNov 12 21:24:54 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release10.2.0.1.0 - Proction
With the Partitioning, OLAP and Data Mining options
SYS@ORA10G>

8. oracle伺服器上有多個資料庫嗎

可以的,只要伺服器資源夠用的話,隨你安裝幾個資料庫都可以,只是每個資料庫listener都必須不同,只有一個資料庫可以預設1521,其他資料庫需要改埠;
但是一般情況下伺服器上的資源都是有限的,內存多一點的安裝2~3資料庫沒啥問題。
生產環境沒人這么干,測試環境,開發環境倒是可以的。

9. oracle中有多個資料庫時,startup命令啟動的是哪一個資料庫

當前sid的資料庫。
資料庫實例不管有多少個,當前的sid只有一個。
比如你有兩個資料庫實例A和B。
那麼你當前系統的sid是A,那麼startup啟動的就是A,當前系統的sid是B,那麼你啟動的就是B。
多實例資料庫在啟動時要確認sid才可以啟動,不然可能啟動錯實例。
確實系統實例的方式基本都是看參數,win系統和linux不同,而且每個linux的系統也不是那麼一樣,所以具體的查詢方式你要自己找找看。

熱點內容
平板如何關掉appstore密碼 發布:2025-07-08 00:59:17 瀏覽:404
安卓版軒轅劍劍之源哪裡下載 發布:2025-07-08 00:55:06 瀏覽:675
安卓的軟體怎麼關閉 發布:2025-07-08 00:53:38 瀏覽:777
html5整站源碼 發布:2025-07-08 00:36:01 瀏覽:943
sql創建鏈接 發布:2025-07-08 00:08:38 瀏覽:398
ftp上傳中斷 發布:2025-07-08 00:08:37 瀏覽:641
linux雲計算課程 發布:2025-07-08 00:07:23 瀏覽:23
安卓網易雲怎麼發布歌曲 發布:2025-07-07 23:42:29 瀏覽:626
安卓內存讀取腳本 發布:2025-07-07 23:42:19 瀏覽:872
python27漢化 發布:2025-07-07 23:42:18 瀏覽:722