Global Variable in PL/SQL
Non-Across Sessionscreate or replace package test_pkg as global_var number :=1; constant_var CONSTANT NUMBER := 2; end;Across Sessionscreate table global_value ( x int ); insert into global_value values ( 0 ); create or replace package get_global as function val return number; procedure set_val( p_x in number ); end; / create or replace package body get_global as function val return number as l_x number; begin select x into l_x from global; return l_x; end; procedure se
Windows7下把窗口设置成保护眼睛豆沙绿色
之前XP下一直都是用豆沙绿色的背景,相对白色,感觉豆沙绿确实相对柔和些。Win7的设置藏得比较深,好不容易找到了地方,也就记录下。桌面右键->个性化窗口颜色 -> 高级外观设置,进入窗口颜色和外观,“项目”中选择“窗口”,"颜色"->"其他"将色调改为:85。饱和度:123。亮度:205添加到自定义颜色->在自定义颜色选定点确定->
Oracle Metalink Note Search Add-On for Firefox
Wrote a small Firefox search add-on which is used to search Oracle MetalinkNote/Doc more quickly. (Oracle Metalink is also named as My Oracle Support)Add-on Linkhttps://addons.mozilla.org/en-US/firefox/addon/ora-metalink-note/How to Use1.Input your oracle metalink note number,search(Need login with your metalink account at first time)2.It will display note contentContactIf you encounter any problem while using this search add-on, Please let me knowEmail:tianpan@gmail.comEnjoy...Pan Tian
Logistic Chain
adpatch报错:An error occurred while generating Oracle Forms files.
ERROR-----------------------------------The following Oracle Forms objects did not generate successfully:ont forms/US OEXOERLI.fmxAn error occurred while generating Oracle Forms files.Continue as if it were successful [No] :-----------------------------------Suggestion如果报错的文件不是太多,可以输入Yes,让adpatch继续运行,adpatch之后,再使用adadmin来重新编译文件(adadmin ->Generate Applications Files menu > Generate form files)
admsi.pl - PAA(Patch Application Assistant) tools
Purpose:Generates customized installation instructions for a patch.Path:$AD_TOP/bin/admsi.plUsageNon-GUI Mode[oracle@bej301441 16020972]$ perl $AD_TOP/bin/admsi.pl -patch_top=/u02/patches/16020972 -appspass=appsGathering Information..Logfile for this session is located at admsi.logGenerating installation instructions for patch 16020972..Updating database....install_16020972.html generated successfullyinstall_16020972.txt generated successfully[oracle@bej301441 16020972]$GUI Mode[oracle@bej3014
How to debug stored procedure/function in TOAD
研究了下在Toad是下如何调试Stored procedure或者function,之前都是看到Toad下有相应的菜单,但一直不知道怎么使用。具体可以参考文章:Debugging PL/SQL, now available for everyone!这里就通过我的一个case来说明具体怎么样在Toad中调试的:这个Case的测试代码:CREATE OR REPLACE PROCEDURE APPS.swapn (num_one IN OUT NUMBER, num_two IN OUT NUMBER) IStemp_num NUMBER;BEGINtemp_num := num_one;num_one := num_two;num_two := temp_num ;END
adpatch failed with error: "Missing file format id in file"
ERROR--------------------------------------------Defaults Feature Enabled = YES.Non-Interactive Mode = YES.Num Workers = 4.Flags = "hidepw".Options = "novalidate,norevcache,noprereq,hotpatch".Patch Top = "/slot/ems2962/appmgr/apps/apps_st/appl/patches/3413892/patches/16020972".AutoPatch error:Missing file format id in file:/slot/ems2962/appmgr/apps/apps_st/appl/admin/ml0yd213/restart/adpinit.rf9This version of AutoPatch requires a file format idon the first line o
Expense Item and Expense Subinventory
What\'s Expense items Expense items are items that we are using for internal usage and we are not selling them(can be Purchasable). they have no cost. they can be Inventory items!For example, if you purchased staples, paper and pens during the same transaction, these purchases could be entered as one expense item rather than entering them separately. Expense ItemA - Expense Items a - Purchasable = YES b - Purchased = YES c - inventory item = NO(stockable = N
javac encounter 'java.lang.ClassFormatError' error
Copied a Java source file to Oracle Apps Server, and Tried to use javac command to compile it. But javac raise below error:-bash-3.00$ javacException in thread "main" java.lang.ClassFormatError: com.sun.tools.javac.main.Main (erroneous method access flags) at _Jv_ClassReader.throw_class_format_error(byte) (/usr/lib/libgcj.so.5.0.0) at _Jv_ClassReader.handleMethod(int, int, int, int) (/usr/lib/libgcj.so.5.0.0) at _Jv_ClassReader.read_methods() (/usr
Oracle EBS + APEX
除了原有的客户化方式之外,现在又多了一种EBS个性化的方式- Oracle APEX (Oracle Application Express)。如果是做一些不是非常复杂Web应用(并与EBS集成),使用APEX还是一个相当不错的选择。White Paper:Extending Oracle E-Business Suite Release 12 using Oracle Application Express (PDF)OverviewOracle Application Express is a rapid web application development tool for the Oracle database. Oracle Application Express combines the qualities of a persona
SSH Got WARNING: 'POSSIBLE DNS SPOOFING DETECTED'
(ptian) ptian- ssh -l user host_name@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@The RSA host key for site has changed,and the key for the according IP address 10.210.23.91is unknown. This could either mean thatDNS SPOOFING is happening or the IP address for the hostand its host key have ch
Form Trigger Sequence Demo Form
Form Trigger太多太庞杂,新手往往很难上手,加上一些Trigger有点偏门,用的比较少,真到想用的时候,又不知道从哪下手。所以之前就有想法写一个Demo Form,用于显示Trigger的执行顺序,今天发现已经有人写过这个东西了,也就不用重造这个轮子了。作者:Francois Degrelle(Oracle ACE)Site:http://sheikyerbouti.developpez.com/tutoforms10g/tutoforms10g.htm可以从上边的页面下载,不过需要注册(法语),
2012年读过的书和看过的电影
书电影(部分书和电影其实很早就看过,只是今年才在豆瓣上勾选上,所以统计也有出入)"阅读DNA"统计,数据来自豆瓣
frmcmp.sh报FRM-91500
[oracle@bej301441 ~]$ frmcmp.shFRM-91500: Unable to start/complete the build.Reason:frmcmp.sh需要GUI显示,如果通过putty之类的SSH客户端连上服务器的话,无法GUI展示,所以命令会报错。Solution 1:The only catch is when you use frmcmp.sh you need to be able to launch an X session. The easiest way to check is by running xclock and seeing that the clock appears. If not you need to set the DISPLAY env variable to your computers IP. Such as: export DISPLAY=&l
How to check Oracle Applications Web Server Version ?
Login Apps Servercd $IAS_ORACLE_HOME/Apache/Apache/bin./httpd -versionOutput:Server version: Oracle-Application-Server-10g/10.1.3.4.0 Oracle-HTTP-ServerServer built: Jul 7 2008 14:58:00
Oracle Forms Versions
IAF 2CharacterNo IDEFastForms+IAG 4Character SQL*Forms25Character SQL*Forms2.35CharacterNew IDE, No PLSQL, User Exits, INP ASCII File, FRM Runtime FileSQL*Forms36CharacterMajor Rewrite, New IDE, PLSQL, X Support, Generate code to enforce constraintsOracle Forms4.06-7GUI / CharacterMajor Rewrite, New IDE, FMB source binary file, FMX Runtime, optimized for Client-Server. New interface is slow, buggy and not popular with client base.Oracle Forms4.57GUI / CharacterMajor Rewrite
Set_XXX_Property Build-Ins
Build-In List· SET_APPLICATION_PROPERTY· SET_BLOCK_PROPERTY· SET_CANVAS_PROPERTY· SET_FORM_PROPERTY· SET_ITEM_PROPERTY· SET_ITEM_INSTANCE_PROPERTY· SET_LOV_PROPERTY· SET_MENU_ITEM_PROPERTY· SET_PARAMETER_ATTR· SET_RADIO_BUTTON_PROPERTY· SET_RECORD_PROPERTY· SET_RELATION_PROPERTY· SET_REPORT_OBJECT_PROPERTY· SET_TAB_PAGE_PROPERTY· SET_VIEW_PROPERTY· SET_WINDOW_PROPERTYExampleset_item_
[Code Sample]loop trough all records of a block
Sample 1:declare currRec integer; begin -- go to the desired block navigate_to_block(\'BLOCK_NAME\'); -- save the current record position currRec := :system.cursor_record; first_record(); loop IF :SYSTEM.LAST_RECORD = \'TRUE\' THEN exit; ELSE next_record; END IF; end loop; -- go back to the original record position go_record (currRec); end; Sample 2:declare number_of_records number; where_am_i number; l_deptno dept.deptno
FND: Debug Log Enabled引起的性能问题
客户遇到一性能问题,某EBS功能之前性能还可以接受,但最近突然发现性能非常差。从TKRPOF看到,下边SQL语句执行了上千次,SELECT NVL( SUBSTR( VALUE, 1, INSTR( VALUE, \',\')-1), VALUE) FROM V$PARAMETER WHERE NAME = \'utl_file_dir\'这条语句基本是写日志前的读取可写日志的目录,然后检查各项Debug Profile,最终查到客户环境的Profile:"FND: Debug Log Enabled"处于打开的状态,让客户关闭后,性能恢复正常