返回首页

gbase数据、南大通用产品文档:GBase8a

更新日期:2024年09月11日

VARCHAR URI 支持的数据格式汇总
1.
支持文件类型
表5- 43 文件类型
文件类型
URI 标识
说明
Txt
Content-Type:text/plain

GBase 8a MPP Cluster 产品手册
5 数据库管理指南
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
922
Pdf
Content-Type:application/pdf
Word
Content-Type:application/msword
只支持doc,
不支持docx。
Zip
Content-Type:application/zip
只会读取第一个文件,只
能txt 类型。
Xml
Content-Type:application/xml
2.
支持ftp 文件。
举例如下(包括有密码和无密码方式):
INSERT INTO fturi VALUES
('ftp://ldy:liang999@127.0.0.1/test/a01.txt\r\nContent-Type:text/plain\r\n
\r\n');
INSERT INTO fturi VALUES
('ftp://192.168.159.220/pub/a02.txt\r\nContent-Type:text/plain\r\n\r\n');
3.
支持http 文件。
举例如下(无密码):
INSERT INTO fturi VALUES
('http://192.168.159.220/a03.txt\r\nContent-Type:text/plain\r\n\r\n');
4.
URI 文件路径的转义字符
URI 路径采用标准格式,当路径含有特殊字符时需要转义。
表5- 44 标准格式
序号
字符(转义前,原始)
转义后字符
1
" "
"%20"
2
"!"
"%21"
3
"\"
"%22"
4
"#"
"%23"
5
"%"
"%25"
6
":"
"%3A"
7
";"
"%3B"
8
"<"
"%3C"
9
"="
"%3D"
10
">"
"%3E"
11
"?"
"%3F"
12
"@"
"%40"
13
"\\"
"%5C"
14
"|"
"%7C"

$su oracle
$sqlplus / as sysdba



SQL> startup nomount



ORACLE instance started.




Total System Global Area 1068937216 bytes



Fixed Size
2220200 bytes



Variable Size

616566616 bytes



Database Buffers 444596224 bytes



Redo Buffers

5554176 bytes
SQL>create database;
Database created.
SQL> select name from v$datafile;

NAME
--------------------------------------------------------------------------------
/U01/ORAHOME/dbs/dbs1test.dbf
/U01/ORAHOME/dbs/dbx1test.dbf
/U01/ORAHOME/dbs/dbu1test.dbf
说明
如果在startup nomount 阶段出现以下错误,是因为diagnostic_dest 设置错误。
具体错误原因还需要分析。
SQL> startup
ORA-48108: invalid value given for the diagnostic_dest init.ora parameter
ORA-48140: the specified ADR Base directory does not exist

GBase UP 产品手册 7 附录
文档版本04(2021-04-21) 南大通用数据技术股份有限公司 1327

[/home/oracle/102/dbs/]
ORA-48187: specified directory does not exist
Linux Error: 2: No such file or directory
Additional information: 1

查看oracle 数据库vault 是否安装。
select * from v$option where parameter like '%Vault%';
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04094: preprocessing cannot be performed if Database Vault is installed

功能
该参数用于控制group by 算子hash 划分数据块的二次hash 划分中,对数据量最
大的N 个分片进行二次hash 划分。
取值范围1~100。默认值为5
说明
_gbase_hash_part_twice 打开时有效。