![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
udf
Q446512799
linux、c、tuxedo、oracle、perl、python、postgres
展开
-
oracle使用c语言编写自定义函数
编写sm4gcmdecrypt函数并生成动态库libmyudftest.so#使用管理员加载动态库sqlplus / as sysdbaCREATE OR REPLACE LIBRARY libmyudftest AS '$ORACLE_HOME/bin/libmyudftest.so';/grant execute on libmyudftest to testuser;#使用普通用户创建udf函数sqlplus testuser/123456create or replace原创 2021-11-18 09:38:44 · 1173 阅读 · 0 评论 -
达梦数据库udf实现
官方介绍的很简单,其实有点小坑头文件引用库文件引用字符串拼接代码(函数名必须是大写,否则创建成功,调用报错【[-7095]:外部函数加载失败.】)编译生成动态库创建函数实际项目使用 注:因为c编写达梦udf走的是dmap代理(/dm/dmdbms/bin/dmap),所以首先需要启动代理。如果库依赖外部环境变量,需要在配置环境变量的控制台手工启动dmap,而不是在运行disql命令行控制台配置,否则环境变量不能正常识别。...原创 2022-07-05 10:26:53 · 1184 阅读 · 0 评论 -
c语言开发postgres自定义函数
#include<stdio.h>#include <stdlib.h>#include<string.h>#include "postgres.h"#include "fmgr.h"PG_MODULE_MAGIC;PG_FUNCTION_INFO_V1(decrypt_data);Datum decrypt_data(PG_FUNCTION_ARGS){ text *cipherdata = PG_GETARG_TEXT_P(0);.原创 2022-04-21 17:13:33 · 1706 阅读 · 0 评论