专注Oracle EBS--理性的浪漫
===========================================================
===========================================================
安装WORKFLOW 的时候发生错误,提示:无法确定主机的IP地址,见图 查看全文
moonsoft 发表于:2007.07.30 16:03 ::分类: ( Oracle基础 , EBS ) ::阅读:(508次) :: 评论 (0)
===========================================================
===========================================================
作者:江南白衣
 从8i到10g,Oracle不断进化自己的SQL Tuning智能,一些秘籍级的优化口诀已经失效。
但我喜欢失效,不用记口诀,操个Toad for Oracle Xpert ,按照大方向舒舒服服的调优才是爱做的事情。 查看全文
moonsoft 发表于:2007.06.19 23:19 ::分类: ( Oracle基础 , EBS ) ::阅读:(871次) :: 评论 (0)
===========================================================
===========================================================

原因

检查方法,不能偷懒,一个个表去关联关系,即使很麻烦

 查看全文
moonsoft 发表于:2007.06.07 17:29 ::分类: ( Oracle基础 ) ::阅读:(803次) :: 评论 (0)
===========================================================
===========================================================
 “应该说,目前市场上我们所见到的‘BI+搜索’的产品基本上都是围绕门户展开的”张天峰说。文章前面提到的产品大都集中在门户和内容管理方面,在门户平台之上,结构化与非结构化数据搜索、乃至更高层次的信息检索技术形成了多种集成化的解决方案。

 查看全文

moonsoft 发表于:2007.06.07 14:08 ::分类: ( view , 分销 , Oracle基础 , 财务 , 理性的浪漫 , EBS , forms ) ::阅读:(674次) :: 评论 (2)
===========================================================
===========================================================

pause ; MESSAGE('s'||:ship_confirm_id); pause;

已经执行, 但是同时的UPDATE 语句就是不执行

 查看全文
moonsoft 发表于:2007.05.30 02:45 ::分类: ( Oracle基础 ) ::阅读:(274次) :: 评论 (0)
===========================================================
===========================================================

ORA-20000: %s


Cause: The stored procedure 'raise_application_error' was called which causes this error to be generated.

 查看全文
moonsoft 发表于:2007.05.14 17:28 ::分类: ( Oracle基础 , Oracle_DBA ) ::阅读:(734次) :: 评论 (0)
===========================================================
===========================================================

注:我原先写树形的组织结构的时候可以用这个的 :见CSDN博客:program.diary

一张表可以自我连接.进行自连接时我们需要一个机制来区别一个表的两个实例. 在FROM clause(子句)中我们可以给这个表不同的别名 - 然后在语句中其它需要使用到该别名的地方用dot(点)来连接该别名和字段名.

 查看全文
moonsoft 发表于:2007.04.18 17:54 ::分类: ( Oracle基础 , Oracle_DBA ) ::阅读:(342次) :: 评论 (0)
===========================================================
===========================================================

v_goods_number :=
:header.f || TO_CHAR (:detail.order_number)
|| :header.b;


moonsoft 发表于:2007.04.18 17:37 ::分类: ( Oracle基础 ) ::阅读:(175次) :: 评论 (0)
===========================================================
===========================================================

toad / pl/sql developer

在pl/sql developer 中,右键点击工具栏,点击customize...,选择
user interface ->Code Assistant,把Automatically activated打勾,Delay是设置提示的延迟. Toad我没有装,但也应该可以设置.

 查看全文
moonsoft 发表于:2007.04.18 17:33 ::分类: ( Oracle基础 ) ::阅读:(670次) :: 评论 (0)
===========================================================
===========================================================

用PL/SQL DEVELOPER 怎样导出表结构啊,我导出来的都是乱码来的

用PL/SQL DEVELOPER 怎样导出表结构啊,
我在tools->export tables 下导出来的都是乱码来的,
能否讲一下正确的操作啊,在哪个菜单下操作,要注意哪写事项啊


tools->export user objects

 查看全文
moonsoft 发表于:2007.04.18 17:31 ::分类: ( Oracle基础 ) ::阅读:(1392次) :: 评论 (0)
===========================================================
===========================================================
emp_sequence.CURRVAL
emp_sequence.NEXTVAL

