dbms_utility
CREATE OR REPLACE PROCEDURE lc_test IS v NUMBER;BEGIN SELECT cnt INTO v FROM (SELECT 1 cnt FROM dual UNION ALL SELECT 2 cnt FROM dual);EXCEPTION WHEN OTHERS THEN dbms_output.put_line(dbms_utility.format_error_stack); dbms_output.put_line(dbms_utility.format_call_stack); dbms_output.put_line(dbms_utility.format_error_backtrace());END;[@more@]
shell——tr的用法
tr -d ‘r’tr(translate缩写)主要用于删除文件中的控制字符,或进行字符转换。 语法:tr [–c/d/s/t] [SET1] [SET2] SET1: 字符集1 SET2:字符集2 -c:complement,用SET2替换SET1中没有包含的字符 -d:delete,删除SET1中所有的字符,不转换 -s: squeeze-repeats,压缩SET1中重复的字符 -t: truncate-set1,将SET1用SET2转换,一般缺省为-t 1、去除重复的字符 #将连续的几个相同字符压缩为一个字符 $ echo aaacccddd | tr -s [a-z] acd $ echo aaacccddd | tr -s [abc] acddd 2、删除空白行 #删除
html excel
1.分頁打印(<x:RowBreak> 与<x:Row>使用) <x:PageBreaks> <x:RowBreaks><ww:set name="pageIndex" value="1"></ww:set><%-- 頁碼 --%><ww:iterator value="reportList" status="s"> <x:RowBreak> <x:Row><ww:property value="#pageIndex*(titleRows + 2 +bottomRows)"/></x:Row> </x:RowBreak> <ww:set name="pageIndex" value="#pageIndex + 1"></ww:set&
老王python
亲爱的朋友: 欢迎你!很高兴能在这里见到你,你能来到这里说明你真的很喜欢python,很想把python给学好!我觉的你很幸运,开始我学python的时候比较少资料,学起来也比较头疼,现在随着python越来越流行,资料也越来越多,大家以后学起来应该会轻松很多了。我前段时间花了很多时间整理了一些python教程,我觉的对初学python的朋友来说是个很好的引路人,我相信通过它你可以快速的上手python的。不信可以试试哦! 最近索取资料的朋友比较多,让老王python感到欣慰!为了让更多的朋友了解python,学习python,喜欢python! 我做出了一
Oracle Developer 6i报表直接生成PDF文件格式
一、需要准备的软件:1、Windows 2000系统(服务器版)2、Adobe reader 5.0(需有亚洲字体)3、Oracle Developer 6i二、安装:1、装Windows 2000系统和补丁SP42、装Adobe reader 5.0,选择安装亚洲字体3、装Oracle Developer 6i(请参考安装说明)4、配置(在WEB状态下生成PDF文件) 1)、将Adobe reader的亚洲中文字体文件拷贝到Windows字体库中; 2)、修改Oracle Developer 6i 安装目录下 toolscommon60UIFONT.ALI文件。 在[Global]下增加如下内容: .....ZHS16GBK="STSongStd-Light-Acro
How to use Form6i connect Oracle 10g
connect "AS SYSDBA" in sqlplus. SHUTDOWN IMMEDIATE; STARTUP MOUNT; ALTER SYSTEM ENABLE RESTRICTED SESSION; ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0; ALTER SYSTEM SET AQ_TM_PROCESSES=0; ALTER DATABASE OPEN; ALTER DATABASE CHARACTER SET INTERNAL_USE UTF8; SHUTDOWN; STARTUP RESTRICT; SHUTDOWN; STARTUP;[@more@]
XML Publisher
1. ERROR:The uploaded file CUX_GABRIEL_TEST_EMP.RTF is invalid. The file should be in RTF format 新建了一个word文档,然后再里面做的资料,最后将文件名“新建 Microsoft Word 文档.doc”改成了“CUX_GABRIEL_TEST_EMP.RTF”,上传为xml publisher templates 的template file时,出现如上错误。 Solution:将word文档重新另存,保存类型选择 “RTF格式(*.rtf)”。2.查看服务器端XML Publisher 版本号在網上找到的方法:http://ora-apps.blogspot.com/2007/10/find-xml-publisher-version.html方法1):查看產出的PDF文件,在PDF
Send Email with Attachments from PL/SQL using Java Stored Procedures
Send Email with Attachments from PL/SQL using Java Stored Procedures [@more@]This Article was published on Oracle Metalink. We have tested the material for Oracle 9.0.1 on Windows 2000 and RedHat Linux 7.2 and clarified some parts of the document and code. Overview This article shows how to send email using Java Stored Procedures (JSP) and the Sun Microsystems JavaMail package, attachments can also be sent. This article can be used as a guideline by any programmer who needs to implement the func
Item Import Overview
Item Import Overview~~~~~~~~~~~~~~~~~~~~~~~~~Use the item import process to import items from your legacy system or PDM system. You can import items from any source into Oracle Inventory and Oracle Engineering. When you import items through the Item Interface, you create new items in your Item Master organization or assign existing items to additionalorganizations. You can specify values for all the item attributes, or you canspecify just a few attributes and let the remainder default or remain
DBMS_PROFILER
RemRem $Header: proftab.sql 07-oct-99.11:04:02 jmuller Exp $RemRem proftab.sqlRemRem Copyright (c) Oracle Corporation 1998, 1999. All Rights Reserved.RemRem NAMERem proftab.sqlRemRem DESCRIPTIONRem Create tables for the PL/SQL profilerRemRem NOTESRem The following tables are required to collect data:Rem plsql_profiler_runs - information on profiler runsRem plsql_profiler_units - information on each lu profiledRem plsql_profiler_data - profiler data for each lu profiledRemRem The plsql_profiler_r
Linux自动下发送HTML格式并带附件的邮件
引:进入BEIDOU组的第一个项目就是实现一个统计报表自动发送邮件的应用,利用Shell脚本来做,期间回顾了awk,sed等文本过滤工具,crontab计划任务,还学会了在Linux下发送HTML邮件附带MS WORD/EXCEL/PPT格式附件的方法,在春节前圆满的完成了任务也算是可以踏踏实实过年了,活虽然小但毕竟可以算作一个小Milestone 遇到问题:统计报表实现基本思想,按处理流程顺序1) 利用scp下载远程线上机器的Log日志文件 2) 利用awk,sed,sort等Linux下命令过滤并且分析日志,生成基本的模板(template)文本。3) 根据该模板(template)文本统计信
mail with attachment
从网上down的一个用Oracle 发送邮件的存储过程,测试可以正常使用。 之前一直用vbs脚本来发邮件,现在又多了个方法。 发送邮件直接调用这个存储过程就可以了。 参数的意义里面都有说明。代码如下:CREATE OR REPLACE PROCEDURE PROCSENDEMAIL(P_TXT VARCHAR2,P_SUB VARCHAR2,P_SENDOR VARCHAR2,P_RECEIVER VARCHAR2,P_SERVER VARCHAR2,P_PORT NUMBER DEFAULT 25,P_NEED_SMTP INT DEFAULT 0,P_USER VARCHAR2 DEFAULT NULL,P_PASS VARCHAR2 DEFAULT NULL,P_FILENAME VARCHAR2 DEFAULT NULL,P_ENCODE VARCHAR2 DEFAULT 'bit 7')AUTHID CURREN
oracle concurrent program session and sql
SELECT req.request_id,req.logfile_node_name node,req.oracle_process_id,req.enable_trace,dest.VALUE || '/' || lower(dbnm.VALUE) || '_ora_' ||oracle_process_id || '.trc' trace_filename,prog.user_concurrent_program_name,execname.execution_file_name,execname.subroutine_name,phase_code,status_code,ses.sid,ses.serial#,ses.module,ses.machineFROM fnd_concurrent_requests req,v$session ses,v$process proc,v$parameter dest,v$parameter dbnm,fnd_concurrent_programs_vl prog,fnd_executables execnameWHERE 1 = 1A
Profile
Profile[@more@]SELECT p.user_profile_option_name profile, '1 - Site' scope, 'Site' value_scope, v.level_value, v.profile_option_value v_profileFROM fnd_profile_option_values v, fnd_profile_options_vl pWHERE v.profile_option_id = p.profile_option_idAND (v.level_id = 10001)--and p.user_profile_option_name like '%&&profile%'UNION ALLSELECT p.user_profile_option_name, '2 - Application.', a.application_short_name, v.level_value, v
mailx使用点滴
mailx,曾命名nail,是一个比较小型的电子邮件发送和读取的程序,slackware下mail命令就是用它。在默认的情况下, 它将邮件发往本地的MTA(Mail Transfer Agent)(比如使用Sendmail、Qmail、Postfix、等提供的服务)它的全局配置放在/etc/nail.rc,用户个人配置放在$HOME/.mailrc。要配置用外部SMTP服务器发信,在个人的 .mailrc 添加内容:set from=user@tom.com smtp=smtp.tom.comset smtp-auth-user=your_E-mail_address smtp-auth-password=your_passwordset smtp-auth=login说明:from 就是发送者的邮件地址,就是你自己的一个可用的邮
WEB PL/SQL Report 的开发方法
此制作方法是结合HTML语言及PL/SQL语言,以所见即所得方式发布的报表,发布的结果可直接拷贝到EXCEL中进行编辑,方便实用.1.制作报表模板建议利用DreamWaver 制作. 主要工作是画报表布局及表头.然后拷出生成的HTML语句.如下:设计窗口:代码窗口:生成的HTML 语句如下:<html><head><meta. http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><body><table width="740" border="1">----------表头区域
Oracle EBS ATTACHMENT with file
DECLAREv_entity_name VARCHAR2(30) := 'ENG_ENGINEERING_CHANGES';v_media_id NUMBER;v_category_id NUMBER;v_seq_num NUMBER;v_datatype_id NUMBER;p_entity_id NUMBER := 9008;p_document_desc VARCHAR2(120) := 'TEST';p_file_name VARCHAR2(100) := '11-a.pdf';b_file BFILE;b_lob BLOB;BEGINfnd_global.apps_initialize(user_id => 1,resp_id => 2,resp_appl_id => 3);dbms_application_info.set_client_info(4);SELECT category_idINTO v_category_idFROM fnd_document_categories_tlWHERE user_name = 'ECO Attachments'
BLOB
/*create or replace directory JACK as 'D:jack';*/DECLARE b_file BFILE; b_lob BLOB;BEGIN INSERT INTO a (a) VALUES (empty_blob()) RETURN a INTO b_lob; --为了使PL/SQL编译成功,必须先为该列插入一个empty_blob() 值,return a into b_lob将该列与一个blog类型的变量绑定在一起,以后只要为b_lob赋值,即等于将该值插入了表中。 b_file := bfilename('JACK', 'a.bmp'); --tmp是建立的文件所在的目录,filename.jpg是文件名;将文件转换为bfile类型 dbms_lob.OPEN(b_file, dbm
Configuring the URL to Directly Launch Oracle Applications 11i & R12
The instructions on this page are here for completeness, however there is an easier method to control forms recording and playback in Oracle E-Business Suite. Please ensure you have read all the steps on the Forms Playback Setup page before following the steps on this page. Only follow the setup instructions outlined below if you know what you are doing and have decided the Profile Option approach described on the Setup page is not appropriate for you.http://www.dataload.com/help/recplay/url.htm
export
BEGIN web_server_prefix := fnd_web_config.gfm_agent; mime_type := nvl(fnd_profile.VALUE('FND_EXPORT_MIME_TYPE'), 'text/tab-separated-values'); db_file := fnd_gfm.file_create(content_type => mime_type, program_name => 'export'); v_record_num := :system.cursor_record; go_block('PO_RULE'); first_record; LOOP EXIT WHEN system.last_query = TRUE; outstring := 输入你要的数据; fnd_gfm.file_wr