Properties fiel in PLSQL????

Hello All,
I am developing a PLSQL stored procedure in Oracle 11g. The requirement is all the constant values must be configurable in future. Usually we will use parameters in this case. But im thinking in a different way, since some other Vendor is going to trigger this SP.
Can we have a file like properties file in Java and get the values from this file. We are also developing some java components, so defenetly we will have properties file in the server.
Thanks for you suggestions.
KB.

Kannan B wrote:
I am developing a PLSQL stored procedure in Oracle 11g. The requirement is all the constant values must be configurable in future. Usually we will use parameters in this case. But im thinking in a different way, since some other Vendor is going to trigger this SP.
Can we have a file like properties file in Java and get the values from this file. We are also developing some java components, so defenetly we will have properties file in the server.Two basic approaches. In C/C++ fashion, create a "header/library" file that contains the parameters. This can be done as a PL/SQL package header. (only need to define the header - the package can be bodiless):
create or replace package Parameters as
  --// Unix date
  UNIX_DATE constant date := to_date( '1970/01/01', 'yyyy/mm/dd' );
  --// etc..
end;Each session that refers to this package, will load the package into session memory. Thus the parameters are the same in each (same package header), but not shared. For example, should you define a variable (as oppose to a constant) in the package, a session can change the value. That change will be local within that session only. (i.e. the data segment of the package is local per session)
The 2nd method is using an Oracle table. In this case normal ACID rules and concurrency applies. You can also provide a PL/SQL function wrapper. E.g.
create table parameters(
  param_name varchar2(30) primary key,
  param_value varchar2(100)
) organization index;
create or replace function GetParameter( paramName varchar2 ) return varchar2 is
  paramVal parameters.param_value%Type;
begin
  select
    p.param_value into paramVal
  from parameters p
  where p.param_name = paramName;
  return( paramVal );
end;