可以使用sequence的地方:
- 不包含子查询、snapshot、VIEW的 SELECT 语句
- INSERT语句的子查询中
- NSERT语句的VALUES中
- UPDATE 的 SET中 查看全文
moonsoft 发表于:2007.03.21 18:48 ::分类: ( Oracle基础 ) ::阅读:(473次) :: 评论 (0)
===========================================================
===========================================================

PLS-00357: Table,View Or Sequence reference 'string' not allowed in this context

 查看全文
moonsoft 发表于:2007.03.15 19:13 ::分类: ( Oracle基础 ) ::阅读:(688次) :: 评论 (0)
===========================================================
===========================================================

PLS-00204: function or pseudo-column 'string' may be used inside a SQL statement only


Cause: A pseudocolumn or proscribed function was used in a procedural statement. The SQL pseudocolumns (CURRVAL, LEVEL, NEXTVAL, ROWID, ROWNUM) can be used only in SQL statements. Likewise, certain functions such as DECODE, DUMP, and VSIZE and the SQL group functions (AVG, MIN, MAX, COUNT, SUM, STDDEV, VARIANCE) can be used only in SQL statements.

Action: Remove the pseudocolumn reference or function call from the procedural statement. Or, replace the procedural statement with a SELECT INTO statement; for example, replace bonus := DECODE(rating, 1, 5000, 2, 2500, ...); with the following statement: SELECT DECODE(rating, 1, 5000, 2, 2500, ...) INTO bonus FROM dual;

 查看全文
moonsoft 发表于:2007.02.02 14:23 ::分类: ( Oracle基础 , Oracle_DBA ) ::阅读:(377次) :: 评论 (0)
===========================================================
===========================================================

[心血原创,转载注明]

Import Standard Purchase Order (标准PO订单导入接口)BUG集合(1)

this week , I was puzzled by this PO interface program .Up to now , I find two big bugs in this program . 希望不再发现任何bug in this program .也希望不再有Import Standard Purchase Order (标准PO订单导入接口)BUG集合(2)

Oracle , 原来你的代码也这样地烂......

bug 1:Import Standard Purchase Order , Find 'REJECTED' in po_headers_interface table , But couldn't find records in PO_interface_errors

bug2:ORA-1403 ORA-6512

DECLARE
*
ERROR at line 1:
ORA-01403: no data found
ORA-06512: at line 55 
 查看全文
moonsoft 发表于:2007.01.26 16:05 ::分类: ( 分销 , Oracle基础 , EBS ) ::阅读:(1709次) :: 评论 (3)
===========================================================
===========================================================

Creating a DML Trigger
To create (or replace) a DML trigger, use the syntax shown here:

1 CREATE [OR REPLACE] TRIGGER trigger name
2 {BEFORE | AFTER}
3 {INSERT | DELETE | UPDATE | UPDATE OF column list} ON table name
4 [FOR EACH ROW]
5 [WHEN (...)]
6 [DECLARE ... ]
7 BEGIN
8 ... executable statements ...
9 [EXCEPTION ... ]
10 END [trigger name];

 查看全文
moonsoft 发表于:2007.01.18 12:25 ::分类: ( Oracle基础 , Oracle_DBA ) ::阅读:(667次) :: 评论 (0)
===========================================================
===========================================================

[原创整理,转载注明!!!]

ORA-04091:触发器不能修改触发表的数据:

解决方法

1. 建立一个pl/sql table

2.写一个table level触发,在insert/update/delete 前进行表的index 置0

3.写一个statement level 触发, 记录触发的行rowid 放到step 1里面的pl/sql table

4.写一个table level 触发, 从step1 里面的pl/sql table 来获得rowid ,再用loop 来update

table levle and statement level trigger difference is for each row .如果没有就是statement level trigger

If FOR EACH ROW is specified, then the trigger will activate for each row processed by a statement. If this clause is missing, the default behavior is to fire only once for the statement (a statement-level trigger).

 查看全文
moonsoft 发表于:2007.01.18 12:04 ::分类: ( Oracle基础 , 财务 , EBS , Oracle_DBA ) ::阅读:(2884次) :: 评论 (0)
===========================================================
===========================================================


ORA-01427: single-row subquery returns more than one row

