我运行了以下查询:
SELECT VALUE FROM v$option WHERE parameter = 'Partitioning'
结果是:
false
在目录 oracle/product/11.2.3/bin/上,我正在尝试运行此命令以启用分区选项:
chopt enable partitioning
错误发生:
-bash: chopt: command not found
我不明白为什么这个命令不起作用,而且在我研究过的所有网站上都要求这样做。
编辑
您需要 oracle 企业版才能启用分区选项
最佳答案
chopt 还需要适当设置oracle 环境,例如
[oracle@db19 ~]$ chopt
bash: chopt: command not found
[oracle@db19 ~]$ . oraenv
ORACLE_SID = [db19] ?
The Oracle base has been set to /u01/app/oracle
[oracle@db19 ~]$ chopt
usage:
chopt <enable|disable> <option>
options:
oaa = Oracle Advanced Analytics
olap = Oracle OLAP
partitioning = Oracle Partitioning
rat = Oracle Real Application Testing
e.g. chopt enable rat
关于linux - Linux Oracle 11g 使用 chopt 启用分区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54599468/