ORACLE 报警日志如何查看?第1/2页
vi /oracle/ext/ext.dat
70,80,90
2.授予用户权限,并建立目录对象
3.建立外部表
因为外部表主要是查看OS上的文件,首先在OS上建一个文件
测试成功,可见在数据库中可以查询OS文件的数据
access parameters
fields terminated by ','
mkdir -p /oracle/ext
ID NAME I
2.建一个简单的外部表1.建一个OS上的文件
作用:在数据库中查询OS文件的数据,还可以将OS文件数据装载到数据库中
---------- ---------- ----------
建立目录对象
SQL> create directory ext as '/oracle/ext';Connected.
1.了解oracle外部表
(type oracle_loader
)organization external
40 50 60
10 20 30
70 80 90
在此我们先建一个新用户
SQL> grant create any directory to test; create user test identified by “123” default tablespace test quota unlimited on test; 40,50,60(records delimited by newline
)location('ext.dat')
SQL> select * from exttable;
); 与其它表的区别:在外部表上不能执行DML操作,也不能在外部表上建索引,只能执行select操用
4.测试
Directory created.SQL> create table exttable(default directory ext
SQL> conn test / 123
10,20,30
用户授权
外部表定义:结构被存放在数据字典,而表数据被放在OS文件中的表相关热词: oracle
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/sql/oracle/3029.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
是因为scan的IP问题补占用
时间:2021-01-20
-
还你一个干净的model 2、功
时间:2021-01-20
-
既然 ROWNUM 列并不是真实存
时间:2021-01-20
-
Real Application Clusters
时间:2021-01-20
-
在tools-preferences-connection(
时间:2021-01-20
-
Windows Sever 2012下Oracle 12c安
时间:2021-01-10
-
Oracle安装监听器错误的解
时间:2021-01-07
-
oracle远程连接服务器数据
时间:2021-01-07
热门文章
-
Oracle存储过程编程详解
时间:2020-12-07
-
Azure Queue Storage 基本用法 Azure Storage 之
时间:2020-12-26
-
win10下oracle 11g安装图文教程
时间:2020-12-25
-
oracle 数据库学习 基本结构介绍
时间:2020-12-13
-
Azure File Storage 基本用法 Azure Storage 之 F
时间:2020-12-26
-
windows使用sqlpus连接oracle 数据库的教程图
时间:2020-12-25
-
Window下Oracle Database 11g 发行版2安装教程
时间:2020-12-29
-
Oracle解锁的方式介绍
时间:2020-12-14
-
Oracle 12c Study之Installer Oracle
时间:2021-01-06
-
linux下oracle设置开机自启动实现方法
时间:2020-12-13