我用了rowid 来获得数据,并且用Implicit Cursors(select into )来获取数据,出现返回了多rows.这个错误解决方法:

 查看全文

moonsoft 发表于:2007.01.18 11:57 ::分类: ( Oracle基础 , 财务 ) ::阅读:(1770次) :: 评论 (0)
===========================================================
===========================================================

1.CTL FILE date 必须加 date

2.Commit point reached-> 查看log
Record 2: Rejected - Error on table XX_CATALOG_SETUP_H_IFACE, column CATALOG_NUMBER.
Field in data file exceeds maximum length
实际VARCHAR2 (30), 而数据只有 6
一定要用EXCEL 另存为...CSV,不要手动改后缀名

3. register sql load
select '/$XX_TOP/1.0.0/bin/catalog_setup_headers.csv' from dual
4.CONTROL 文件设置

infile '$XX_TOP/bin/catalog_setup_headers.csv'

 查看全文
moonsoft 发表于:2007.01.09 14:59 ::分类: ( Oracle基础 , reports ) ::阅读:(1096次) :: 评论 (0)
===========================================================
===========================================================

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)

 查看全文
moonsoft 发表于:2006.12.28 22:51 ::分类: ( Oracle基础 ) ::阅读:(656次) :: 评论 (2)
===========================================================
===========================================================

If you put most of your code in packaged PL/SQL procedures, and then call those
procedures from your triggers, you will have modular form code that is easy to develop and maintain.

Be sure to group these smaller procedures into logical packages so their purpose is clear.
--尽量使用小的而且逻辑清楚的procedure.


Server–side
Server–side is a term used to describe PL/SQL procedures that are
stored in an Oracle database (on the database server).

Client–side
Client–side is a term used to describe PL/SQL procedures that run in
programs that are clients of the Oracle database, such as Oracle Forms,
Oracle Reports, and libraries.

 查看全文
moonsoft 发表于:2006.11.17 17:32 ::分类: ( Oracle基础 , forms , reports ) ::阅读:(706次) :: 评论 (0)
===========================================================
===========================================================

concept of chapter1,2,3

overview of coding standards

set up your applications framewok

building your database objects

Handlers:
oracle applications group of packaged procedure called handlers. to organize pl/sql in forms so that is it easier to develop , maintain and debug.

CBO :Oracle cost-based optimization
RBO :Rule-based optimization
WHO: Record history (who ?) the WHO report feature reports the information who created or updated rows in oracle applications table


moonsoft 发表于:2006.11.09 11:37 ::分类: ( Oracle基础 , forms , reports ) ::阅读:(396次) :: 评论 (0)
===========================================================
===========================================================

chapter 1, 2, 3

pl/sql入门

pl/sql语言基础

有效的编码风格

 查看全文
moonsoft 发表于:2006.11.09 11:30 ::分类: ( Oracle基础 ) ::阅读:(673次) :: 评论 (0)
===========================================================
===========================================================
rowid和rownum都是虚列,但含义完全不同。rowid是物理地址,用于定位oracle中具体数据的物理存储位置,而rownum则是sql的输出结果排序,从下面的例子可以看出其中的区别。 查看全文
moonsoft 发表于:2006.10.10 00:58 ::分类: ( Oracle基础 ) ::阅读:(1386次) :: 评论 (0)
===========================================================
===========================================================
判断字段中是否包含中文的方法
 查看全文
moonsoft 发表于:2006.09.07 14:03 ::分类: ( Oracle基础 ) ::阅读:(870次) :: 评论 (1)
===========================================================
===========================================================

一些ORACLE中的进程被杀掉后,状态被置为"killed",但是锁定的资源很长时间不释放,有时实在没办法,只好重启数据库。现在提供一种方法解决这种问题,那就是在ORACLE中杀不掉的,在OS一级再杀。

 查看全文
moonsoft 发表于:2006.09.06 09:24 ::分类: ( Oracle基础 ) ::阅读:(2043次) :: 评论 (4)
===========================================================
===========================================================
如何查找、删除表中重复的记录 查看全文
moonsoft 发表于:2006.08.31 15:32 ::分类: ( Oracle基础 ) ::阅读:(901次) :: 评论 (0)
===========================================================
===========================================================

Cause: The number specified in exact fetch is less than the rows returned.