Similar Messages

  • Where to place ResourceBundle properties files

    I have written a servlet that will serve content in different languages
    depending on the user's browser settings.
    The problem is my servlet cannot find the resource bundle properties fiel
    even though I put it in the server classes directories.
    Namely:
    /weblogic/myserver/servletsclasses
    /weblogic/classes
    /weblogic/myserver/serverclasses
    Can anybody tell me where to put my resource bundle properties files??
    regards
    EM

    "Ee-Ming" == Ee-Ming Toh <[email protected]> writes:
    Ee-Ming> I have written a servlet that will serve content in different languages
    Ee-Ming> depending on the user's browser settings.
    Ee-Ming> The problem is my servlet cannot find the resource bundle properties fiel
    Ee-Ming> even though I put it in the server classes directories.
    Ee-Ming> Namely:
    Ee-Ming> /weblogic/myserver/servletsclasses
    Ee-Ming> /weblogic/classes
    Ee-Ming> /weblogic/myserver/serverclasses
    Ee-Ming> Can anybody tell me where to put my resource bundle properties files??
    First of all, it would be useful if we knew what version of WebLogic you're
    using. There's considerable differences between versions.
    In general, if you have a standard WAR structure, you're better off putting
    properties files in the "WEB-INF/classes" directory of your WAR structure. If
    you do that, you have a chance of being able to redeploy the changed properties
    files without having to restart the server.
    ===================================================================
    David M. Karr ; Java/J2EE/XML/Unix/C++
    [email protected] ; SCJP; SCWCD

  • URGENT:error while deploying a process flow

    EMP_COUNT is a mapping which i have deployed .
    when i try to deploy a process flow i get the following error:
    OMB05602: An unknown Deployment error has occured for Object Type API8028: No signature is available for mapping EMP_COUNT because the generation language is undefined. Please set the generation language property of this mapping, or generate this mapping to set the generation language property to a default value..
    thnx in advance

    OMB+> OMBALTER MAPPING 'EMP_COUNT' SET PROPERTIES (GENERATION_LANGUAGE) VALUES ('PLSQL')
    Fast enough? ;-)
    Regards,
    Detlef

  • Help with apex to ebusiness suite 11.5.10

    Hello,
    posted on ebusiness suite side, but they say to try here on apex side.
    We are trying to follow the Cabot document found at
    http://www.stuffspec.com/Read/_sp.d3d3Lm9yYWNsZS5jb20-sp..sltechnetwork.sl_developer-tools.sl_apex.sl_apex-ebs-wp-cabot-consulting-169064.pdf
    but are having troubles just trying to get the ebusiness set up part done.
    We are having troubles on page 5 of 8 where it talks about creating the plsql form function with the following attributes.
    When we set the Properties/Type to be SSWA plsql function, it does not want to accept it and will not save as SSWA plsql function.
    I have searched and read and followed so many links my head is spining. Has anyone else had this type of issue, and could tell us what we are doing wrong? Does the Cabot approach work for everyone, or is there another method that will work better?
    We are using a stand alone apex server. We have a 11.5.10.2 e-bus suite which we use SSO for the hrSelfService. We are trying to add the new apex application to the hrselfservice menu. I following the Cabot white paper and I have created the procedure apex_launch as follows. I have some questions about it that are inline:
    PROCEDURE APPS.apex_launch (
    application IN NUMBER
    , page IN NUMBER DEFAULT 1
    , request IN VARCHAR2 DEFAULT NULL
    , item_names IN VARCHAR2 DEFAULT NULL
    , item_values IN VARCHAR2 DEFAULT NULL)
    Is
    Begin
    OWA_UTIL.mime_header('text/html', false); ---- Is the url correct? Since my apex server is separate, do I need the APPS_FRAMEWORK_AGENT???
    OWA_UTIL.redirect_url( ---- Do i need to create a DAD for pls/apex?
    'https://ourserver.school.edu/pls/apex/f?p='||
    application||':'||page||'::'||request||':::'||
    item_names||':'||item_values);
    End apex_launch;
    I created the form function with the following attributes:
    Properties/Type -> SSWA plsql function
    Web HTML/HTML Call -> apex_launch
    Form/Parameter -> application=310
    I am able to save the plsql form function with no errors. However, when i go back in to look at the form function: property type, it is set to "database provider portlet". (I have opened an SR on this issue and as yet, i don't have a solution.)
    I then add the new form function to the hr self service menu. When I go into self service, the new function does not display.
    If I change the property to SSWA plsql function that opens a new window (Kiosk mode) and save the form function and don't change anything else, when I go into self service the new function displays. However ,when I click on it, it opens another e-bus suite logon page. After entering the username/password it just brings up the ebus suite application, not the apex application.
    Can anybody help me? thanks.
    Thank you,
    Mark

    Hi Mark,
    Nope, that is the one of the issue im facing still that is the single sign on(even if i integrated APEX with EBS R12), im having issues with that.
    It is asking two login credentials for me
    <li>one is Ebs login credentials
    <li>The other one is Apex Login credentials.
    Soon after logging into the ebs, if i clicked the APEX menu means, the APEX login page is appearing.
    If it is SSO means, the APEX login page should not appear soon after clicking the APEX menu in the EBS.
    How to pass my APEX login credentials to the EBS, so that i can enter into my APEX application (via) EBS only with the EBS login page. Soon after entering into the EBS login page into the application. While if i clicked the APEX menu means, i need to navigate directly to the APEX Application page. And APEX login page should not appear.
    Thanks
    Regards,
    Mini

  • Error while opening AME Approval Function

    Hi All
    I am trying to open the AME "Approvals" Function in R12 Vision Instance and I am getting the following Error.
    The requested URL /pls/VIS/OracleSSWA.Execute was not found on this server.
    Seeded approval functionality for iRec is working fine.
    I am logging in with a vision instance user only with a seeded responsibility "FED AME Application Administrator".
    I checked the function details but could not make out any thing. Here are the function details
    Function: AME_WEB_APPROVALS
    User Function Name: Approvals Management
    Properties:
    Type: SSWA plsql function that opens a new window (Kiosk Mode)
    Maintenance Support Mode: None
    Context Dependence: Responsibility
    Web HTML
    HTML Call: ame_rules_ui.listRulesForm1
    Web Host:
    Encrypt Parameters: Checked
    Have you got any of these issues.
    Thanks
    Gaurav

    In R12 old AME functionality will not work. Old AME pages as in 11.5.10, AME.A are built using mod PL/SQL. But in R12 mod PL/SQL is not supported. In R12 all the AME pages are build using OA Framework now and using RBAC mechanism for assigning responsibilities.
    For setting up AME Rules in R12 one can follow the following note
    Approvals Management Responsibilities and Setups in AME.B
    https://metalink.oracle.com/metalink/plsql/showdoc?db=NOT&id=434567.1&blackframe=1
    Following are the error you might get while opening the AME Approval function from old responsibility.
    1.
    The requested URL /pls/VIS/OracleSSWA.Execute was not found on this server.
    OR
    2.
    Can not access function AME_WEB_APPROVALS. This installation does not manage mode pl/sql. Please contact your System Administrator.
    Regards
    Gaurav

  • URGENT: Oracle Workflow Error: API-10020 on Creation of OWB Process Flows

    I am trying to use Oracle Workflow to create Process Flows, in order to link together various mappings and components in Oracle Warehouse Builder. However, in the process flow editor window when I attempt to drag an object such as a mapping onto the editor panel, I get an error message stating the below:
    API-10020: Unable to determine if the map is a PLSQL or SQLLDR map, please correct the map or choose another map.
    All my maps are in PLSQL, and the language setting is set to this. I have tried modifying the langauge settings to see if it makes a difference but with no luck. My colleague believes this is a known bug in Oracle Workflow and there is a patch available to correct it.
    Can anyone help with this query please? Thank you for your time.

    In some versions of OWB (10.1, 10.2) The mapping property will display PL/SQL, but will actually be set to NULL in the repository (which will cause PL/SQL to be displayed as default).
    The fix is easy enough: in the developer navigator, right-click on the mapping and go to configure and set the generation language first to something other then PL/SQL (you should get an error) and then place it back to PL/SQL. This should force the GUI to reset the parameter.
    Alternatively, use OMB*Plus:
    OMBALTER MAPPING 'MAPPINGNAME' SET PROPERTIES \
    (GENERATION_LANGUAGE) VALUES ('PLSQL');
    Good Luck,
    Robbert

  • Mapping with both source and destination as flat files???

    hi I have two two flat files(large data) for example A and B.
    let us say
    A has records of format( characteres of size(5) , numbers of size(6) , characteres of size(5) )
    B has records of format( characteres of size(5) , numbers of size(6) )
    i have to map these flat files so that rocords with numbers in both files should be added where the records of characters in both files are same) and output a flat file C .
    i.e
    A(aaaaa111111bbbbb222222ccccc111111
    bbbbb111111fffff666666ddddd333333)
    B (aaaaa222222)
    output should be(aaaaa333333)
    i have created the flat file module and could able to sample A and B .
    I have also created an external table based on A and B.but the data is not been showed ih the external table.How to map this.
    Pls guide me.
    srry for being long here.
    Thanks 4 ur time.

    Sounds like your datatypes/settings are incorrect.
    To process a file (let's call it stuff.txt) with fixed length records such as the following...
    aaaaa111111bbbbb222222ccccc111111bbbbb111111fffff666666ddddd
    Here is an example tcl script. There are some variables you have to setup for the flat file module, the oracle module, the File location and project name all of which should exist before running. It will create the flat file, external table, a simple mapping from external table to flat file defined by tcl variable target_file (in same directory as the LOC_SRC_FILES, you can change this..its just for demo purposes and will write a comma separated file). Hopefully this will get you up and going with your problem...
    # Create the modules etc and set the values below, then run
    set project MY_PROJECT
    set ff_module FF
    set ff_location LOC_SRC_FILES
    set ora_module MM
    set target_file my_target_file
    OMBCC '/$OMB_CURRENT_PROJECT'
    OMBDCC
    OMBCC '$ff_module'
    OMBCREATE FLAT_FILE 'FSTUFF' SET PROPERTIES (DATA_FILE_NAME,IS_DELIMITED, RECORD_LENGTH) VALUES ('stuff.txt',0, '16') ADD RECORD 'FSTUFF'
    OMBALTER FLAT_FILE 'FSTUFF' MODIFY RECORD 'FSTUFF' ADD FIELD 'FIELDA' SET PROPERTIES (DATATYPE,START_POSITION,END_POSITION,MAXIMUM_LENGTH) VALUES ('CHAR',1,5,5)
    OMBALTER FLAT_FILE 'FSTUFF' MODIFY RECORD 'FSTUFF' ADD FIELD 'FIELDB' SET PROPERTIES (DATATYPE,START_POSITION,END_POSITION,MAXIMUM_LENGTH) VALUES ('DECIMAL EXTERNAL',6,11,6)
    OMBALTER FLAT_FILE 'FSTUFF' MODIFY RECORD 'FSTUFF' ADD FIELD 'FIELDC' SET PROPERTIES (DATATYPE,START_POSITION,END_POSITION,MAXIMUM_LENGTH) VALUES ('CHAR',12,16,5)
    OMBCC '../$ora_module'
    OMBCREATE EXTERNAL_TABLE 'FSTUFF_EXT' SET PROPERTIES(LOAD_NULLS_WHEN_MISSING_VALUES,TRIM) VALUES (1, 'RIGHT') SET REFERENCE RECORD 'FSTUFF' OF FLAT_FILE '../$ff_module/FSTUFF' DEFAULT_LOCATION '$ff_location'
    OMBCREATE MAPPING 'FILE_TO_FILE'
    OMBALTER MAPPING 'FILE_TO_FILE' ADD EXTERNAL_TABLE OPERATOR 'SOURCE_STUFF' BOUND TO EXTERNAL_TABLE 'FSTUFF_EXT'
    OMBALTER MAPPING 'FILE_TO_FILE' ADD FLAT_FILE OPERATOR 'TARGET_FILE'
    OMBALTER MAPPING 'FILE_TO_FILE' ADD CONNECTION FROM GROUP 'OUTGRP1' OF OPERATOR 'SOURCE_STUFF' TO GROUP 'INOUTGRP1' OF OPERATOR 'TARGET_FILE'
    OMBALTER MAPPING 'FILE_TO_FILE' SET PROPERTIES (GENERATION_LANGUAGE) VALUES ('PLSQL')
    OMBALTER MAPPING 'FILE_TO_FILE' MODIFY OPERATOR 'TARGET_FILE' SET PROPERTIES (TARGET_DATA_FILE_NAME) VALUES ('$target_file')
    OMBALTER MAPPING 'FILE_TO_FILE' MODIFY OPERATOR 'TARGET_FILE' SET PROPERTIES (TARGET_DATA_FILE_LOCATION) VALUES ('$ff_location')
    You can do all this in the UI, just thought it would be useful as a script for you.
    Cheers
    David

  • One to one mapping in OMBPlus

    Hello,
    i'm looking for information how to create a mapping from one object (table) to one other object.
    thanks

    puts -nonewline stdout "Hostname : "; gets stdin Host;
    puts -nonewline stdout "Port : "; gets stdin Port;
    puts -nonewline stdout "Service : "; gets stdin Service;
    puts -nonewline stdout "Database Version (10.1, 10.2) DbVersion : "; gets stdin DbVersion;
    puts -nonewline stdout "Repository Owner : "; gets stdin ReposOwner;
    puts -nonewline stdout "Repository User : "; gets stdin ReposUser;
    puts -nonewline stdout "Repository User Password : "; gets stdin ReposUserPassw;
    puts -nonewline stdout "Ombexample1.log location (d://path) : "; gets stdin LogPath;
    set DEBUG off; ## TCL debug info off
    set OMBDEBUG off; ## OMBPLUS debug info off
    set OMBCONTINUE_ON_ERROR false; ## Continue execution of the script in case of errors
    set OMBPROMPT on; ## Shows Current Context in OMB*Plus prompt
    OMBDCC ## Display Current Context
    puts "Connecting to the Design Repository..."
    puts [OMBCONNECT $ReposUser/$ReposUserPassw@$Host:$Port:$Service USE REPOSITORY '$ReposOwner' USE SINGLE_USER_MODE]
    puts "CLEANUP OF PREVIOUS EXECUTION"
    puts "============================="
    puts "Check existance of Location OMB_TRG_LOCATION.."
    if ([lsearch -exact [OMBLIST LOCATIONS] "OMB_TRG_LOCATION"]>0) {
    puts "OMB_TRG_LOCATION found... dropping..."
    puts [OMBCC '/OMB_PROJECT1']; ## Change context to Project OMB_PROJECT1
    puts [OMBDCC]
    puts "First unregistering the Target location from the Control Centre (CC"
    puts "before dropping this Target Location..."
    puts [OMBCONNECT CONTROL_CENTER]; ## Connect to the Control Centre
    puts [OMBUNREGISTER LOCATION 'OMB_TRG_LOCATION']
    puts [OMBDROP LOCATION 'OMB_TRG_LOCATION']
    puts [OMBDISCONNECT CONTROL_CENTER]
    OMBCOMMIT
    OMBCC '/'
    puts "Check existance of Location OMB_SRC_LOCATION.."
    if ([lsearch -exact [OMBLIST LOCATIONS] "OMB_SRC_LOCATION"]>0) {
    puts "OMB_SRC_LOCATION found... dropping..."
    puts [OMBDROP LOCATION 'OMB_SRC_LOCATION']
    puts "Check existance of Project OMB_PROJECT1..."
    if ([lsearch -exact [OMBLIST PROJECTS] "OMB_PROJECT1"]>0) {
    puts "OMB_PROJECT1 found... dropping..."
    puts [OMBDROP PROJECT 'OMB_PROJECT1']
    OMBCC '/' ## Change Current Context to root
    puts [OMBCREATE PROJECT 'OMB_PROJECT1']; ## Create an empy Project
    puts [OMBCOMMIT]; ## Commit Changes
    puts [OMBCC '/OMB_PROJECT1']; ## Change Current Context to OMB_PROJECT1
    puts [OMBDCC]; ## Display the Current Context
    puts "SOURCE DEFINITION"
    puts "-----------------"
    puts "Creating Source Location..."
    puts [OMBCREATE LOCATION 'OMB_SRC_LOCATION' SET PROPERTIES(TYPE,VERSION,HOST,PORT, \
    SERVICE_NAME,CONNECT_AS_USER,SCHEMA,PASSWORD) VALUES('ORACLE_DATABASE','$DbVersion', \
    '$Host','$Port','$Service','SCOTT','SCOTT','tiger')]
    puts -nonewline "Validate location... "; puts [OMBVALIDATE LOCATION 'OMB_SRC_LOCATION']
    puts "Create Oracle Source Module, and assign Source Location..."
    puts [OMBCREATE ORACLE_MODULE 'OMB_SRC_MODULE' \
    SET PROPERTIES (DESCRIPTION) VALUES ('Source Module') \
    SET REF LOCATION 'OMB_SRC_LOCATION' \
    SET REF METADATA_LOCATION 'OMB_SRC_LOCATION']
    puts -nonewline "Validate module... "; puts [OMBVALIDATE ORACLE_MODULE 'OMB_SRC_MODULE']
    puts "Importing Metadata (SCOTT.EMP) from Database..."
    puts [OMBCREATE TRANSIENT IMPORT_ACTION_PLAN 'IMPORT_PLAN' \
    ADD ACTION 'IMPORT_ACTION' \
    SET REF SOURCE TABLE 'EMP' \
    SET REF TARGET ORACLE_MODULE 'OMB_SRC_MODULE']
    puts [OMBIMPORT FROM METADATA_LOCATION FOR IMPORT_ACTION_PLAN 'IMPORT_PLAN']
    puts ""
    puts "TARGET DEFINITION"
    puts "-----------------"
    puts "Creating Target Location..."
    puts [OMBCREATE LOCATION 'OMB_TRG_LOCATION' \
    SET PROPERTIES(TYPE,VERSION,HOST,PORT,SERVICE_NAME,CONNECT_AS_USER,SCHEMA) \
    VALUES('ORACLE_DATABASE','$DbVersion','$Host','$Port','$Service','$ReposUser','$ReposUserPassw')]
    puts -nonewline "Validate location... "; puts [OMBVALIDATE LOCATION 'OMB_TRG_LOCATION']
    puts "Create Target Module, and assign Target Location..."
    puts [OMBCREATE ORACLE_MODULE 'OMB_TARGET_MODULE' \
    SET PROPERTIES (DESCRIPTION) VALUES ('Target Module') \
    SET REF LOCATION 'OMB_TRG_LOCATION' \
    SET REF METADATA_LOCATION 'OMB_TRG_LOCATION']
    puts -nonewline "Validate module... "; puts [OMBVALIDATE ORACLE_MODULE 'OMB_TARGET_MODULE']
    puts "Create target Table EMP_TARGET in Target Module..."
    puts [OMBCC '/OMB_PROJECT1/OMB_TARGET_MODULE']
    puts [OMBCREATE TABLE 'EMP_TARGET' ADD COLUMN 'EMPNO' SET PROPERTIES(DATATYPE, PRECISION, SCALE) VALUES('NUMBER', 4, 0) ADD COLUMN 'ENAME' SET PROPERTIES(DATATYPE, LENGTH) VALUES('VARCHAR2', 10) ADD COLUMN 'JOB' SET PROPERTIES(DATATYPE, LENGTH) VALUES('VARCHAR2', 9) ADD COLUMN 'MGR' SET PROPERTIES(DATATYPE, PRECISION, SCALE) VALUES('NUMBER', 4, 0) ADD COLUMN 'HIREDATE' SET PROPERTIES(DATATYPE) VALUES('DATE') ADD COLUMN 'SAL' SET PROPERTIES(DATATYPE, PRECISION, SCALE) VALUES('NUMBER', 7, 2) ADD COLUMN 'COMM' SET PROPERTIES(DATATYPE, PRECISION, SCALE) VALUES('NUMBER', 7, 2) ADD COLUMN 'DEPTNO' SET PROPERTIES(DATATYPE, PRECISION, SCALE) VALUES('NUMBER', 2, 0)]
    puts -nonewline "Validate table... "; puts [OMBVALIDATE TABLE 'EMP_TARGET']
    puts " "
    puts "MAPPING DEFINITION"
    puts "------------------"
    puts "Create mapping..."
    puts [OMBCREATE MAPPING 'MAP1' SET PROPERTIES (GENERATION_LANGUAGE) VALUES ('PLSQL') ADD TABLE OPERATOR 'EMP' BOUND TO TABLE '/OMB_PROJECT1/OMB_SRC_MODULE/EMP' ADD TABLE OPERATOR 'EMP_TARGET' SET PROPERTIES (LOADING_TYPE) VALUES ('TRUNCATE_INSERT') BOUND TO TABLE 'EMP_TARGET' ADD CONNECTION FROM GROUP 'INOUTGRP1' OF OPERATOR 'EMP' TO GROUP 'INOUTGRP1' OF OPERATOR 'EMP_TARGET' BY POSITION]
    puts -nonewline "Validate mapping... "; puts [OMBVALIDATE MAPPING 'MAP1']
    puts "Connect to the Control Center for deployment/execution..."
    puts [OMBCONNECT CONTROL_CENTER]
    puts "Register the Target Location in the Control Center..."
    puts [OMBALTER LOCATION 'OMB_TRG_LOCATION' SET PROPERTIES (PASSWORD) VALUES ('$ReposUserPassw')]
    puts [OMBCOMMIT]
    puts [OMBREGISTER LOCATION 'OMB_TRG_LOCATION' REUSE]
    puts " "
    puts "DEPLOYMENT"
    puts "----------"
    puts "Deploying Table EMP_TARGET..."
    puts [OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'TABLE_DEPLOY_PLAN' \
    ADD ACTION 'DEPLOY_TABLE' SET PROPERTIES (OPERATION) \
    VALUES ('REPLACE') SET REFERENCE TABLE 'EMP_TARGET']
    puts [OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'TABLE_DEPLOY_PLAN']
    puts [OMBDROP DEPLOYMENT_ACTION_PLAN 'TABLE_DEPLOY_PLAN']
    puts " "
    puts "Deploying Mapping MAP1..."
    puts [OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'MAP_DEPLOY_PLAN' \
    ADD ACTION 'DEPLOY_MAP' SET PROPERTIES (OPERATION) \
    VALUES ('CREATE') SET REFERENCE MAPPING 'MAP1']
    puts [OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'MAP_DEPLOY_PLAN']
    puts [OMBDROP DEPLOYMENT_ACTION_PLAN 'MAP_DEPLOY_PLAN']
    puts " "
    puts "EXECUTION"
    puts "---------"
    puts "Execute Mapping MAP1..."
    puts [OMBSTART MAPPING 'MAP1' IN 'OMB_TRG_LOCATION']
    puts [OMBCOMMIT]
    puts "DISCONNECTING"
    puts "-------------"
    puts "Disconnect From Control Center... "
    puts [OMBDISCONNECT CONTROL_CENTER]
    puts "Disconnect From Repository..."
    puts [OMBDISCONNECT]
    puts " "
    puts "======================"
    puts "END OF OMBEXAMPLE1.TCL"
    puts "======================"

  • While trying to integrate EBS 11i and APEX getting error

    Followed white paper document of Rod West to integrate EBS 11i and APEX.
    While trying to integrate EBS 11i and APEX getting below error.
    "This function type can't be launched from forms without first logging into the E-Business Suite homepage".
    Looks like i am missing out something. Please help!

    Hi Rod,
    Thanks for the reply. Please find the details below:
    Created a function "Integrate APEX" .
    -Properties/Type – SSWA plsql function.
    - Web HTML/HTML Call – security_pkg.apex_launch
    -Form/Parameters – Left blank because created apex_launch procedure without parameters
    Attaching to the menu:
    Logged in as System Admin -->Menus-->Queried menu (SUPPORT_GUI) and added the function (Integrate APEX) to this menu..
    security.apex_launch procedure:
    ============================================
    PROCEDURE apex_launch
    AS
    BEGIN
       OWA_UTIL.mime_header ('text/html', FALSE);
       OWA_UTIL.redirect_url (
    http://servername:port/apex/f?p=appid:page::APPS:::'
    END apex_launch;
    =================================================
    Also I have web enabled this package procedure (security.apex_launch).
    When i click on "Integrate APEX" below error pops up.
    "This function type can't be launched from forms without first logging into the E-Business Suite homepage".
    Control is not going to security.apex_launch procedure at all. This i confirmed by putting log messages.
    Let me know if something to be modified.
    Thanks!

  • URGENT: error during deployment of a process flow through OMB

    I have a process flow which uses a mapping. The mapping has already been synchronized to its corresponding process flow activity.Now i again synchronize the activity with the same mapping to which it was already synchronized
    OMB+> OMBSYNCHRONIZE PROCESS_FLOW 'MAIL_TRY/RND_MAIL' ACTIVITY 'EMP_COUNT' TO MAPPING '/NEW_PROJECT2/NEW_SOURCE/EMP_COUNT' USE (SYNCHRONIZE_STRATEGY 'REPLACE
    ', MATCHING_STRATEGY 'MATCH_BY_NAME')
    Synchronize Completed
    now i create a deployment action plan and deploy the process flowand get the error as follows:
    OMB+> OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'MAIL_TRY' ADD ACTION 'MAIL_TRY ' SET PROPERTIES (OPERATION) VALUES ('CREATE') SET REFERENCE PROCESS_FLOW_PACKAGE '/NEW_PROJECT2/MOD1/MAIL_TRY'
    Action plan MAIL_TRY created.
    OMB+> OMBCOMMIT
    Commit complete.
    OMB+> OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'MAIL_TRY'
    OMB05602: An unknown Deployment error has occured for Object Type API8028: No signature is available for mapping EMP_COUNT because the generation language is undefined. Please set the generation language property of this mapping, or generate this mapping to set the generation language property to a default value..
    In order to remove that error i made the following alteration in the mapping property:
    Context changed.
    OMB+> OMBALTER MAPPING 'EMP_COUNT' SET PROPERTIES (GENERATION_LANGUAGE) VALUES ('PLSQL')
    and then deployed the process folw only to get the following error:
    OMB05602: An unknown Deployment error has occured for Object Type Trying to access invalid Object.
    Element ID: 282901
    Status: 4
    Owning FCO: 282896
    Thanks in advance!!!!!

    A couple of things you could try are:
    1 - OMBCOMPILE MAPPING 'EMP_COUNT' instead of doing the OMBALTER as this will ensure that the property is set correctly, just in case there's any problem there,
    2 - "set OMBDEBUG on" before doing your OMBDEPLOY to display any additional stack traces.

  • Apex integrating with ebusiness suite 11.5.10

    Hello,
    We are using apex 3.2.0.00.27 and trying to integrate with ebusiness suite 11.5.10. Our apex is located on a stand alone separate server than our ebusiness suite installation.
    We are trying to follow the Cabot document found at
    http://www.stuffspec.com/Read/_sp.d3d3Lm9yYWNsZS5jb20-sp..sltechnetwork.sl_developer-tools.sl_apex.sl_apex-ebs-wp-cabot-consulting-169064.pdf
    but are having troubles just trying to get the ebusiness set up part done.
    We are having troubles on page 5 of 8 where it talks about creating the plsql form function with the following attributes.
    When we set the Properties/Type to be SSWA plsql function, it does not want to accept it and will not save as SSWA plsql function.
    I have searched and read and followed so many links my head is spining. Has anyone else had this type of issue, and could tell us what we are doing wrong? Does the Cabot approach work for everyone, or is there another method that will work better?
    Any help would be appreciated.
    Thank you,
    Mark

    MarkPP posted the original thread on my behalf. I have looked through the threads that you suggested and unfortunately they have not shed any light on the subject.
    We are using a stand alone apex server. We have a 11.5.10.2 e-bus suite which we use SSO for the hrSelfService. We are trying to add the new apex application to the hrselfservice menu. I following the Cabot white paper and I have created the procedure apex_launch as follows. I have some questions about it that are inline:
    PROCEDURE APPS.apex_launch (
    application IN NUMBER
    , page IN NUMBER DEFAULT 1
    , request IN VARCHAR2 DEFAULT NULL
    , item_names IN VARCHAR2 DEFAULT NULL
    , item_values IN VARCHAR2 DEFAULT NULL)
    Is
    Begin
    OWA_UTIL.mime_header('text/html', false); ---- Is the url correct? Since my apex server is separate, do I need the APPS_FRAMEWORK_AGENT???
    OWA_UTIL.redirect_url( ---- Do i need to create a DAD for pls/apex?
    'https://ourserver.school.edu/pls/apex/f?p='||
    application||':'||page||'::'||request||':::'||
    item_names||':'||item_values);
    End apex_launch;
    I created the form function with the following attributes:
    Properties/Type -> SSWA plsql function
    Web HTML/HTML Call -> apex_launch
    Form/Parameter -> application=310
    I am able to save the plsql form function with no errors. However, when i go back in to look at the form function: property type, it is set to "database provider portlet". (I have opened an SR on this issue and as yet, i don't have a solution.)
    I then add the new form function to the hr self service menu. When I go into self service, the new function does not display.
    If I change the property to SSWA plsql function that opens a new window (Kiosk mode) and save the form function and don't change anything else, when I go into self service the new function displays. However ,when I click on it, it opens another e-bus suite logon page. After entering the username/password it just brings up the ebus suite application, not the apex application.
    Can anybody help me? thanks.

  • Fiel open dialog -properties

    Hi,
    i implemented a file open dialog using cl_gui_frontend_services (->file_open_dialog) and it works so far ok. But now i'd like to change the size of the file open dialog (with programm code) and change the layout to the detailview (with filesize, changedate..). I am able to make thiss by hand in the dialog. But is there any possibility to open the dialog with a bigger window and in this detail view mode with program code?
    Thanks
    Stefan

    closed

  • Getting built-in document properties

    Help me, please! I need to get built-in properties (title, keywords, author, ...) from uploaded document (.doc, .xsl, .pdf) for creating 'file item' and fill its properties automatically.
    Did anybody does this?
    Is the best way to solve this problem?
    May I use portal API or Oracle Text API for developing?
    Reply, please!

    hi alexander,
    to programatically get and set document meta-data like author, text, description, etc. we provide the Content Management API's which are available here:
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/pldoc_9026/wwsbr_api.html
    use the view WWSBR_ALL_ITEMS which is located in the portal schema to query the item attributes.
    these PL/SQL API's do exactly what you are planning to do.
    regards,
    christian

  • A problem with plsql trigger in my form

    i created two text field and a button(insert) to take the value of the text feild at run time and insert it in the table
    this is my procedure
    CREATE OR REPLACE PROCEDURE insert_value
    (brn_id_in_p IN branch.brn_id%TYPE,
    brn_name_in_p IN branch.brn_name%TYPE)
    IS
    BEGIN
    INSERT INTO branch (brn_id,brn_name)
    VALUES (brn_id_in_p, brn_name_in_p);
    END insert_value;
    and in the form button trigger (when button pressed ) i wrote this
    EXECUTE insert_value(:BRANCH.BRN_ID_TF,:BRANCH.BRN_NAME_TF);
    but it gave me plsql error but i dont know why?
    note BRANCH is the datablock name and BRN_ID_TF,BRN_NAME_TF is the name of the items

    Only write
    insert_value(:BRANCH.BRN_ID_TF,:BRANCH.BRN_NAME_TF);
    and then give me the error which is prompted...
    another problem may occur with the data type which you declared in the properties of the text items
    :BRANCH.BRN_ID_TF and :BRANCH.BRN_NAME_TF
    in your forms.

  • PLSQL compiles but doesn't run.. I've declared it everywhere but still..

    PLSQL compiles but doesn’t run.. I’ve declared it everywhere but still..
    Afternoon.. Hopefully a quick one for someone.. I’m trying to run a Concurrent Program in ORACLE Financials using a Data Template derived BI Publisher report.
    Error message received..
    SUBIXCLT module: UofS Expense Claim Tracking Report
    +--------------------------------------------------------------------------
    All Parameters: raisedby=:status=:claimant=:expense_date_from=:expense_date_to=:LP_ORDERED_BY=Expense Report Number
    Data Template Code: SUBIXCLT
    Data Template Application Short Name: PO
    Debug Flag: N
    {raisedby=, claimant=, expense_date_to=, expense_date_from=, status=, LP_ORDERED_BY=Expense Report Number}
    Calling XDO Data Engine...
    [060410_025628319][][STATEMENT] Start process Data
    [060410_025628324][][STATEMENT] Process Data ...
    [060410_025628329][][STATEMENT] Executing data triggers...
    [060410_025628329][][STATEMENT] BEGIN
    SUBIXCLT.claimant := :claimant ;
    SUBIXCLT.expense_date_from := :expense_date_from ;
    SUBIXCLT.expense_date_to := :expense_date_to ;
    SUBIXCLT.raisedby := :raisedby ;
    SUBIXCLT.status := :status ;
    SUBIXCLT.lp_ordered_by := :lp_ordered_by ;
    :XDO_OUT_PARAMETER := 1;
    END;
    l_flag Boolean;
    BEGIN
    l_flag := SUBIXCLT.BEFOREREPORT(L_ORDERED) ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [060410_025628356][][EXCEPTION] SQLException encounter while executing data trigger....
    java.sql.SQLException: ORA-06550: line 4, column 33:
    PLS-00201: identifier 'L_ORDERED' must be declared
    ORA-06550: line 4, column 1:
    PL/SQL: Statement ignoredThe Data Template
    The Data Template
    <?xml version="1.0" encoding="utf-8" ?>
    - <dataTemplate name="UofS_OutstandngExpenses_Report" defaultPackage="SUBIXCLT" dataSourceRef="FINDEV" version="1.0">
    - <properties>
      <property name="xml_tag_case" value="upper" />
      <property name="include_parameters" value="true" />
      <property name="debug_mode" value="on" />
      </properties>
    - <parameters>
      <parameter name="claimant" dataType="character" defaultValue="" />
      <parameter name="expense_date_from" dataType="date" defaultValue="" />
      <parameter name="expense_date_to" dataType="date" defaultValue="" />
      <parameter name="raisedby" dataType="character" defaultValue="" />
      <parameter name="status" dataType="character" defaultValue="" />
      <parameter name="lp_ordered_by" dataType="character" defaultValue="" />
      </parameters>
    - <dataQuery>
      <dataTrigger name="beforeReportTrigger" source="SUBIXCLT.BEFOREREPORT(L_ORDERED)" />
    - <sqlStatement name="Q1">
    - <![CDATA[
    SELECT DISTINCT
    erh.invoice_num,
    pap.full_name EMP_CLAIMING,
    DECODE(NVL(erh.expense_status_code, 'Not yet Submitted (NULL)'), 'CANCELLED', 'CANCELLED',
         'EMPAPPR', 'Pending Individuals Approval',      'ERROR', 'Pending System Administrator Action',
         'HOLD_PENDING_RECEIPTS     ', 'Hold Pending Receipts', 'INPROGRESS', 'In Progress', 'INVOICED', 'Ready for Payment',
         'MGRAPPR', 'Pending Payables Approval', 'MGRPAYAPPR', 'Ready for Invoicing', 'PAID', 'Paid',
         'PARPAID', 'Partially Paid',     'PAYAPPR', 'Payables Approved',     'PENDMGR', 'Pending Manager Approval',
         'PEND_HOLDS_CLEARANCE', 'Pending Payment Verification',     'REJECTED', 'Rejected',     'RESOLUTN',     'Pending Your Resolution',
         'RETURNED',     'Returned',     'SAVED',     'Saved',     'SUBMITTED',     'Submitted',     'UNUSED',     'UNUSED',
         'WITHDRAWN','Withdrawn',     'Not yet Submitted (NULL)') "EXPENSE_STATUS" ,
    NVL(TO_CHAR(erh.report_submitted_date,'dd-MON-yyyy'),'NULL') SUBMIT_DATE,
    NVL(TO_CHAR(erh.expense_last_status_date,'dd-MON-yyyy'),'NULL') LAST_UPDATE,
    erh.override_approver_name ER_Approver,
    fu.description EXP_ADMIN,
    erh.total,
    erh.description 
    FROM
    AP_EXPENSE_REPORT_HEADERS_all erh,
    per_all_people_f pap, fnd_user fu
    WHERE erh.employee_id = pap.person_id
    AND fu.user_id = erh.created_by
    AND NVL(erh.expense_status_code, 'Not yet Submitted') NOT IN  ('MGRAPPR', 'INVOICED', 'PAID', 'PARPAID')
    AND pap.full_name = NVL(:claimant, pap.full_name)
    AND TRUNC(erh.report_submitted_date) BETWEEN NVL(:expense_date_from, '01-JAN-1999') AND NVL(:expense_date_to,'31-DEC-2299')
    AND fu.description = NVL(:raisedby,fu.description)
    AND erh.expense_status_code = NVL(:status,erh.expense_status_code) &LP_ORDERED_BY
      ]]>
      </sqlStatement>
      </dataQuery>
      <dataTrigger name="beforeReportTrigger" source="SUBIXCLT.BEFOREREPORT(L_ORDERED)" />
    - <dataStructure>
    - <group name="G_XP_CLM_TRACKNG" source="Q1">
      <element name="INVOICE_NUM" value="INVOICE_NUM" />
      <element name="EMP_CLAIMING" value="EMP_CLAIMING" />
      <element name="EXPENSE_STATUS" value="EXPENSE_STATUS" />
      <element name="SUBMIT_DATE" value="SUBMIT_DATE" />
      <element name="LAST_UPDATE" value="LAST_UPDATE" />
      <element name="LP_ORDERED_BY" dataType="varchar2" value="SUBIXCLT.LP_ORDERED_BY" />
      </group>
      </dataStructure>
      </dataTemplate>The PL SQL..
    The PL SQL..
    CREATE OR REPLACE PACKAGE Subixclt IS
    L_ORDERED  VARCHAR2(50);
    RAISEDBY VARCHAR2(50);
    STATUS VARCHAR2(50);
    CLAIMANT VARCHAR2(50);
    LP_ORDERED_BY VARCHAR2(50);
    FUNCTION BEFOREREPORT(L_ORDERED IN VARCHAR2) RETURN VARCHAR2;
    EXPENSE_DATE_FROM DATE;
    EXPENSE_DATE_TO DATE;
    --RETURN VARCHAR2;
    END;
    CREATE OR REPLACE PACKAGE BODY Subixclt IS
    FUNCTION BEFOREREPORT(L_ORDERED IN VARCHAR2)RETURN VARCHAR2 IS
    BEGIN
    Fnd_File.PUT_LINE(Fnd_File.LOG,'L_ORDERED'||L_ORDERED);
    DECLARE
    LP_ORDERED_BY VARCHAR2(50);
    L_ORDERED  VARCHAR2(50);
    RAISEDBY VARCHAR2(50);
    STATUS VARCHAR2(50);
    CLAIMANT VARCHAR2(100);
    EXPENSE_DATE_FROM DATE;
    EXPENSE_DATE_TO DATE;
    BEGIN
    IF (LP_ORDERED_BY='Expense Report Number') THEN
         LP_ORDERED_BY :='order by 1 asc;';
      ELSIF (LP_ORDERED_BY='Person Claiming') THEN
         LP_ORDERED_BY :='order by 2 asc;';
      ELSIF (LP_ORDERED_BY='Submit Date') THEN
      LP_ORDERED_BY :='order by 4 asc;';
      END IF;
    RETURN(L_ORDERED);
    --RETURN NULL;
    END;
    END;
    END;Thanks for looking..
    Steven
    Edited by: Mr_Alkan on Jun 4, 2010 3:35 PM

    One has to initialise a session first for use with Oracle Apps if you want to make it run as a concurrent job.
    Any decleration within your package will not be recognised unless initialisation is sucessful.
    Investigate the built-in packages:
    FND_GLOBAL - for initialisation
    FND_SUBMIT - for setting session relevant parameters
    -- function returns true or false depending on whether the initialisation was sucessful or not
    create or replace function is_Init_OK (p_User_Name       in varchar2
                                          ,p_Responsibility  in varchar2
                                          ,p_Language        in varchar2) return boolean as
      b_Set_NLS   boolean;
      b_Set_Mode  boolean;
      r_ISet      fnd_Init := Get_Init_Set(p_User_Name, p_Responsibility);
      begin
        -- 1
        fnd_global.apps_initialize(r_ISet.User_ID, r_ISet.Resp_ID, r_ISet.App_ID);
        -- 2
        b_Set_NLS := fnd_submit.set_nls_options(p_Language);
        -- 3
        b_Set_Mode  := fnd_submit.set_mode (false);
        return (b_Set_Mode and b_Set_NLS and (    (r_ISet.Resp_ID is not null)
                                              and (r_ISet.User_ID is not null)
        exception
          when others then
            return false;
    end is_Init_OK;
    -- for example
    declare
      l_User_ID number = 'IMPORT_POST'; --- import post user
      l_Resp    number =  'Import and Posting responsibility' -- import posting responsibility
      l_Language varchar2(100) := 'AMERICAN';
      b_Init boolean := false;
      INIT_EXCEPTION exception;
    begin
      b_Init := is_Init_OK(l_User_ID, l_Resp, l_Language);
      if (not b_Init) then
        raise INIT_EXCEPTION;
      end if;
      -- conitnue with your processing
      exception 
        when others then
          when INIT_EXECPTION then
          when others then
    end;
    /

Maybe you are looking for

  • How to read messages from AQ

    hi, is there any possibility to view the messages of queue? Is there any query to view all messages that are present in the queue? I can able to dequeue message using Java client. But i would like to see messages present in the queue using some query

  • Commitment to show against PR,PO, GR, GI in report S_ALR_87013542

    Kindly advise me during the purch process for a component attached to a activity do u see the cost moving from Plan column to Commitment COlumn and finally to Actual column . I observed the amount moving from Plan(on generation of PR) moving straight

  • Unable to connect to the server - windows sockets

    //////socket connector method//// bool SocketConnecter::connect(const std::string& ip, size_t port) size_t uport = htons(port); std::string sPort = toString(uport); // Resolve the server address and port const char* pTemp = ip.c_str(); iResult = geta

  • Crosstab Formatting Crystal 8.5

    I have a crosstab that I am trying to format.  I have done most of the work but this (hopefully) last two parts are annoying. First Issue: Layout: Rows are Names Columns are Categories Summarized Field is sum of amount (for each name for each categor

  • Stacked column chart

    Hi to everybody. I was wondering if there is a possibility to do the following : On the stacked column charts you can show the value of each series. Is there a possibility to show for instance on the top the sum of the series. Thanks in advance Messa