Oracle API Profile 的应用

在Oracle中,用户相关配置信息都可以通过FND_PROFILE 包和FNDSQF 库获取,这个API可以有以下两个应用:

  1.获取当前运行环境中用户的相关配置文件的值;

  2.可以在当前运行环境下对用户的相关配置进行设置。

我们可以通过调用这个API中的各种object来获取我们想要的东西。

1. put用于指定持定user的相关配置信息:

begin
  fnd_profile.put(‘PROFILE_NAME‘, ‘New_Value‘);end;

2.get获取profile值:

declare
  profile_name varchar2(100);
begin
  fnd_profile.get(‘PROFILENAME‘, profile_name);
end;

3.value获取profile值:

select fnd_profile.value(‘GL_SET_OF_BKS_ID‘) from dual;

4.常用的user配置文件名称:

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

时间: 2024-12-11 08:25:13

Oracle API Profile 的应用的相关文章

ORACLE用户PROFILE详解

ORACLE用户PROFILE详解   一.官网说明 Oraclerecommends that you use the Database Resource Manager rather than the SQLstatement to establish resource limits. The Database Resource Manager offers amore flexible means of managing and tracking resource use. Purpose

Oracle Create Profile

一.目的: Oracle系统中的profile可以用来对用户所能使用的数据库资源进行限制,使用Create Profile命令创建一个Profile,用它来实现对数据库资源的限制使用,如果把该profile分配给用户,则该用户所能使用的数据库资源都在该profile的限制之内. 二.条件: 创建profile必须要有CREATE PROFILE的系统权限. 为用户指定资源限制,必须: 1.动态地使用alter system或使用初始化参数resource_limit使资源限制生效.该改变对密码资

Oracle API Gateway连接WebService服务,攻击保护

1.启动和连接OAG OAG连接的时候除了不选择analysis,其他都选上,然后启动Gateway实例以及Nodemanager. 命令如下: /$OAG_HOME/apigateway/posix/bin/startinstance -n "Gateway1" -g "Group1" ./nodemanager 输出是: 启动policystudio $OAG_HOME/oagpolicystudio/oagpolicystudio,并且连接到server 输入

ORACLE profile含义,修改,新增

profiles文件是口令和资源限制的配置集合,包括CPU的时间.I/O的使用.空闲时间.连接时间.并发会话数量.密码策略等对于资源的使用profile可以做到控制会话级别或语句调用级别.oracle自带的默认好多是不限制的,用户创建时都会被指定这个PROFILE. oracle的profile可以在dba_profiles中查询. select * from dba_profiles; 结果如下: 其中资源类(RESOURCE_TYPE=KERNEL)含义说明: --1.Session_per

Oracle限制某个用户的连接数及PROFILE介绍

限制一个用户的链接数,可以通过ORACLE的PROFILE文件来实现 1.     查看resource_limit参数: SQL> show parameter resource_limit 如果为FALSE,设置 RESOURCE_LIMIT参数为TRUE,即开启资源限制: alter system set resource_limit =TRUE; 该改变对密码资源无效,密码资源总是可用的 2.     创建PROFILE : SQL>create  profile sess limit

oracle profile含义、修改、新增

profiles文件是口令和资源限制的配置集合,包括CPU的时间.I/O的使用.空闲时间.连接时间.并发会话数量.密码策略等对于资源的使用profile可以做到控制会话级别或语句调用级别.oracle自带的默认好多是不限制的,用户创建时都会被指定这个PROFILE. oracle的profile可以在dba_profiles中查询. select * from dba_profiles; 结果如下: 其中资源类(RESOURCE_TYPE=KERNEL)含义说明: --1.session_per

HP-UX oracle RAC 双机实践 (转载)

一.软硬件配置检查 1.检查内存#/usr/contrib/bin/machinfoCPU info:  4 Intel(R) Itanium 2 9100 series processors (1.59 GHz, 18 MB)          532 MT/s bus, CPU version A1          8 logical processors (2 per socket) Memory: 32737 MB (31.97 GB) Firmware info:   Firmwar

Oracle 客户端安装

Oracle 客户端的安装方式一种有两种: 1.Oracle标准客户端   点击下载 这是Oracle提供的标准版11r2的客户端 2.Oracle Database Instant Client(即时客户端)  点击下载 程序包说明 Instant Client 程序包 描述 说明 Basic 运行 OCI.OCCI 和 JDBC-OCI 应用程序所需的所有文件 OCI OCCI JDBC Basic Lite Basic 的精简版本,其中仅包含英文错误消息和 Unicode.ASCII 以及

ORACLE LINUX 6.3 + ORACLE 11.2.0.3 RAC + VBOX安装文档

ORACLE LINUX 6.3 + ORACLE 11.2.0.3 RAC + VBOX安装文档 2015-10-21 12:51 525人阅读 评论(0) 收藏 举报  分类: Oracle RAC 版权声明:本文为博主原创文章,未经博主允许不得转载. VBOX + Oracle Linux 6U3 + ORACLE 11.2.0.3.0 RAC 安装 环境: 虚拟机          VIRTUAL BOX OS                ORACLE LINUX 6.3_X86_64