標籤:
來源於:
How to enable Partitioning in Oracle Database Enterprise Edition 11.2 on Windows (文檔 ID 1188238.1)
適用於:
Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.
目標:
在Windows平台上怎麼啟用Oracle database 企業版的partition?在安裝時,Partitioning option已經被取消選中。
解決方案:
當你安裝Oracle 11.2 企業版時,有些options 是被啟用的,而其他options是被禁用的。
如果你需要為一個OracleHome啟用或者禁用一個特定的databaes feature,那麼需要關閉資料庫並使用chopt 工具。見下面的例子:
chopt工具是一個命令列工具,該工具位於ORACLE_HOME\bin目錄中,chopt的文法如下:
chopt [ enable | disable] db_option
1. 使用srvctl 或者 sqlplus 關閉database SID=myDb的資料庫
srvctl stop database -d myDb
2. 使用控制台中的Services程式:停止database 服務以及OracleServiceSID
3. 運行下列命令:
cd %ORACLE_HOME%/bin chopt enable partitioning
4.使用控制台中的Services程式:啟動database 服務以及OracleServiceSID
5.啟動資料庫
srvctl start database -d myDb
譯者註:
1.chopt這個tool是在11gR2中新添加的工具,在10g和11gR1中並沒有這個工具
2.本文也適用於unix平台
[[email protected] ~]$ which lsnrctl/u02/app/oracle/product/11.2.0.4/db_1/bin/lsnrctl[[email protected] ~]$ which chopt/u02/app/oracle/product/11.2.0.4/db_1/bin/chopt[[email protected] ~]$ man choptNo manual entry for chopt[[email protected] ~]$ chopt -helpusage:chopt <enable|disable> <option>options: dm = Oracle Data Mining RDBMS Files dv = Oracle Database Vault option lbac = Oracle Label Security olap = Oracle OLAP partitioning = Oracle Partitioning rat = Oracle Real Application Testinge.g. chopt enable rat[[email protected] ~]$
3. 我對chopt這個工具的理解如下:修改的是$ORACLE_HOME的功能(即:Oracle database software),至於該功能的使用需要不需要database中的資料字典支援,那需要看這個功能具體分析,若是需要資料字典的支援,那就需要dbca跑相應的指令碼。
【翻譯自mos文章】在windows平台上怎麼啟用Oracle database 企業版的partition?