Action: Rewrite the query or change number of rows requested

 查看全文
moonsoft 发表于:2006.08.31 13:15 ::分类: ( Oracle基础 ) ::阅读:(3472次) :: 评论 (0)
===========================================================
===========================================================
new_salary OUT NUMBER,

new_salary1 OUT NUMBER,

new_salary2 OUT NUMBER

 查看全文
moonsoft 发表于:2006.08.29 11:38 ::分类: ( Oracle基础 ) ::阅读:(672次) :: 评论 (0)
===========================================================
===========================================================

ENG05_Update 06 Item Attributes

写了一个form , 2个package ,代码量5000左右,小程序,呵呵,但是该用的都用了,五脏俱全

通过这次开发,熟悉了以下:

1. 简单Form 二次开发(应用template 模版进行二次开发, 写常见的触发,调用自己/系统的request 等)

2. ERP接口开发能力

3. 熟练运用Cursor ,写package PL/SQL 编程能力,应该说是有一个大的飞跃。(写了两个package ,其中一个后台copy mtl_system_items_b 表里的数据,另外一个是并发程序,通过form 来调用,以报表的形式显示更新结果)

4. ERP里的form, function, menu , responsibility 设置的熟悉

5.熟练SecureCRT FTPform server)的上传编译form

一些代码具有可重复使用的特性,以后可重用!

尽管开发过程很艰难,压力很大,但是现在很高兴。

 查看全文
moonsoft 发表于:2006.08.25 17:20 ::分类: ( 分销 , Oracle基础 , 理性的浪漫 , forms ) ::阅读:(1280次) :: 评论 (2)
===========================================================
===========================================================

ORACLE锁的管理


昨天下班的时候发现我写的一个程序按提交就一直忙碌。今天上午终于发现了问题的原因,是一个package 被锁了。以下查到的资料是表被锁的,关于package 被锁的资料目前还没有查到,是DBA帮我弄的。。。


ORACLE里锁有以下几种模式:

0:none
1:null 空
2:Row-S 行共享(RS):共享表锁
3:Row-X 行专用(RX):用于行的修改
4:Share 共享锁(S):阻止其他DML操作
5:S/Row-X 共享行专用(SRX):阻止其他事务操作
6:exclusive 专用(X):独立访问使用

数字越大锁级别越高, 影响的操作越多。

 查看全文
moonsoft 发表于:2006.08.25 12:59 ::分类: ( Oracle基础 ) ::阅读:(1376次) :: 评论 (0)
===========================================================
===========================================================

欢迎具有技术底蕴的业务顾问过来现身说法

。。。

目前在写一个料号更新程序 ,因为以前开发经验不够,通过这次炼狱,增长了很多东西。

这个程序开始需要一个form , 用于输入1 个或多个料号和描述,放到临时表里面。 然后点击按钮,后台 copy 类似的料号属性,把这些属性放到临时表里, 再插入 mtl_system_items_interface 接口,然后再调用EBS import items request . 最后还要统计出用户输入更新的料号哪些成功哪些不成功。

 查看全文

moonsoft 发表于:2006.08.23 18:25 ::分类: ( 分销 , Oracle基础 , 理性的浪漫 ) ::阅读:(910次) :: 评论 (1)
===========================================================
===========================================================

1、前言

  目前所有使用oracle作为数据库支撑平台的应用,大部分数据量比较庞大的系统,即表的数据量一般情况下都是在百万级以上的数据量。

  当然在oracle中创建分区是一种不错的选择,但是当你发现你的应用有多张表关联的时候,并且这些表大部分都是比较庞大,而你关联的时候发现其中的某一张或者某几张表关联之后得到的结果集非常小并且查询得到这个结果集的速度非常快,那么这个时候我考虑在oracle中创建临时表

  我对临时表的理解:在oracle中创建一张表,这个表不用于其他的什么功能,主要用于自己的软件系统一些特有功能才用的,而当你用完之后表中的数据就没用了。oracle的临时表创建之后基本不占用表空间,如果你没有指定临时表(包括临时表的索引)存放的表空的时候,你插入到临时表的数据是存放在oracle系统的临时表空间中(temp)。

  2、临时表的创建

  创建oracle临时表,可以有两种类型的临时表:会话级的临时表和事务级的临时表。

  

 查看全文
