CREATE TABLE tableName(
colName colType,
...
colNameX colType
)WITH(
type ='oracle',
url ='jdbcUrl',
userName ='userName',
password ='pwd',
tableName ='tableName',
parallelism ='parllNum'
);
10g 11g
| 参数名称 | 含义 |
|---|---|
| tableName | oracle表名称 |
| colName | 列名称 |
| colType | 列类型 colType支持的类型 |
| 参数名称 | 含义 | 是否必填 | 默认值 |
|---|---|---|---|
| type | 表名 输出表类型[mysq|hbase|elasticsearch|oracle] | 是 | |
| url | 连接oracle数据库 jdbcUrl | 是 | |
| userName | oracle连接用户名 | 是 | |
| password | oracle连接密码 | 是 | |
| tableName | oracle表名称 | 是 | |
| schema | oracle 的schema | 否 | 当前登录用户 |
| parallelism | 并行度设置 | 否 | 1 |
CREATE TABLE MyResult(
channel VARCHAR,
pv VARCHAR
)WITH(
type ='oracle',
url ='jdbc:oracle:thin:@xx.xx.xx.xx:1521:orcl',
userName ='dtstack',
password ='abc123',
tableName ='pv2',
schema = 'MQTEST',
parallelism ='1'
)