GaussDB 1.0.1升級到1.0.2及1.0.2相關新功能說明
原文連結:
FILETYPE Output file type: (TXT), BIN LOG Log file of screen output COMPRESS Compress output file (0), only for FILETYPE=BIN, values is 0~9, litter for faster compress speed, 0 is not compressed. CONTENT Specifies data to unload where the valid keyword, values are: (ALL), DATA_ONLY, and METADATA_ONLY. QUERY Predicate clause used to export a subset of a table, eg. "where rownum <= 10" SKIP_COMMENTS Do not add comments to dump file. (N)FORCE Continue even if an SQL error occurs during a table dump. (N) SKIP_ADD_DROP_TABLE Do not add a DROP TABLE statement before each CREATE TABLE statement. (N) SKIP_TRIGGERS Do not dump triggers. (N) QUOTE_NAMES Quote identifiers. (Y)TABLESPACE Default transport all tablespaces except for system reserved. (N) COMMIT_BATCH Batch commit rows, commit once if set 0. (1000) INSERT_BATCH Batch insert rows. (1) FEEDBACK Feedback row count, feedback once if set 0 (10000)PARALLEL Table data export parallelism settings, range 2~16, The default value is 0CONSISTENT Cross - table consistency(N) CREATE_USER Export user definition(N),Used in conjunction with USERS.ROLE Export user roles expect system preset roles (N),Used in conjunction with USERS.GRANT Grant role and pemission to USER (N),Used in conjunction with USERS and ROLE. WITH_CR_MODE Export tables and indexes with CR_MODE options (N)ENCRYPT Export files will be encrypted. REMAP_TABLES Table's name will remapped to another tablename. PARTITIONS Export tables's data within the input partition.
++++++ 新增加的函式:
1) current_local_Scn SQL> SELECT CURRENT_LOCAL_SCN() FROM SYS_DUMMY; CURRENT_LOCAL_SCN() --------------------6755116323168257 1 rows fetched.
2)DBA_FBDR_2PC(從undo表空間中查詢已完成的兩階段事務資訊)
SQL> select * FROM TABLE(DBA_FBDR_2PC(6755116323168257,1)) ; GLOBAL_TRAN_ID LOCAL_TRAN_ID TLOCK_LOBS TLOCK_LOBS_EXT FORMAT_ID BRANCH_ID OWNER PREPARE_SCN COMMIT_SCN ---------------------------------------------------------------- -------------------- ---------------------------------------------------------------- ---------------------------------------------------------------- -------------------- ---------------------------------------------------------------- -------------------- -------------------- --------------------0 rows fetched.
3)DBA_PAGE_CORRUPTION
這個函式功能非常強大和實用。
SQL> select * from table(dba_page_corruption('DATABASE')); FILE_ID FILE_NAME INFO_TYPE EXAMINED_NUM SUCCEED_NUM CORRUPT_NUM PAGE_ID PAGE_TYPE MARKED_CHECKSUM CALC_CHECKSUM------------ ---------------------------------------- ------------- ------------ ------------ ------------ ------------ ------------------ --------------- -------------0 /opt/gauss/gaussdata/system FILE SUMMARY 2778 2778 0 3 /opt/gauss/gaussdata/undo FILE SUMMARY 66490 66490 0 4 /opt/gauss/gaussdata/user1 FILE SUMMARY 25546 25546 0 5 /opt/gauss/gaussdata/user2 FILE SUMMARY 1 1 0 6 /opt/gauss/gaussdata/user3 FILE SUMMARY 1 1 0 7 /opt/gauss/gaussdata/user4 FILE SUMMARY 1 1 0 8 /opt/gauss/gaussdata/user5 FILE SUMMARY 1 1 0 9 /opt/gauss/gaussdata/temp2_01 FILE SUMMARY 2 2 0 10 /opt/gauss/gaussdata/temp2_02 FILE SUMMARY 1 1 0 11 /opt/gauss/gaussdata/temp2_undo FILE SUMMARY 2 2 0 12 /opt/gauss/gaussdata/sysaux FILE SUMMARY 13798 13798 0 11 rows fetched. SQL> select * from table(dba_page_corruption('TABLESPACE',3)); FILE_ID FILE_NAME INFO_TYPE EXAMINED_NUM SUCCEED_NUM CORRUPT_NUM PAGE_ID PAGE_TYPE MARKED_CHECKSUM CALC_CHECKSUM------------ ---------------------------------------- ------------- ------------ ------------ ------------ ------------ ------------------ --------------- -------------4 /opt/gauss/gaussdata/user1 FILE SUMMARY 25546 25546 0 5 /opt/gauss/gaussdata/user2 FILE SUMMARY 1 1 0 6 /opt/gauss/gaussdata/user3 FILE SUMMARY 1 1 0 7 /opt/gauss/gaussdata/user4 FILE SUMMARY 1 1 0 8 /opt/gauss/gaussdata/user5 FILE SUMMARY 1 1 0 5 rows fetched. SQL> select * from table(dba_page_corruption('DATAFILE',3)); FILE_ID FILE_NAME INFO_TYPE EXAMINED_NUM SUCCEED_NUM CORRUPT_NUM PAGE_ID PAGE_TYPE MARKED_CHECKSUM CALC_CHECKSUM------------ ---------------------------------------- ------------- ------------ ------------ ------------ ------------ ------------------ --------------- -------------3 /opt/gauss/gaussdata/undo FILE SUMMARY 66490 66490 0 1 rows fetched. SQL> select * from table(dba_page_corruption('PAGE',4,10)); FILE_ID FILE_NAME INFO_TYPE EXAMINED_NUM SUCCEED_NUM CORRUPT_NUM PAGE_ID PAGE_TYPE MARKED_CHECKSUM CALC_CHECKSUM------------ ---------------------------------------- ------------- ------------ ------------ ------------ ------------ ------------------ --------------- -------------4 /opt/gauss/gaussdata/user1 PAGE 1 1 0 10 btree_segment 36019 36019 1 rows fetched.
- LSCN2GSCN(將本地SCN轉換為GTS SCN)
SQL> select current_local_Scn() from sys_dummy; CURRENT_LOCAL_SCN() --------------------6758768140668929 1 rows fetched. SQL> select LSCN2GSCN(6758768140668929) from sys_dummy; LSCN2GSCN(6758768140668929)---------------------------158298313993801729 1 rows fetched.
-
PENDING_TRANS_SESSION(查詢正在執行的兩階段事務資訊)
-
rank(聚合、分析函式)
SQL> select RANK(2) WITHIN GROUP (ORDER BY a) as "rank" FROM roger.test; rank ------------2 1 rows fetched.
7)TO_BIGINT(將資料轉換成BIGINT型別)
SQL> select to_bigint(12341) from sys_dummy; TO_BIGINT(12341) --------------------12341 1 rows fetched.
8)TO_INT(將資料轉換成INT型別)
SQL> select to_int(99999) from sys_dummy; TO_INT(99999)-------------99999 1 rows fetched.
9)TRY_GET_SHARED_LOCK(為一個會話嘗試獲取一把鎖名為name_expr的共享諮詢鎖)
++++SQL 操作 (支援交集查詢)
SQL> conn roger/Roger007@127.0.0.1:1611 connected. SQL> create table test_2 as select * from test limit 5; Succeed. SQL> select a from test intersect select a from test_2; A ----------------------------------------26.531219482421875 605.14545440673828125 645.55263519287109375 710.174560546875 757.1773529052734375
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31556440/viewspace-2683329/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SQL Server有關鎖升級的誤區說明SQLServer
- CentOS 7升級核心簡明說明CentOS
- mssql sqlserver 關鍵字 GROUPING用法簡介及說明SQLServer
- Docker 關鍵字說明及一鍵構建相關服務Docker
- QT - QOverload說明及示例QT
- FreeHttp2.3升級說明HTTP
- JavaScript介紹及說明(01)JavaScript
- Kibana安裝及使用說明
- GaussDB T 1.0.2單機環境TPC-C之BenchmarkSQL效能測試SQL
- keycloak~token配置相關說明
- 關於 Jupyter 的使用說明
- 關於部落格更新說明
- adb 埠自定義及原理說明
- CSDN學院APP 升級公告說明APP
- 關於DedeCMS版本號的說明
- Linux各個版本相關說明Linux
- GaussDB T 1.0.2分散式叢集TPC-C之BenchmarkSQL效能測試分散式SQL
- Laravel 模型關聯 「 預載入 」中 with () 方法的功能的示例及說明Laravel模型
- vue-cli@3.0 使用及配置說明Vue
- ELK 之 Kibana 安裝及使用說明
- linux 常見命令及說明雜記Linux
- 紅棗科技CEO月度DDC說明會(第三期)——DDC網路新功能介紹及文昌鏈升級計劃 精華回顧
- 圖片管理ImageRanger入門級使用說明Ranger
- DBA_HIST相關檢視說明
- MySQL:關於ICP特性的說明(未完)MySql
- JS object.innerHTML的相關說明JSObjectHTML
- mysql relay log相關引數說明MySql
- C++檔案說明及使用方法C++
- 【ORACLE】Oracle常用SQL及重點功能說明OracleSQL
- Qtum智慧合約使用方法及說明QT
- 說明
- 【PG效能】Postgresql效能相關(作業系統及資料庫簡單說明)SQL作業系統資料庫
- Dubbo23_Dubbo相關配置說明6
- FCS程式日誌的關鍵字說明
- 關於支援OPenACC的編譯器說明編譯
- 超級簡單的例子說明JAVA PACKET CLASS 和變數之間的關係Java變數
- 前端meta標籤內容定義及使用說明,meta詳細說明,meta標籤使用前端
- CH9120網口配置協商及說明