moonsoft 发表于:2006.08.17 22:14 ::分类: ( Oracle基础 ) ::阅读:(1178次) :: 评论 (0)
===========================================================
===========================================================
每次成功退出保存修改或添加记录时窗体都会弹出“FRM-40400:事务完成:已应用和保存X条记录。"
的消息窗,可不可以在适当的触发器中改变它的属性? 查看全文
moonsoft 发表于:2006.08.17 22:08 ::分类: ( Oracle基础 , forms ) ::阅读:(707次) :: 评论 (0)
===========================================================
===========================================================

Update item

1.1. Insert a item in Oracle EBS manual .such as : 000-00600-06

2.2.Find the segment’s info

select msi.inventory_item_id , msi.organization_id, msi.* --, msi.transaction_type

from mtl_system_items_b msi

where msi.segment1='000-00600-06'

 查看全文

moonsoft 发表于:2006.08.11 17:59 ::分类: ( 分销 , Oracle基础 ) ::阅读:(777次) :: 评论 (0)
===========================================================
===========================================================

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 additional organizations. You can specify values for all the item attributes, or you can specify just a few attributes and let the remainder default or remain Null. You can also specify an item template for each item and inherit attribute values from the template. The Item Interface also lets you import revision details, including past and future revisions and effectivity dates. Validation of imported items is done using the same rules as the item definition forms, so you are insured of valid items.

 查看全文

moonsoft 发表于:2006.08.11 10:22 ::分类: ( 分销 , Oracle基础 , EBS ) ::阅读:(826次) :: 评论 (0)
===========================================================
===========================================================
1.首先插入数据到 interface

脚本如下:
INSERT INTO mtl_system_items_interface
(inventory_item_id, segment1, organization_id,process_flag,
transaction_type, item_type, revision_qty_control_code,
must_use_approved_vendor_flag, inventory_planning_code,
planner_code, planning_make_buy_code, fixed_days_supply,
mrp_planning_code, planning_exception_set, shrinkage_rate,
preprocessing_lead_time, fixed_lead_time, attribute2,
attribute4, attribute1, postprocessing_lead_time, buyer_id, attribute15
)
VALUES (17534,'12230006B36', 117, 1, 'INSERT',
'FG', NULL, 'N',
6, 'B-1AN2K',
1, 12, 3,
NULL, NULL, 1,
3, 'F0030', 'F0030',
NULL, 0, NULL, NULL
)

--提示插入成功
接着commit;
 查看全文
moonsoft 发表于:2006.08.11 10:10 ::分类: ( 分销 , Oracle基础 , EBS ) ::阅读:(850次) :: 评论 (2)
===========================================================
===========================================================

1. 1。HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesOracleOraHome81TNSListener发现ImagePath关键值没有了,增加他,选择可扩充字符串值,编辑字符串的数值数据为:f:OracleOra81BINTNSLSNR 退出注册表。

2Oracle启动时,监听器不启动或打开出错?

错误现象:

ORACLE
启动时,监听器不启动或打开出错;服务器端:用username/password登录正常,但用username/password@alias登录不成功;客户端:用username/password@alias登录不成功

解决方法

1)如果是因为修改了NT的机器名,则把listener.ora文件中的host参数全部改为新的NT机器名,重新启动OracleTNSListener80服务即可。

 查看全文
moonsoft 发表于:2006.08.03 22:50 ::分类: ( Oracle基础 ) ::阅读:(900次) :: 评论 (1)
===========================================================
===========================================================
select *
from mfg_lookups
where looKUP_type='BOM_ITEM_TYPE'
moonsoft 发表于:2006.08.03 18:07 ::分类: ( 分销 , Oracle基础 , 制造 ) ::阅读:(677次) :: 评论 (0)
===========================================================
===========================================================

SELECT ohd.*
FROM

oe_order_headers_all oh,

oe_order_headers_all_dfv ohd
WHERE oh.ROWID = ohd.ROWID

AND oh.order_number = 4006001233


moonsoft 发表于:2006.08.03 18:05 ::分类: ( Oracle基础 , EBS ) ::阅读:(1027次) :: 评论 (0)
===========================================================
===========================================================

