安装oracle 10g XE后的提示
目标文件夹: C:oraclexe'Oracle 数据库监听程序' 的端口: 1521'用于 Microsoft Transaction Server 的 Oracle 服务' 的端口: 2030HTTP 监听程序的端口: 8080[@more@]
Rowid和Rownum的区别?
rowid和rownum都是虚列,但含义完全不同。rowid是物理地址,用于定位oracle中具体数据的物理存储位置,而rownum则是sql的输出结果排序,从下面的例子可以看出其中的区别。[@more@] SQL> select rowid,deptno from dept order by deptno; ROWID DEPTNO ------------------ ---------- AAABe/AAFAAABLqAAA 10 AAABe/AAFAAABLqAAB 20 AAABe/AAFAAABLqAAC 30 AAABe/AAFAAABLqAAD 40 SQL> edit Wrote file afiedt.buf 1* select rowid,deptno from dept order by deptno desc SQL> / ROWID DEPTNO ------------------ ---------- AAAB
判断某个字符串是否属于长的字符串的一部分
判断某个字符串是否属于长的字符串的一部分。IF INSTRB(i.line_type,'Cash_Discount',1)>0 THEN[@more@]
如何查找、删除表中重复的记录
如何查找、删除表中重复的记录[@more@]如何查找、删除表中重复的记录软件环境: 1、Windows NT4.0+ORACLE 8.0.42、ORACLE安装路径为:C:ORANT问题提出: 1、当我们想要为一个表创建唯一索引时,如果该表有重复的记录,则无法创建成功。 方法原理: 1、Oracle中,每一条记录都有一个rowid,rowid在整个数据库中是唯一的, rowid确定了每条记录是在ORACLE中的哪一个数据文件、块、行上。2、在重复的记录中,可能所有列的内容都相同,但rowid不会相同,所以只要确定出重复记录中 那些具有最大rowid的就可以了,其余全部删除。3、以下语句
reports 报表高手来,如何根据具体的数值设置field是否带小数
在开发报表的时候, 比如是数量这个栏位一般都是整数的,可是有的时候却是小数,如4.023公斤,虽然这样有点变态可是实际确实需要显示成4.023而不是4 反过来又要考虑一般时候都要显示成整数,那么如何去实现这样: 如果值是整数,就显示整数,如果是小数就显示小数,不能一直都显示小数. [@more@]1.将数字变成字符型,数据库是什么样的就显示什么(参考) 2.把它格式设成NNNN0.NNNN就好了 (非常好的解决方法)
Oracle 的 Autonomous_transaction( 自由性交易)
建立自由性交易, 使用名为autonomous_transaction的编译指示(编译命令,如, #include), 这个编译命令要放在declare里面. Delcare or replace procedure procedure_name(params, types)AS PRAGMA AUTONOMOUS_TRANSACTION; 当程序执行的时候,pl/sql 会把autonomous_transaction当成独立存在的区域来处理.用途是用在记录程序事件,不影响程序的进行. [@more@]一切用pl/sql 代码说话: /* Formatted on 2006/04/27 14:05 (Formatter Plus v4.8.7) */--test autonomous transactionCREATE TABLE logging_infos(log_info VARCHAR2(200), log_ti
一些很好的日期处理方法
TO_DATE格式 Day: dd number 12 dy abbreviated fri day spelled out friday ddspth spelled out, ordinal twelfth Month: mm number 03 mon abbreviated mar month spelled out march Year: yy two digits 98 yyyy four digits 1998 24小时格式下时间范围为: 0:00:00 - 23:59:59.... 12小时格式下时间范围为: 1:00:00 - 12:59:59 .... 1. 日期和字符转换函数用法(to_date,to_char)[@more@]TO_DATE格式 Day: dd number 12 dy abbreviated fri day spelled out friday ddspth spelled out, ordinal twelfth Mont
How To Change Look And Feel and Colors Of Oracle Applications 11.5(如何改变Oracle ERP11.5的界面外观)
There are two database profile options that can be used to change look and feel. 1.Java Look and Feel. Java Look and Feel can have two values: GENERIC or ORACLE. If set to GENERIC, then set Java Color Scheme to blank. Which will leave look and feel to generic. The Generic look and feel adheres to the native interface and color scheme of the current operating system.[@more@]How To Change Look And Feel and Colors Of Oracle Applications 11.5 There are two database profile options that can b
主从细目表单的FRM-10758错误
FRM-10758: No item based on join column %s in this detail data block.forms builder 自动地用外键约束建立主数据块和从数据块的联系,可是其中一个包含约束的外键没有被显示在当前数据库块中.[@more@]FRM-10758: No item based on join column %s in this detail data block. Cause: The Data Block Wizard is attempting to use foreign key constraint information to automatically setup the join condition between the current data block and the selected master data block. However, one of the columns included in the fo
Learning Form :Hierarchical Tree(层次树项) 和计算项
Hierarchical Tree(层次树项),计算项[@more@]Hierarchical Tree(层次树项) 如果使用层次树项, 必须将其放在独立的控制块中 CREATE_GROUP_FROM_QUERY Built-in Creates a record group with the given name. The record group has columns representing each column you include in the select list of the query. Add rows to the record group with the POPULATE_GROUP built-in. Built_in: Record group – populate_group-set_tree_property 使用计算项容易出现的错误:
我建立一个procedure 为什么还会有ORA-00955: name is already used by an existing object 错误呢?
当一个procedure 和一个table 名字重复的时候 , 如果是存在的procedure 同名,那么会替换掉原先存在的procedure , 因为 or replace !但是table 存在了,你还用一样的名字建立procedure,那么oracle 知道你是table 还是procedure???![@more@]我建立一个procedure 为什么还会有ORA-00955: name is already used by an existing object 错误呢? 我建立一个procudure 为什么还会有ORA-00955: name is already used by an existing object 是这样写的 .--create autonomous transaction procedure CREATE OR REPLACE PROCEDURE logging_infos (log
安装windows 版本的Oracle EBS 哪里下载?
安装windows 版本的Oracle 哪里下载? 系统的要求是什么,最低要求? 我有个图拉丁1.1g/256m/80g的电脑,可以装吗?[@more@]http://edelivery.oracle.com/ 1G/160G ,可以安装,运行起来比较慢 一定不行,首先硬盘就不够大,256的内存就是安装一个oracle数据库都不行。别在迁就了,出点血吧。最低配置建议cpu只强3.0G,4G内存,200g硬盘 256M,梦中可以配置
很神奇的BITAND 函数
两个参数,要默认转化为数值类型整数进行二进制按位与(AND)运算(逻辑上与代表乘,或代表加, 与门,或门,联想到串联和并联,伟大的编码的原理,相当有趣),结果再转化为二进制-10进制,TOAD文档举例了一个数据库的参数,然后分别和2的0次幂, 1次幂,进行运算, 其中结果是1, 2, 4 代表不同的含义,这样,再配合DECODE就实现了强大的一个栏位能表明多种意思. 详细参见TOAD 文档和下文:[@more@]返回两个数值型数值在按位进行 AND 运算后的结果。 语法 BITAND(nExpression1, nExpression2) 参数 nExpression1, nExpression2 指定按位进行 AND 运算的两个数
where 后面的条件可能为空,这样整个查询就没有结果.怎么办?
我写一个查询的语句,如 SELECT c.* FROM a, b,c WHERE a .col1=b.col2 AND c,col1=a.col1 但是如果a.col1 是空的就没有结果,我想要的结果是如果a.col1为空,那么就忽略这个a.col1=b.col2 条件,以 c,col1=a.col1为条件进行查询[@more@]where 后面的条件可能为空,这样整个查询就没有结果.怎么办? 我写一个查询的语句,如 SELECT c.* FROM a, b,c WHERE a .col1=b.col2 AND c,col1=a.col1 但是如果a.col1 是空的就没有结果,我想要的结果是如果a.col1为空,那么就忽略这个a.col1=b.col2 条件,以 c,col1=a.col1为条件进行查询 我试着写成了 SELE
用了DISTINCT ,数据也重复
原因检查方法,不能偷懒,一个个表去关联关系,即使很麻烦[@more@]1.数据存在空格 -- 可惜我不是这种情况2.DATE类型数据为秒存在差异SELECT distinct gl.batch_number, h.order_number, h.order_number,h.member_name || ' ' || cm.member_title, cm.member_num,tava.NAME || tavb.NAME || tavc.NAME || cm.address addr, cm.postalcode,SUBSTR (cm.postalcode, 1, 1) p1, SUBSTR (cm.postalcode, 2, 1) p2,SUBSTR (cm.postalcode, 3, 1) p3, SUBSTR (cm.postalcode, 4, 1) p4,SUBSTR (cm.postalcode, 5, 1) p5, SUBSTR (cm.postalcode, 6, 1
再遇妖的问题, 先COMMIT , 记得写更新料号属性的时候也遇到过
pause ; MESSAGE('s'||:ship_confirm_id); pause;已经执行, 但是同时的UPDATE 语句就是不执行[@more@]IF (v_return_status = 'S') THEN -- RAISE fail_api; if :weight is not null then update oe_order_headers_all set attribute14 = :weight where order_number = :order_number and org_id = :parameter.g_org_id; end if; -- pause ; MESSAGE('s'||:ship_confirm_id); pause; COMMIT; update xx_oe_ship_confirm_all sc set
Import items 总结
Update item :1.1. Insert a item in Oracle EBS manual .such as : 000-00600-062.2.Find the segment’s info select msi.inventory_item_id , msi.organization_id, msi.* --, msi.transaction_typefrom mtl_system_items_b msi where msi.segment1='000-00600-06'[@more@]--result : 175385 , 102 … If you want to assign it to child inv , you can assign it to . And then execute the script above again , you will found two records ,add a --result : 175385 , 117 … 33 Write insert to interface script a
用PL/SQL DEVELOPER 怎样导出表结构啊,我导出来的都是乱码来的
用PL/SQL DEVELOPER 怎样导出表结构啊,我导出来的都是乱码来的用PL/SQL DEVELOPER 怎样导出表结构啊,我在tools->export tables 下导出来的都是乱码来的,能否讲一下正确的操作啊,在哪个菜单下操作,要注意哪写事项啊tools->export user objects[@more@]tools->export tables 是导出表结构还有数据tools->export user objects是导出表结构可以用tools->export tables用中间的sql inserts页面,选中create tables选项,where clause 里写入 where rownum<1就行了!
ORACLE ERP各个模块的缩写
ORACLE ERP各个模块的缩写[@more@]财务系统模块:Oracle 总帐管理(GL)Oracle 应付帐管理(AP)Oracle 固定资产管理(FA)Oracle 应收帐管理(AR)Oracle 现金管理(CE)Oracle 项目会计(PA)Oracle 财务分析(OFA) 分销系统模块:Oracle 库存管理(INV)Oracle 采购管理(PUR)Oracle 销售定单管理(OE)Oracle 销售&市场管理(SM)Oracle 销售补偿管理(SC)Oracle 售后服务管理(SR)Oracle 销售分析(OSA) 制造系统模块:Oracle 计划管理(MPS/MRP)Oracle 能力计划管理(CAP)Oracle 制造数据管理(BOM)Oracle 车间生产管理(W
ORA-01422: exact fetch returns more than requested number of rows
Cause: The number specified in exact fetch is less than the rows returned.Action: Rewrite the query or change number of rows requested[@more@]刚才遇见了这个错误,原来是我多写了一个隐式cursor 如果写select into 很容易犯错误同时又不知道参考: SELECT select_listINTO variable_name | record_nameFROM tableWHERE condition; 例:SQL> r 1 declare 2 v_deptno number(2); 3 v_loc varchar2(15); 4 begin 5 select deptno,loc 6 into v_deptno,v_loc 7 from dept 8 where dname='S