首页 > 数据库 >oracle配置sde函数库

oracle配置sde函数库

时间:2023-09-01 15:45:18浏览次数:41  
标签:函数库 SDE create grant sde oracle any

1、创建sde用户并授权

drop user sde cascade;
create user sde identified by cabletech;
grant create user,drop user,alter user,create any view,connect,resource,dba,create session,create any sequence to sde;
grant alter any index to SDE;
grant alter system to SDE;
grant create any index to SDE;
grant create any trigger to SDE;
grant create any view to SDE;
grant create indextype to SDE;
grant create library to SDE;
grant create operator to SDE;
grant create procedure to SDE;
grant create public synonym to SDE;
grant create sequence to SDE;
grant create session to SDE;
grant create table to SDE;
grant create trigger to SDE;
grant create type to SDE;
grant create view to SDE;
grant drop any index to SDE;
grant drop any view to SDE;
grant drop public synonym to SDE;
grant select any table to SDE;
grant EXECUTE ON DBMS_CRYPTO to sde;
Grant execute on dbms_pipe to sde;
Grant execute on dbms_lock to sde;

 2、创建表空间,必须要有/home/oracle/oradata这个目录

create tablespace sde datafile '/home/oracle/oradata/sde.dbf' size 256M autoextend on next 100M;

 3、找到$ORACLE_HOME/hs/admin/extproc.ora 文件

修改最后一行为:
SET EXTPROC_DLLS=ANY

 4、拷贝相关的st_shapelib.so 到$ORACLE_HOME/bin 或者$ORACLE_HOME/lib,用sde的账号执行

create or replace library st_shapelib as '/home/oracle/app/oracle/product/11.2.0/dbhome_2/lib/libst_shapelib.so'
查看路径是否正确:
select * from user_libraries;

5、重启数据库

6、创建oracle的目录

create directory sdedata as '/home/oracle/oradata';
grant read,write on directory sdedata to sde;
查看目录:
select * from dba_directories;

 7、将sde的备份库放到oracle的目录

impdp sde/123456 dumpfile=sde_20230830010501.dmp directory=sdedata schemas=sde logfile=sdedata.log

 8、切换sde用户,验证是否成功

select sde.st_geometry('point (101.02234 32.678833)' ,0) from dual;

 

标签:函数库,SDE,create,grant,sde,oracle,any
From: https://www.cnblogs.com/xiaofengfree/p/17672030.html

相关文章

  • oracle 的 sqlplus 执行连接无反应
    背景:oracle集群突然出现了个事情,说是执行语句多给卡住了,然后sqlplus/assysdba 都没反应了,但是监听端口什么的也都还在解决过程:只能杀进程了,杀掉卡住的进程是最好的办法,下面是执行的语句ps-ef|grep"oracle"|grep "LOCAL=NO" |awk'{print$2}'|xargs kill-9两个......
  • Oracle数据迁移MySQL的三种简单方法
    Oracle数据迁移MySQL的三种简单方法更新时间:2023年06月05日10:58:16  作者:牛牛的笔记 对于许多企业而言,迁移数据库时最大的挑战之一是如何从一个数据库平台顺利迁移到另一个平台,下面这篇文章主要给大家介绍了关于Oracle数据迁移MySQL的三种简单方法,需要的朋友可以参......
  • Oracle EBS查看请求日志报404 not found错误,FNDWRR.exe资源访问不存在
    问题描述如上图中,查看请求时,点击“查看日志”按钮后,正常浏览器会打开一个页面,可以看到这个请求的日志,但出现问题后,浏览器会报404错误,如下图解决方法cd$EBS_ORACLE_HOME/common/scripts实际目录:(/oracle/PROD/fs1/FMW_Home/Oracle_EBS-app1/common/scripts)请根据自己的目......
  • 6-6 Oracle表复杂查询 -合并查询-增删改数据
    Oracle基础知识整理:C站下载链接1Oracle基础知识2Oracle安装(附详细安装操作手册)3Oracle基本使用4Oracle用户管理6-1Oracle表的管理-创建修改表6-2Oracle表的管理-表查询6-3Oracle表的管理-表复杂查询6-4Oracle表复杂查询-多表查询6-5Oracle表复杂查询-子查询文章......
  • Oracle客户端与Oracle数据库兼容矩阵
    Oracle客户端与Oracle数据库之间是有兼容支持关系的,有些低版本的OracleClient连接到高版本的数据库是不支持的,其实Oracle官方文档Client/ServerInteroperabilitySupportMatrixforDifferentOracleVersions(DocID207303.1)[1]中有详细的介绍,如果你要升级数据库的话或......
  • Oracle查看占用表空间最大的表(排序)
    selectt.owner,t.segment_name,t.tablespace_name,bytes/1024/1024/1024assizes,q.num_rows,t.segment_type fromdba_segmentst leftjoindba_tablesq   ont.segment_name=q.table_name  andt.owner=q.owner wheret.segment_type='TABLE'  andt.tab......
  • Oracle PDB配置SID访问
    1、lsnrctlstatus 确保PDB容器监听正常 2、确保PDB容器读写正常sqlplus/assysdbashowpdbs; 3、修改tnsname.ora文件cd /opt/oracle/product/19c/dbhome_1/network/adminvitnsnames.ora(追加,保持原有内容不变,在后面追加下面内容)ORA19CPDB=(DESCRIPTION......
  • 【maven】idea运行项目的时候,因为依赖maven坐标是provided报错NoClassDefFoundError解
    1、查看报错的类的生命周期-基于在idea安装mavenhelper插件  2、在运行maven项目的入口新增配置项 ......
  • Oracle官网下载软件需要登录Oracle账户问题
    问题描述当我们在Oracle官网上下载JDK时,(JDK下载地址)系统会提示需要登录Oracle账户。对于没有Oracle账户的人来说,注册账户太繁琐。没有账户怎么办???此处推荐一个靠谱的网站,https://bugmenot.com/view/oracle.com,里面提供部分Oracle内部账户及密码,我们可以临时使用这些账户来下......
  • Oracle 字符串相似度查询
    Oracle函数: SYS.UTL_MATCH.EDIT_DISTANCE_SIMILARITY(str,patternStr)--Oracle查询字符串相似度函数SELECTDISTINCTe.EQP_GROUP,SYS.UTL_MATCH.EDIT_DISTANCE_SIMILARITY(e.EQP_GROUP,'LARF')xsdFROMIMP_AREA_EQPGROUP_MAPPINGeORDERBYXSDDESC查询结果: ......