判断某个字符串是否属于长的字符串的一部分。

IF INSTRB(i.line_type,'Cash_Discount',1)>0 THEN


moonsoft 发表于:2006.07.24 19:31 ::分类: ( Oracle基础 ) ::阅读:(527次) :: 评论 (0)
===========================================================
===========================================================

Oracle数据库常见问题诊断-SQL*NET

1 TNS-12154 Error ORA-12154

  2NL-00462 Error ORA-00462

  3NL-00405 Error ORA-00405

  4TNS-01155 Error ORA-01155

 5TNS-12537 TNS-12560TNS-00507 Error

  6TNS-12203 Error

  7TNS-12533 Error

 查看全文
moonsoft 发表于:2006.07.24 10:28 ::分类: ( Oracle基础 ) ::阅读:(1782次) :: 评论 (1)
===========================================================
===========================================================

当报表限制条件为OU =106, 111,110的时候不能选取交易类型为‘External Sales’的订单,在网上问了一下,自己也写出来了:

and (((ct.org_id=106 and ot.attribute8 <>'External Sales') or (ct.org_id=106 and ot.attribute8 is null))or (ct.org_id<>106))
and (((ct.org_id=110 and ot.attribute8 <>'External Sales') or (ct.org_id=110 and ot.attribute8 is null))or (ct.org_id<>110))
and (((ct.org_id=111 and ot.attribute8 <>'External Sales') or (ct.org_id=111 and ot.attribute8 is null))or (ct.org_id<>111))

为什么要写的这样麻烦,原因就是 ot.attribute 可能有null的值,但是这样的记录还不能丢弃!

但是同事帮我调试的时候优化了一代码:

 查看全文
moonsoft 发表于:2006.07.20 23:46 ::分类: ( 分销 , Oracle基础 ) ::阅读:(823次) :: 评论 (0)
===========================================================
===========================================================

数据库之间的链接建立在DATABASE LINK上。要创建一个DB LINK,必须先在每个数据库服务器上设置链接字符串。

DB LINK 连接正常后建立同义词(多个)不能正常查询出记录

 查看全文
moonsoft 发表于:2006.06.23 15:55 ::分类: ( Oracle基础 ) ::阅读:(8847次) :: 评论 (2)
===========================================================
===========================================================

step 1:download forms(*.fmb)

step 2:download *.pll

step 3: set forms90_path in regedit

此外还要把载入forms builder 里面的提示缺的*.fmb 放到和*.pll同一个文件夹

 查看全文
moonsoft 发表于:2006.05.26 17:16 ::分类: ( Oracle基础 ) ::阅读:(661次) :: 评论 (1)
===========================================================
===========================================================

11i安装好后(11.5.9),默认设置下 PS输出凡是中文的都是乱码

针对Oracle ERP Postscript 文件输出乱码问题.

几年前就给教过别人pagemaker,有postscript 这个文件/打印方面的东西,可惜那时候没有打印机印刷设备,只靠字面的理解

 查看全文
moonsoft 发表于:2006.05.24 15:18 ::分类: ( Oracle基础 ) ::阅读:(1304次) :: 评论 (1)
===========================================================
===========================================================
我的目的是验证一个数据块里的一个item, 如果不合法,那么在状态栏上提示并以红色警示.写法是:
在program Unit 里面建立了一个procedure.
语句如下:
PROCEDURE CHECK_DEPTNO IS
BEGIN
declare
CURSOR a is select deptno from dept where deptno=:emp.deptno;
a_var a%rowtype;
begin
Open a;
fetch a into a_var;
if a%notfound then
bell;
message('the deptno you have entered , does not exit , please check it!');
set_item_property('emp.deptno',current_record, visual_attribute, 'error_line_va');
raise form_trigger_failure;
end if;

end;
END;


接着,我在form级别触发里写了pre-insert & pre_update 触发
语句是:

CHECK_DEPTNO ;
也就是调用我在program unit 里面写的函数.
可是结果却有窗口弹出来,我原先练习的时候是没有的!
大家指惑,多谢!
 查看全文
