命令列建庫Oracle11.2.0.1 for RHEL5 x86_64
參考:http://yangtingkun.itpub.net/post/468/514506
測試一下dbca的silent建庫。不用GUI,直接透過命令列來建庫,對遠端維護ORACLE資料庫也會有用處的,特別是一些要透過中間跳轉的Oracle資料庫伺服器的維護。
下面開始,先編輯responseFile檔案Demo.create.txt如下:
[GENERAL]
RESPONSEFILE_VERSION = "11.2.0"
OPERATION_TYPE = "createDatabase"
[CREATEDATABASE]
GDBNAME = "DEMODB"
SID = "demodb"
TEMPLATENAME = "New_Database.dbt"
SYSPASSWORD = "demodb"
SYSTEMPASSWORD = "demodb"
SYSMANPASSWORD = "demodb"
DBSNMPPASSWORD = "demodb"
DATAFILEDESTINATION ="/home/oracle/oradata"
STORAGETYPE=FS
CHARACTERSET = "ZHS16GBK"
DATABASETYPE = "MULTIPURPOSE"
AUTOMATICMEMORYMANAGEMENT = "FALSE"
然後利用silent模式建立資料庫:
[oracle@Oracle111 ~]$ dbca -silent -responseFile Demo.create.txt
Creating and starting Oracle instance
1% complete
3% complete
Creating database files
4% complete
7% complete
Creating data dictionary views
8% complete
9% complete
10% complete
11% complete
12% complete
13% complete
14% complete
16% complete
17% complete
18% complete
19% complete
Adding Oracle JVM
25% complete
30% complete
36% complete
38% complete
Adding Oracle Text
40% complete
41% complete
Adding Oracle XML DB
43% complete
44% complete
45% complete
46% complete
47% complete
48% complete
49% complete
Adding Oracle Multimedia
50% complete
51% complete
60% complete
Adding Oracle OLAP
61% complete
62% complete
63% complete
64% complete
Adding Oracle Spatial
65% complete
66% complete
67% complete
71% complete
Adding Enterprise Manager Repository
73% complete
75% complete
Adding Oracle Application Express
78% complete
82% complete
Adding Oracle Warehouse Builder
86% complete
90% complete
Completing Database Creation
91% complete
92% complete
93% complete
96% complete
100% complete
Look at the log file "/home/oracle/cfgtoollogs/dbca/DEMODB/DEMODB.log" for further details.
安裝過程一切順利,檢查資料庫安裝情況:
[oracle@rhel5 ~]$ export ORACLE_SID=demodb
[oracle@rhel5 ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Tue Dec 27 15:03:51 2011
Copyright (c) 1982, 2009, Oracle. All rights reserved.
SQL> conn / as sysdba
Connected.
SQL> select * from v$instance;
INSTANCE_NUMBER INSTANCE_NAME
--------------- ----------------
HOST_NAME
----------------------------------------------------------------
VERSION STARTUP_T STATUS PAR THREAD# ARCHIVE LOG_SWITCH_WAIT
----------------- --------- ------------ --- ---------- ------- ---------------
LOGINS SHU DATABASE_STATUS INSTANCE_ROLE ACTIVE_ST BLO
---------- --- ----------------- ------------------ --------- ---
1 demodb
rhel5
11.2.0.1.0 27-DEC-11 OPEN NO 1 STOPPED
ALLOWED NO ACTIVE PRIMARY_INSTANCE NORMAL NO
SQL> select * from v$version;
BANNER
------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 – Production
SQL> select name, open_mode from v$database;
NAME OPEN_MODE
--------- --------------------
DEMODB READ WRITE
[oracle@rhel5 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-DEC-2011 15:20:28
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rhel5)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 08-DEC-2011 16:38:28
Uptime 18 days 22 hr. 42 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/product/11.2/db_1/network/admin/listener.ora
Listener Log File /home/oracle/diag/tnslsnr/rhel5/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rhel5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "demodb" has 1 instance(s).
Instance "demodb", status READY, has 1 handler(s) for this service...
Service "demodbXDB" has 1 instance(s).
Instance "demodb", status READY, has 1 handler(s) for this service...
The command completed successfully
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/81227/viewspace-714042/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rhel5 mysql 資料庫_列_資料型別MySql資料庫資料型別
- 用於構建優秀命令列的 4 個 Python 庫命令列Python
- Artifactory使用命令列構建整合命令列
- Unix命令列程式和內建指令命令列
- 靜默建庫Oracle11.2.0.2 for Oracle Linux6 x86_64OracleLinux
- 使用node.js構建命令列工具Node.js命令列
- 構建一個Flowable命令列應用命令列
- 「譯」使用 Node 構建命令列應用命令列
- Cobra 庫上手—自建命令列工具命令列
- 為什麼建議使用命令列工具?命令列
- 使用 openssl 命令列構建 CA 及證書命令列
- 資料庫操作命令列神器:mycli資料庫命令列
- 使用命令列建立資料庫命令列資料庫
- 4個用於構建優秀命令列使用者介面的Python庫命令列Python
- ORACLE11.2.0.1升級到11.2.0.3Oracle
- Go通過cobra快速構建命令列應用Go命令列
- shell命令列中操作HBase資料庫命令列資料庫
- 在資料庫命令列中使用作業系統命令資料庫命令列作業系統
- 新工具上線!sdkmgr命令列助力流水線構建命令列
- 【譯】如何使用PHP快速構建命令列應用程式PHP命令列
- cmd 命令列 命令命令列
- windows命令列命令Windows命令列
- git命令列命令Git命令列
- pflag - 更好的PHP命令列選項解析庫PHP命令列
- Node.js 構建命令列工具:實現 ls 命令的 -a 和 -l 選項Node.js命令列
- RHEL5 Oracle 11G R2 RAC 靜默安裝 (三) rdbms安裝 dbca 建庫Oracle
- 打造一個全命令列的Android構建系統命令列Android
- 資料庫建表-表中列的性質資料庫
- Homebrew進階使用教程(二)-用一個命令列天氣客戶端構建自己的倉庫命令列客戶端
- 記錄 golang 命令列庫 cobra 的簡單使用Golang命令列
- 通過cmd命令列連線mysql資料庫命令列MySql資料庫
- 超好用的命令列圖表庫 - tcharts.js命令列JS
- Android用命令列方式檢視資料庫Android命令列資料庫
- 如何使用命令列工具檢查資料庫?命令列資料庫
- Odin —— 用於構建命令列應用的 Go 開發包命令列Go
- Ubuntu Terminal命令列新建倉庫並推送到遠端倉庫Ubuntu命令列
- Shell命令列命令列
- Mac命令列Mac命令列