关于从基于Mult-Org的视图中查询数据的问题(转)
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
关于从基于Mult-Org的视图中查询数据的问题(转)相关推荐
- pandas基于条件判断更新dataframe中所有数据列数值内容的值(Conditionally updating all values in pandas Dataframe )
pandas基于条件判断更新dataframe中所有数据列数值内容的值(Conditionally updating all values in pandas Dataframe ) 目录
- pandas基于条件判断更新dataframe中特定数据列数值内容的值(Conditionally updating values in specific pandas Dataframe )
pandas基于条件判断更新dataframe中特定数据列数值内容的值(Conditionally updating values in specific pandas Dataframe ) 目录
- 如何在使用ASPMVC4的分部视图中获取数据展示
如何在使用ASPMVC4的分部视图中获取数据展示 在ASPMVC4中,创建的网站项目会用到分部视图,通过@Html.Partial("视图名")来加载到页面上: 但是如何把数据附加 ...
- 01219 oracle,ORA-01219: 数据库或可插入数据库未打开: 仅允许在固定表或视图中查询 oracle...
一周没用过oracle,打开数据库的时候报错: 执行请求的操作时遇到错误: ORA-01219: 数据库或可插入数据库未打开: 仅允许在固定表或视图中查询 01219. 00000 - "d ...
- sql server中如何修改视图中的数据?
原文地址::https://www.cnblogs.com/xielong/p/10516975.html 相关文章 1.MYSQL 视图的不可以更改数据----https://blog.csdn.n ...
- mysql视图中可以删除数据吗_sql問題 删除视图中的数据,表中的数据会删除吗?
如果你那个视图,是 单表的, 没写 触发器的. 那么 如果 删除视图中的数据 成功了,那么 表中的数据 就被删除了. 如果那个视图, 写了个 INSTEAD OF 触发器. 但是里面没有任何删除的动作 ...
- flask查询mysql数据展示_flask再学习-思考之怎么从数据库中查询数据在页面展示!...
看别人视频觉得很简单,要自己做蒙蔽了!这样子.NO! 1. 流程: 首先要有和数据库连接的驱动!一般有PYMySQL mysqlclient 等 使用扩展Flask-SQLAlchemy 获得orm对 ...
- mysql从一个表查出写入另一个表_sql语句 怎么从一张表中查询数据插入到另一张表中...
展开全部 sql语句从一张表中查询数据插入到另一张表中的方法如下:e68a843231313335323631343130323136353331333365653762 1.select * int ...
- Excel中使用VLOOKUP在多个sheet表中查询数据的公式
需求 原始数据较多,甚至超过了一个sheet的行容量,不得不把数据折行到第二个sheet,甚至第三个sheet表中.这样,在另外一个sheet表中的VLOOKUP查询就需要把查询范围设置为多个shee ...
最新文章
- jzoj6001. 【PKUWC2019模拟2019.1.15】Mines (tarjan)
- 仔细学习CSS(二)
- 6、Power Query-SQL与PQ技术的强强联合
- 1032:大象喝水查
- jquery调用asp.net 页面后台的实现代码
- 摘抄自知乎的redis相关
- Serializer字段和选项
- Cognitive Security的异常检测技术
- Nexus 安装 使用说明
- 微信公众号关闭iOS端虚拟支付业务;苹果「Apple 登录」存安全漏洞;谷歌推迟发布Android 11 Beta| 极客头条...
- springmvc和json整合配置方法
- 电影推荐之《白鹿原》 隐私策略(Privacy policy)
- 华为USG6000V防火墙简单配置案例
- 3.3V的稳压管,结果电压变成了2.5V
- pitfall override private method
- LPC1768 SSP0驱动示例——SD卡驱动
- 搜片神器 之DHT网络爬虫的代码实现方法
- 三硝基溴硼亚酞菁(BTNSubPc)齐岳生物介绍酞菁溶解度,定制多种酞菁材料
- bootstrap table合并单元格mergeCell
- 想提高网店转化率,试想你走进买家心里了吗?