社区
下载资源悬赏专区
帖子详情
utl_file.txt下载
weixin_39821051
2019-05-25 08:30:17
oracle的utl_file工具包。。。
相关下载链接:
//download.csdn.net/download/jiangnan641020/2341383?utm_source=bbsseo
...全文
50
回复
打赏
收藏
utl_file.txt下载
oracle的utl_file工具包。。。 相关下载链接://download.csdn.net/download/jiangnan641020/2341383?utm_source=bbsseo
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
在oracle9i中设置
utl
_
file
_dir参数.
txt
在oracle9i中设置
utl
_
file
_dir参数.
txt
utl
_
file
.
txt
oracle的
utl
_
file
工具包。。。
利用 Oracle 和 PHP 管理分布式跟踪文件
Trace
File
Manager (TFM) - Using PHP and Oracle to manage your distributed trace
file
s--------------------------------------------------------------------------------------Deployment InstructionsOracle Layer The Oracle JServer must be installed and exist in a valid state. Ensure that the directories specified in the parameters for USER_DUMP_DEST and BACKGROUND_DUMP_DEST are set up as
utl
_
file
_dir directives in the init.ora, eg
utl
_
file
_dir=myDB/oratrace/back
utl
_
file
_dir=myDB/oratrace/user Run all of the below mentioned scripts in any database whose trace
file
s you want to view As SYS create a user account (TFMADMIN) See - tfmadmin_create.sql This account will be the repository for all of the Oracle objects used by the utility and will be responsible for retrieving information from the
file
system for presentation to the PHP layer. nb ! The supplied create script is for demo purposes only. You will need to specify a password and you may also want to assign alternative default and temporary tablespaces. create the external library call Windows - see extWindows.sql Linux - see extLinux.sql nb ! for unix it would be ; create or replace library systemcalls is ‘/lib/libc.so‘; / grant necessary database privileges to tfmadmin tfmAdmin_privs_and_syns.sql grant necessary java privileges to tfmadmin tfmAdmin_java_privs.sql if this fails with any spurious dbms_java errors then issue the statements manually, eg exec dbms_java.grant_permission (‘TFMADMIN‘, ‘SYS:java.io.
File
Permission‘,‘your background_dump_dest‘, ‘read‘) exec dbms_java.grant_permission (‘TFMADMIN‘, ‘SYS:java.io.
File
Permission‘,‘your user_dump_dest‘, ‘read‘) create a wrapper package for
utl
_
file
pk_
utl
_
file
.sql As TFMADMIN set up the tables, views and sequence tfmadmin_objects.sql create the controlling package pack_trace_
file
_manager.sqlJava Layer Trace
File
Display.java you need to compile this and use loadjava to deploy it into the TFMADMIN account sample compilation & load - see javacomp.
txt
test the Java layer - RECOMMENDED I have seen occasions where the java security layer behaves unpredictably and this can result in the Trace
File
Display utility falsely reporting that there are no trace
file
s in the trace directories. consequently it is a sensible idea to verify that your java layer is behaving as expected before you try starting up the utility as TFMADMIN, try this exec pack_trace_
file
_manager.pc_generate_
file
_list (‘BACKGROUND‘) if you get a "PL/SQL procedure completed successfully" then everything is OK if you get something like this ... * ERROR at line 1: ORA-29532: Java call terminated by uncaught Java exception: java.security.AccessControlException: th (java.io.
File
Permission D:OCCdboratraceack read) has not been granted to TFMADMIN. The PL/SQL to dbms_java.grant_permission( ‘TFMADMIN‘, ‘SYS:java.io.
File
Permission‘, ‘D:OCCdboratraceack‘, ‘rea ORA-06512: at "TFMADMIN.PACK_TRACE_
FILE
_DISPLAY", line 45 ORA-06512: at "TFMADMIN.PACK_TRACE_
FILE
_DISPLAY", line 135 ORA-06512: at line 1 then you will need to sort it out before you go any further. Firstly, check out Note:137280.1 on Metalink. If the error persists beyond the solution suggested here then try; as SYS grant JAVASYSPRIV, JAVAUSERPRIV to tfmadmin; If this does not help then you can always adopt the "Mit Kanonen auf Spatzen schie遝n" approach (Shooting sparrows with canons ...) ; exec dbms_java.grant_permission (‘TFMADMIN‘, ‘SYS:java.io.
File
Permission‘,‘<
FILES>>‘, ‘read‘); If that doesn‘t work then raise it with Oracle Support - there may well be a fundamental problem with your java layer.Apahe / PHP layer If you haven‘t already done so, deploy Apache and PHP in a centralised location. see http://otn.oracle.com/tech/opensource/php/apache/inst_php_apache_windows.html for a handy guide to deployment source code ; listTargets.php list
File
s.php * retrieveTrace
File
.php * tkprofDialog.php delete
File
sConfirmation.php * you may need to either remove or edit the YourDomain tag in here I found the easist way to make the oci connection work from a php source
file
was to specify the full connection string as it would appear in the tnsnames.ora - In our environment this included a domain name - what you do will depend on your personal environment ... configuration
file
s user.conf - contains the username & password for db connections made to the TFMADMIN account from the php layer - edit as required targets.conf - contains a list of the connection details for the databases where TFMADMIN is deployed - edit as required cascading stylesheet - not supplied
oracle19c.
txt
oracle19c.
txt
oracle
utl
_
file
编码,Oracle的
UTL
_
FILE
.FOPEN的用法
Oracle提供的文件操作包
UTL
_
FILE
包中的
UTL
_
FILE
.FOPEN负责打开一个文件。
UTL
_
FILE
.FOPEN(location in varchar2,
file
name in varchar2, open_mode in varchar2) return
FILE
_TYPE;Location 是路径参数,
FILE
NAME 是文件名,OPEN_MODE是打开模式,'R'是读文本,'...
下载资源悬赏专区
12,796
社区成员
12,334,532
社区内容
发帖
与我相关
我的任务
下载资源悬赏专区
CSDN 下载资源悬赏专区
复制链接
扫一扫
分享
社区描述
CSDN 下载资源悬赏专区
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章