moonsoft 发表于:2006.05.24 15:15 ::分类: ( Oracle基础 ) ::阅读:(562次) :: 评论 (0)
===========================================================
===========================================================
如果在When_New_form_Instance中,有设定Go_Block,则首先显示该BLOCK对应的WINDOWS。
如果没有设定,则首先显示FORM BUILDER对象浏览器中,数据块列表最上方的那个BLOCK对应的WINDOW.
 查看全文
moonsoft 发表于:2006.05.24 15:13 ::分类: ( Oracle基础 ) ::阅读:(361次) :: 评论 (0)
===========================================================
===========================================================
Forms builder:关于属性选择再重新选择默认值的问题 查看全文
moonsoft 发表于:2006.05.24 15:11 ::分类: ( Oracle基础 ) ::阅读:(314次) :: 评论 (0)
===========================================================
===========================================================
select rownum
from ...
where..
order by rownum

如果不分组的话,选出来的东西肯定是正确的,可是如果一旦分组, 第一个分组的每条记录的序列号和第二个分组的记录序列号乱起来,比如
第一个分组显示的记录是
1
2
3
6--4,5 记录为第2个分组的数据

然后在第2个分组里显示
4
5

能不能做到
分组1显示记录
1
2
3
4

分组2显示
1
2

好像很难实现吗
 查看全文
moonsoft 发表于:2006.05.24 15:05 ::分类: ( Oracle基础 ) ::阅读:(487次) :: 评论 (0)
===========================================================
===========================================================
现在汇总实现了第一页汇总第一页数据
第二页汇总一 二页数据汇总
第三页汇总 一 二 三页数据汇总
而第四页才显示的四正确数据的汇总

我想让报表在前三页不显示,该怎么做呢

用lastpage 属性不管用啊!
 查看全文
moonsoft 发表于:2006.05.24 15:03 ::分类: ( Oracle基础 ) ::阅读:(415次) :: 评论 (2)
===========================================================
===========================================================
pl/sql 语句
SELECT fc.cate_no, fd.department_no, fd.department_name, fc.cate_name,
fadep.yymm, SUM (fdh.getcost), SUM (fdh.fixamt), SUM (fdh.rcost),
SUM (fdh.depcost), SUM (fdh.depmon), SUM (fdh.deptot),
SUM (fdh.getcost + fdh.fixamt - fdh.deptot) sum_fdh
FROM fams_document_heads fdh,
fa_cate fc,
fams_department fd,
fa_depreciation fadep
WHERE fc.cate_no = fdh.mainid
AND fdh.ndepid = fd.department_no
AND fdh.newid = fadep.newid
AND fc.cate_no >= NVL (:p_fromcate, fc.cate_no)
AND fc.cate_no <= NVL (:p_tocate, fc.cate_no)
AND fd.department_no >= NVL (:p_fromdep, fd.department_no)
AND fd.department_no <= NVL (:p_todep, fd.department_no)
GROUP BY fc.cate_no,
fc.cate_name,
fadep.yymm,
fd.department_no,
fd.department_name
ORDER BY fc.cate_no

by the way , 如果先写order by ,后写group by 不可以吗 查看全文
moonsoft 发表于:2006.05.24 15:01 ::分类: ( Oracle基础 ) ::阅读:(492次) :: 评论 (0)
===========================================================
===========================================================
一个报表有多个部门/日期/类别多个查询条件,可以
1.不加任何条件(默认)进行查询
2.只针对部门(日期,类别)的某一个条件进行查询
3.针对其中两个或两个以上条件进行查询.

我开始想要针对每种查询都写一段sql语句,当然这样最简单
可是要求非要写一个sql语句!
 查看全文
moonsoft 发表于:2006.05.24 14:56 ::分类: ( Oracle基础 ) ::阅读:(448次) :: 评论 (0)
===========================================================
===========================================================

1.create report

reports builder 里面开发(修改)报表,然后保存为*.rdf文件.

2.ftp to $ORACLE_HOME/applmgr/prod/moudle_name/report/

注意路径,推荐使用cute-ftp

3.create Executable in System administrator

Path: (system_administrator)-concurrent-program-executable

4.define report in Define

Path: (system_administrator)-concurrent-program-define

 查看全文
moonsoft 发表于:2006.05.24 13:03 ::分类: ( Oracle基础 ) ::阅读:(485次) :: 评论 (0)
===========================================================
===========================================================