日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

oracle 11.2.4联机文档,ORACLE 11G 联机文档partition_extended_name的一个错误

發布時間:2023/12/9 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle 11.2.4联机文档,ORACLE 11G 联机文档partition_extended_name的一个错误 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在看11G聯機文檔的PARTITION EXTENDED NAME限制的時候,測試發現與書上描述不符。

Restrictions on Extended Names Currently, the use of partition-extended and subpartition-extended table names has the following restrictions:

No remote tables: A partition-extended or subpartition-extended table name cannot contain a database link (dblink) or a synonym that translates to a table with a dblink. To use remote partitions and subpartitions, create a view at the remote site that uses the extended table name syntax and then refer to the remote view.

No synonyms: A partition or subpartition extension must be specified with a base table. You cannot use synonyms, views, or any other objects.

The PARTITION FOR and SUBPARTITION FOR clauses are not valid for DDL operations on views.

In the PARTITION FOR and SUBPARTITION FOR clauses, you cannot specify the keywords DEFAULT or MAXVALUE or a bind variable for the partition_key_value or subpartition_key_value.

第二句話說 分區或者子分區的擴展語句必須指定在基表上,而不能指定在同義詞或者視圖及其他對象。

測試的時候卻發現不是這樣的:

SQL> create table test partition by range(object_id)

2? (

3? partition p1 values less than(10000),

4? partition p2 values less than(20000),

5? partition p3 values less than(30000),

6? partition p4 values less than(maxvalue)

7? )

8? as

9? select * from all_objects;

Table created.

SQL> select count(1) from test partition (p1);

COUNT(1)

----------

4224

SQL> create synonym s_test for test;

Synonym created.

SQL> select count(1) from s_test partition (p1);

COUNT(1)

----------

4224

可以看到在同義詞上指定的PARTITION EXTENSION也是可以的。

SQL> create view v_test as select * from test ;

View created.

SQL> select count(1) from v_test? partition (p1);

select count(1) from v_test? partition (p1)

*

ERROR at line 1:

ORA-14109: partition-extended object names may only be used with tables

在視圖上指定是不可以的。

雖然我的測試環境是10.2.0.4,而文檔時11G的,但是不太可能10G都支持的功能,11G取消了吧

SQL> select * from v$version;

BANNER

--------------------------------------------------------------------------------

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

PL/SQL Release 10.2.0.4.0 - Production

CORE??? 10.2.0.4.0????? Production

TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio

NLSRTL Version 10.2.0.4.0 - Production

總結

以上是生活随笔為你收集整理的oracle 11.2.4联机文档,ORACLE 11G 联机文档partition_extended_name的一个错误的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。