1、首先設定
oracle
_sid=manual
2、建立密碼檔案
[oracle@myorcl dbs]$ orapwd file=orapmanual password=oracle
3、建立所需的目錄結構
[oracle@myorcl admin]$ mkdir manual
然後進入manual目錄建立一下檔案
[oracle@myorcl manual]$ ls
adumpbdumpcdumppfileudump
4、建立所需的引數檔案
[oracle@myorcl pfile]$ vi init.ora
db_name=manual
db_domain=""
sga_target=285212672
pga_aggregate_target=94371840
db_block_size=8192
db_file_multiblock_read_count=16
open_cursors=300
processes=150
db_recovery_file_dest_size=2147483648
log_archive_format=%t_%s_%r.dbf
compatible=10.2.0.1.0
remote_login_passwordfile=exclusive
undo_management=auto
undo_tablespace=undotbs1
5、使用已建立的引數檔案啟動資料庫例項到nomount狀態
oracle instance started.
total system global area285212672 bytes
fixed size1218992 bytes
variable size92276304 bytes
database buffers188743680 bytes
redo buffers2973696 bytes
6、然後執行sql語句建立資料庫
sql> create database manual
3autoextend on next 10240k maxsize unlimited
4extent management local
6autoextend on next 1024k maxsize unlimited
7smallfile default temporary tablespace
9autoextend on next 640k maxsize unlimited
11character set zhs16gbk
12national character set al16utf16
16user sys identified by oracle
17user system identified by oracle;
database created.
7、建立使用者預設表空間users
8、指定使用者預設表空間為users
sql> alter database default tablespace users;
9、安裝資料字典
10、以system使用者建立pl/sql資源集
sql> connect system/oracle
connected.
乙個簡化版的資料庫建立完成
sql> select status from v$instance;
status
------------------------------------
open
[oracle@myorcl ~]$ lsnrctl status
lsnrctl for linux: version 10.2.0.1.0 - production on 05-jul-2013 00:30:43
connecting to (description=(address=(protocol=ipc)(key=extproc1)))
status of the listener
------------------------
aliaslistener
versiontnslsnr for linux: version 10.2.0.1.0 - production
start date04-jul-2013 19:58:59
uptime0 days 4 hr. 31 min. 44 sec
trace leveloff
securityon: local os authentication
snmpoff
listening endpoints summary...
(description=(address=(protocol=ipc)(key=extproc1)))
(description=(address=(protocol=tcp)(host=myorcl.oracle.com)(port=1521)))
services summary...
service "pl***tproc" has 1 instance(s).
instance "pl***tproc", status unknown, has 1 handler(s) for this service...
service "manual" has 1 instance(s).
instance "manualorcl", status ready, has 1 handler(s) for this service...
service "manual_xpt" has 1 instance(s).
instance "manualorcl", status ready, has 1 handler(s) for this service...
service "orcl" has 1 instance(s).
instance "orcl", status ready, has 1 handler(s) for this service...
service "orclxdb" has 1 instance(s).
instance "orcl", status ready, has 1 handler(s) for this service...
service "orcl_xpt" has 1 instance(s).
instance "orcl", status ready, has 1 handler(s) for this service...
the command completed successfully
Oracle 手動建立資料庫步驟詳解
1.編寫初始化引數檔案 2.設定作業系統環境變數 3.建立例項 4.以管理員身份連線資料庫 5.啟動例項 6.create database 建立資料庫 7.執行資料字典指令碼 8.oracle的網路配置 客戶端連線到服務端 初始化引數檔案 從 oracle home admin sample pf...
手動建立乙個Oracle資料庫
系統環境 1 作業系統 windows 2000 pro 2 資料庫 oracle9i release 9.2.0.3.0 3 安裝路徑 d oracle 建庫步驟 1 手工建立相關目錄 d oracle admin ora92 d oracle admin ora92 adhoc d oracle...
手動建立資料庫步驟
兩種方式建立資料庫 一.使用dbca工具建立 dbca有兩種執行模式,一種是圖形化介面 互動模式 一種是命令介面 靜默安裝 dbca命令列模式安裝 例 dbca silent createdatabase templatename general purpose.dbc gdbname ora11g...