我运行了以下查询:
SELECT VALUE FROM v$option WHERE parameter = 'Partitioning'
结果是:
false
在目录oracle / product / 11.2.3 / bin /上,我正在尝试运行以下命令来启用分区选项:
chopt enable partitioning
并且发生错误:
-bash: chopt: command not found
我不明白为什么该命令不起作用,在我研究过的所有站点上都要求这样做。
答案 0 :(得分:1)
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