---
title: "oracle生成uuid"
author: "roc08"
date: "2015-01-14T16:34:31Z"
tags: []
categories: ["数据库"]
slug: "oracle-uuid"
draft: false
lastmod: "2015-01-14T16:34:31Z"
id: 2175886
url: "https://roc08.iteye.com/blog/2175886"
---

oracle 生成uuid的函数 sys_guid()  
注意生成后的类型是raw(16) 有32个字符，是一个数据流，
通过rawtohex()可将其转换为16进制字符，
即rawtohex(sys_guid())即可