关于从基于Mult-Org的视图中查询数据的问题(转)

. Report 视图中的数据

    fnd_global.APPS_Initialize( user_id=>3070,

resp_id=>50650,

resp_appl_id =>20003);

end;

Oracle

定义Cocurrent Programfnd_client_info.set_org_context(to_char(x_org_id));

查询得到基于Muti-Org1begin

dbms_application_info.set_client_info(:org_id);-

end;

2Declare

x_org_id number;

begin

Fnd_profile.GET('ORG_ID',x_org_id);

fnd_client_info.set_org_context(x_org_id);

end;

3begin

fnd_client_info.setup.client_info(application_id   => 1,

                   responsibility_id  => 2,

                   user_id in number => 3,

                   security_group_id => 4);

end;

4.

   begin

    fnd_global.APPS_Initialize( user_id=>3070,

resp_id=>50650,

resp_appl_id =>20003);

end;

环境环境变量,我一般用2

fnd_globalFnd_profile,可以得到获取许多其他profile或者环境变量的方法,比如:

fnd_profile.value('GL_SET_OF_BKS_ID') from dual

fnd_profile.value('SO_ORGANIZATION_ID') from dual;

fnd_profile.value('ORG_ID');

fnd_profile.value('MFG_ORGANIZATION_ID')

FND_PROFILE.VALUE('USER_ID');

FND_PROFILE.VALUE('login_ID');

FND_PROFILE.VALUE('USERNAME');

FND_PROFILE.VALUE('CONCURRENT_REQUEST_ID');

FND_PROFILE.VALUE('RESP_APPL_ID');

FND_PROFILE.VALUE('APPL_SHRT_NAME');



Form. $PROFILE$ 

Form. $PROFILE$

FND_GLOBAL.USER_ID

FND_Global.User_Name

USERNAME              

Your user’s current Oracle Application Object Library username.

USER_ID

Your user’s current Oracle Application Object Library user ID.

RESP_ID

Your user’s current responsibility ID.

APPL_SHRT_NAME

The short name of the application connected to your user’s current responsibility.

RESP_APPL_ID

The application ID of the application connected to your user’s current responsibility.

FORM_NAME

The name of the current form. Not available for concurrent programs.

FORM_ID

The form. ID of the current form. Not available for concurrent programs.

FORM_APPL_NAME

The name of the application for which the current form. is registered. Not available for concurrent programs.

FORM_APPL_ID

The application ID of the application for which the current form. is registered. Not available for concurrent programs.

LOGON_DATE

Your user’s logon date for the current session.

LAST_LOGON_DATE

Your user’s logon date for the previous session.

LOGIN_ID

Your user’s Sign–On Audit login ID in Oracle Application Object Library.

CONC_REQUEST_ID

instance of your running current program. You can only use this profile option in a concurrent program. You use this profile option to fill the REQUEST_ID Who column.

CONC_PROGRAM_ID

The program ID associated with a running current program. You can only use this profile option in a concurrent program. You use this profile option to fill the PROGRAM_ID Who column.

CONC_PROGRAM_APPLICATION_ID

The application ID associated with a running current program. You can only use this profile option in a concurrent program. You use this profile option to fill the PROGRAM_APPLICATION_ID Who column.

CONC_LOGIN_ID

The login ID associated with a running concurrent program. You can only use this profile option in a concurrent program. You can use this profile option to fill the LAST_UPDATE_LOGIN Who column.

CONC_PRINT_OUTPUT

The value Yes or No that you enter in the Print Output field when you register a concurrentprogram. You can use the routine afpoput() fromyour concurrent programs to change the value ofthis profile option for a particular instance of yourrunning concurrent program. This profile optiondetermines whether the concurrent managers printthe concurrent program’s output to the printer.

CONC_PRINT_STYLE

The print style. of your concurrent program’soutput that you enter in the Print Style. field whenyou register a concurrent program. You can usethe routine afpoput() from your concurrentprograms to change the value of this profile option

开发中经常需要获取的mfg_org_id系统并不会给给变量赋值,直到执行Change OranizationForm trigger

OU信息

ORG_ORGANIZATION _DEFINITIONS

OE_SYS_PARAMETERS_V

MASTER_ORGANIZATION_ID

 

 

 

 

 

 

 

 

 

FND_GLOBAL.USER_ID

FND_Global.User_Name

USERNAME              

Your user’s current Oracle Application Object Library username.

USER_ID

Your user’s current Oracle Application Object Library user ID.

RESP_ID

Your user’s current responsibility ID.

APPL_SHRT_NAME

The short name of the application connected to your user’s current responsibility.

RESP_APPL_ID

The application ID of the application connected to your user’s current responsibility.

FORM_NAME

The name of the current form. Not available for concurrent programs.

FORM_ID

The form. ID of the current form. Not available for concurrent programs.

