建立資料庫

2021-09-30 15:56:35 字數 444 閱讀 5257

1.建立資料庫的方法

1) 使用oracle安裝程式(oracle universal installer),該安裝程式在安裝oracle伺服器時自動建立乙個資料庫

2)資料庫配置助手(oracle database configuration assistant)

3)使用create database命令手工建立資料庫

2.手工建立資料庫

1.步驟

1)選擇唯一的例項名和資料庫名

2)選擇資料庫的字符集

3)設定作業系統變數

4)建立初始化引數檔案

5)以nomount方式啟動例項

6)執行create database命令

7)執行指令碼來生成資料字典和完成資料庫建立後的步驟

8)根據需要建立附加的表空間

3.利用oracle managed files來建立資料庫

資料庫建立

刪除資料庫 drop database cpxs 資料庫操作語法 建立資料庫 create database database name on 子句 資料檔案屬性 primary 指定主檔案,否則預設第乙個 n 檔案屬性 filegrowth growth increament n 檔案組 log ...

建立資料庫

1.建立表空間 create tablespace test space logging datafile f oracle oracledata test.ora size 5m extent management local uniform segment space management au...

建立資料庫

建立乙個資料庫 binbin 有乙個主要資料庫檔案 bin.mdf 乙個次要資料庫檔案組 jay 裡面有次要資料檔案 jay 1.ndf,jay 2.ndf 乙個日誌文志檔案 ziji.ldf 判斷是否存在此資料庫,若存在就刪除 if exists select from sysdtabases w...