Oracle 11g利用DBCA建立資料庫
阿新 • • 發佈:2019-01-06
在前面兩篇的基礎上,本篇將詳細描述利用DBCA工具建立資料庫。
DBCA建立資料庫
1、在命令列執行DBCA命令;
[[email protected] ~]$ dbca
2、啟動DBCA視窗,點選Next;
3、預設選項,點選Next;
4、預設選項,點選Next;
5、在Global Database Name輸入szpri,點選Next;
6、預設選項,點選Next;
7、選擇下面的選項,使用統一密碼,點選Next;
8、預設選項,點選Next;
9、預設選項,點選Next;
10、勾選Sample Schemas,安裝樣本資料庫,點選Next;
11、設定初始化引數,分別設定Memory,Sizing,Character Set;
12、預設選項,點選Next;
13、在此勾選Generate Database Creation Scripts,可以為手工建庫指令碼提供參考;
14、出現確認頁,點選OK;
15、進行資料庫的建立;
16、安裝完成;
17、檢查資料庫狀態;
18、檢視OEM的狀態;SQL> conn / as sysdba Connected. SQL> select instance_name, status from v$instance; INSTANCE_NAME STATUS ---------------- ------------ szpri OPEN
[[email protected] ~]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.4.0
Copyright (c) 1996, 2013 Oracle Corporation. All rights reserved.
https://sz.pri.com:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/dbhome_1/sz.pri.com_szpri/sysman/log
[ [email protected] ~]$
19、在本地主機開啟EM,至此,資料庫建立成功,EM安裝成功。[[email protected] ~]# vim /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1158 -j ACCEPT
[[email protected] ~]# service iptables restart
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
[[email protected] ~]#