FORM_APPL_NAME

The name of the application for which the current form. is registered. Not available for concurrent programs.

FORM_APPL_ID

The application ID of the application for which the current form. is registered. Not available for concurrent programs.

LOGON_DATE

Your user’s logon date for the current session.

LAST_LOGON_DATE

Your user’s logon date for the previous session.

LOGIN_ID

Your user’s Sign–On Audit login ID in Oracle Application Object Library.

CONC_REQUEST_ID

instance of your running current program. You can only use this profile option in a concurrent program. You use this profile option to fill the REQUEST_ID Who column.

CONC_PROGRAM_ID

The program ID associated with a running current program. You can only use this profile option in a concurrent program. You use this profile option to fill the PROGRAM_ID Who column.

CONC_PROGRAM_APPLICATION_ID

The application ID associated with a running current program. You can only use this profile option in a concurrent program. You use this profile option to fill the PROGRAM_APPLICATION_ID Who column.

CONC_LOGIN_ID

The login ID associated with a running concurrent program. You can only use this profile option in a concurrent program. You can use this profile option to fill the LAST_UPDATE_LOGIN Who column.

CONC_PRINT_OUTPUT

The value Yes or No that you enter in the Print Output field when you register a concurrentprogram. You can use the routine afpoput() fromyour concurrent programs to change the value ofthis profile option for a particular instance of yourrunning concurrent program. This profile optiondetermines whether the concurrent managers printthe concurrent program’s output to the printer.

CONC_PRINT_STYLE

The print style. of your concurrent program’soutput that you enter in the Print Style. field whenyou register a concurrent program. You can usethe routine afpoput() from your concurrentprograms to change the value of this profile option

开发中经常需要获取的mfg_org_id系统并不会给给变量赋值,直到执行Change OranizationForm trigger

OU信息

ORG_ORGANIZATION _DEFINITIONS

OE_SYS_PARAMETERS_V

MASTER_ORGANIZATION_ID

 

 

 

 

 

 

 

 


### 回答1: TransformerMulti-Head Attention是一种注意力机制,它通过对输入的查询、键和值进行多个线性变换,然后将结果传入Scaled Dot-Product Attention,最终将多个Attention的结果拼接在一起,再通过线性变换得到最终的输出结果。 具体来说,Multi-Head Attention包括三个线性变换,分别是查询、键和值的变换。假设输入的查询向量、键向量和值向量分别为$Q, K, V \in R^{d_{model}}$,Multi-Head Attention的计算可以表示为: $$ \begin{aligned} \text{MultiHead}(Q,K,V) &= \text{Concat}(head_1, head_2, ..., head_h)W^O\\ \text{head}_i &= \text{Attention}(QW^Q_i, KW^K_i, VW^V_i) \end{aligned} $$ 其,$W^Q_i, W^K_i, W^V_i \in R^{d_{model} \times d_k}$是参数矩阵,$d_k$表示每个头部的维度。$\text{Attention}$表示Scaled Dot-Product Attention,它对输入的查询、键和值进行计算,得到Attention的输出。$\text{Concat}$表示将多个头部的结果拼接在一起,$W^O \in R^{hd_v \times d_{model}}$是参数矩阵,$d_v$表示拼接后的向量维度。 通过使用多个头部,Multi-Head Attention可以在不同的子空间学习到不同的注意力权重,从而更好地捕获输入序列的信息。它在Transformer的应用是非常重要的,可以帮助模型更好地处理长序列数据。 ### 回答2: Transformer的多头注意力机制(multi-head attention)是一种用于处理序列数据的关键组件。它被广泛应用于自然语言处理领域,能够有效地捕捉输入序列的全局依赖关系。 多头注意力机制由多个独立的注意力头组成,每个头都有自己的查询(Q)、键(K)和值(V)矩阵。这些矩阵通过线性变换得到,并通过点积注意力机制计算注意力权重。最终,多头注意力将每个头的注意力权重加权平均,并通过线性变换将其映射回原始表示空间。 通过使用多个头,模型可以同时学习不同的注意力表示。这使得模型能够对不同位置的输入序列部分进行多角度的关注,并捕捉到不同特征的相互作用。这种能力有助于提高模型的表现力,并有效地减少了输入序列长度对性能的影响。 在每个注意力头,Q、K和V矩阵的计算是并行进行的,从而提高了计算效率。然后,通过对注意力权重进行加权平均,多头注意力能够融合多个头的表示,增强了模型的表达能力。 通过引入多头注意力机制,Transformer模型能够建模长距离的依赖关系,从而在许多自然语言处理任务取得了显著的突破。同时,多头注意力机制的并行计算也使得Transformer能够适应大规模数据,提高了训练效率和模型的泛化能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

知了学飞

随意打赏,超额打赏邀请进铁杆群

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值