How to use the API of PL/SQL DBFS

Hi guys,.

I re-post this question to see if someone can help out me. I'm trying to use the API of PL/SQL DBFS to manipulate the files stored in DBFS.

Details of the environment:
Windows 7 or 5.5 OEL (I tried both platforms)
Database: Oracle DB EE 11.2.0.2
IDE: SQLDeveloper on Windows 7

I have two users, DBFS_USER, who is the shop owner DBFS and MYUSER that connects to the store to manipulate files using the API of PL/SQL DBFS.

Creation scripts:
-----------------
Connect / as sysdba;

Dbfs_ts CREATE TABLESPACE DATAFILE 'D:\oracle\oradata\orcl\dbfs01.dbf' SIZE 1 M AUTOEXTEND ON NEXT 1 M;

-create users
create dbfs_user user identified by dbfs_user quota default tablespace unlimited dbfs_ts on dbfs_ts;
create myuser identified by myuser;

-grant the role
GRANT RESOURCES, CREATE VIEW, CREATE SESSION, DBFS_ROLE, CREATE TABLE TO dbfs_user.
GRANT RESOURCES, CREATE VIEW, CREATE SESSION, DBFS_ROLE, CREATE TABLE TO myuser.

-create a filesystem (such as DBFS_USER)
connect dbfs_user/dbfs_user;

exec dbms_dbfs_sfs.createFilesystem ('STAGING_AREA_FS');

exec dbms_dbfs_content.registerStore ('STAGING_AREA_FS', 'posix', 'DBMS_DBFS_SFS');

dbms_dbfs_content.mountStore exec ('STAGING_AREA_FS', 'staging_area');

commit;

-export store STAGING_AREA_FS (as DBFS_USER)

exec dbms_dbfs_sfs.exportFilesystem ('STAGING_AREA_FS');

-Check the names of table (like MYUSER)
connect myuser/myuser;

-He can't see (without brackets)
Select * from table (dbms_dbfs_content.listMounts);

-Note at the bottom of the table table_name
Select * from table (dbms_dbfs_sfs.listTables);

-Mount as MYUSER (example with SFS table_name $ _FST_32)
dbms_dbfs_sfs.registerFilesystem exec ('MYUSER_FS', 'DBFS_USER', ' FS$ _FST_32');

exec dbms_dbfs_content.registerStore ('MYUSER_FS', 'posix', 'DBMS_DBFS_SFS');

dbms_dbfs_content.mountStore exec ('MYUSER_FS', 'staging_area');

commit;

-verification of Mount (like MYUSER)

Select * from table (dbms_dbfs_content.listMounts);

Select the path in dbfs_content;


CREATE a STORED PROC (like MYUSER)
----------------------------

CREATE OR REPLACE PACKAGE MYUSER_PKG

CreateDirectory function
(P_File_Path IN VARCHAR2,
P_ErrMsg OUT VARCHAR2)
return number;

END MYUSER_PKG;

/


CREATE OR REPLACE PACKAGE BODY MYUSER_PKG

CreateDirectory function
(P_File_Path IN VARCHAR2,
P_ErrMsg OUT VARCHAR2)
Return number
IS
l_Return NUMBER;
l_props DBMS_DBFS_CONTENT. PROPERTIES_T;
BEGIN
l_Return: = 0;

() DBMS_DBFS_CONTENT.createDirectory
path = > P_File_Path,
Properties = > l_props);

RETURN l_Return;
EXCEPTION
WHILE OTHERS THEN
l_Return: = NVL (SQLCODE,-1);
P_ErrMsg: = SQLERRM;
RETURN l_Return;
CreateDirectory END;

END MYUSER_PKG;

/

When you compile the package, I get this error:
Error (9,11): PLS-00201: identifier 'DBMS_DBFS_CONTENT' must be declared
Error (9,11): PL/SQL: ignored element
Error (13.3): PL/SQL: statement ignored
Error (15,19): PLS-00320: the declaration of the type of the expression is incomplete or incorrect

How can I solve the problem in the error message? I'm not an expert in DB. I used this reference documentation: http://download.oracle.com/docs/cd/E11882_01/appdev.112/e18294/adlob_client.htm#CIHDEJAA

Thanks in advance.

CAPPA

You must directly grant the privileges of DBFS_ROLE because roles are not enabled in stored PL/SQL:

SQL> select* from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Solaris: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production

SQL> show user
USER is "SYS"
SQL>
SQL> create user myuser identified by myuser;

User created.

SQL> GRANT CREATE SESSION, RESOURCE, CREATE VIEW, DBFS_ROLE, CREATE TABLE TO myuser;

Grant succeeded.

SQL>
SQL> begin
  2  for x in (select privilege, table_name
  3           from dba_tab_privs
  4           where grantee='DBFS_ROLE')
  5  loop
  6   execute immediate 'grant ' || x.privilege || ' on ' || x.table_name
  7   || ' to myuser ';
  8  end loop;
  9  end;
 10  /
begin
*
ERROR at line 1:
ORA-22812: cannot reference nested table column's storage table
ORA-06512: at line 6

SQL>
SQL> connect myuser/myuser
Connected.
SQL>
SQL> CREATE OR REPLACE PACKAGE MYUSER_PKG IS
  2  Function CreateDirectory
  3  (P_File_Path IN VARCHAR2,
  4  P_ErrMsg OUT VARCHAR2)
  5  return Number;
  6  END MYUSER_PKG ;
  7  /

Package created.

SQL> show errors
No errors.
SQL>
SQL> CREATE OR REPLACE PACKAGE BODY MYUSER_PKG  IS
  2  Function CreateDirectory
  3  (P_File_Path IN VARCHAR2,
  4  P_ErrMsg OUT VARCHAR2)
  5  return Number
  6  IS
  7  l_Return NUMBER;
  8  l_props DBMS_DBFS_CONTENT.PROPERTIES_T;
  9  BEGIN
 10  l_Return := 0;
 11  DBMS_DBFS_CONTENT.createDirectory (
 12  path => P_File_Path,
 13  properties => l_props);
 14  RETURN l_Return;
 15  EXCEPTION
 16  WHEN OTHERS THEN
 17  l_Return := NVL(SQLCODE, -1);
 18  P_ErrMsg := SQLERRM;
 19  RETURN l_Return;
 20  END CreateDirectory;
 21  END MYUSER_PKG ;
 22  /

Package body created.

SQL> show errors
No errors.

You should check why some GRANT statement fails if you have another problem with the other piece of code.

Tags: Database

Similar Questions

  • How to use the concepts Advanced PL/SQL in oracle reports and forms

    Hi all

    Can anyone suggest me how to use the Concepts(nested tables,PAA,Varrays,Objects...) Advanced PL/SQL in Oracle forms.

    In fact, I created a Table whose column of type Varray. now, I want to create an element in oracle forms on this field. can anyone suggest me how to proceed.

    Thank you
    Kumar

    Hello

    Take a look at this one:
    http://SheikYerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    especially the chapter on the block that contains a collection of (2.3.3). The sample is built around a nested table, but you get the idea to adapt to work with a varray.

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

  • How to use the API of the IOM in Self Service identity custom region

    Hi all

    I developed a custom in Self Service identity using this guide area: customization of the Interface - 11 g Release 2 (11.1.2.1.0)

    Inside this area, I have a simple form that allows the creation of users. This form uses the API of the IOM, in particular the following line:

    UserManager usermgr = Platform.getService(UserManager.class);
    

    The error I got is:

    < error > < oracle.iam.platform.utils.SpringBeanFactory > < BEA-000000 > < parsin instantiation Spring Bean Factory Failed.IOExceptiong XML document resource path of class [META-INF/iam-spring-config. XML]; nested exception is java.io.FileNotFoundException: resource path of class [META-INF/AIm-spring-config.] XML] could not be opened because there is no >

    I use it because I think that I am inside the ISS. For this reason I don't want to use the client method to retrieve the UserManager (which obviously works):

            String ctxFactory = "weblogic.jndi.WLInitialContextFactory";
            String serverURL = "t3://" + HOSTNAME + ":" + PORT;
            
            Hashtable env = new Hashtable();
            env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL, ctxFactory);
            env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, serverURL);
            
            OIMClient oimClient = new OIMClient(env);
            try {
                oimClient.login(OIM_USERNAME, OIM_PASSWORD.toCharArray());
            } catch(LoginException e) {
                e.printStackTrace();
            }
            UserManager usermgr = client.getService(UserManager.class);
    

    It is possible to use the UserManager methods in this case?

    Thanks in advance for your help.

    Manual

    Solved.

    Just replace

    UserManager usrmgr = Platform.getService(UserManager.class);
    

    with

    UserManager usermgr = OIMClientFactory.getUserManager();
    

    Manual

  • How to use the API to perform a "Power on and Force Recustomization" 1.5?

    With the help of VMWare vCloud Director, when the virtual machine is turned off, I have the menu ' power on and Force Recustomization "to turn on the machine and do some recustomization work such that reset the administrator password.

    However, I can't do this using the API. The vm/vapp. PowerOn() has no parameters. The vm/vapp. Deploy (true, 0, true) can (re) deploy the vm/vapp and plugged. But the recustomization never runs.

    My code can update the section "customization of the OS invited." I can see it in vCloud Director. And then if I manually ' power on and Force Recustomization ", the machine will be powered on to reset the password. But if I use the above codes, none of them works. So, I conclude that the problem occurs in the sending of the statement of "Power on and Force Recustomization ' using the API.

    Any help will be evaluated.

    Ref:

    http://communities.VMware.com/message/1691773

    http://communities.VMware.com/message/1837194

    http://communities.VMware.com/message/1805142

    http://communities.VMware.com/message/1844513

    Hello

    To perform the PowerOn + ForceCustomization option in the UI by using the API.

    Perform the same operation of the virtual machine deployment.

    Ex: POST - api/vApp/vm-uuid/action/deployment

    XML MESSAGE

                          http://www.VMware.com/vCloud/versions"xmlns:ns6 ="http://www.vmware.com/vcloud/v1.5"powerOn ="true"forceCustomization ="true"deploymentLeaseSeconds ="10000"/ >"

    Using Java SDK - use of the virtual machine-> deploy();

    Make sure that the customization of the comments is enabled on the virtual computer.

    Make sure that the deployment - forceCustomization and powerOn settings are set to true;

    Kind regards

    Rajesh Kamal.

  • How to use the api to query / vcloud api to filter records by ID AdminVAppTemplate?

    I tried the following REST calls:


    Here, I tried to use the href of the vAppTemplate:

    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = href is https://VCD.dDEV/API/vapptemplate-ed8aa4df-64be-454a-9acc-48ad25248092

    This means "com.vmware.vcloud.api.rest.parser.QueryParseException: Bad request: href unknown property name.

    Here, I tried to use the ID of the vAppTemplate (preferred method):
    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = ID is urn:vCloud:vapptemplate:ed8aa4df - 64be-454-bis-9acc-48ad25248092

    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = ID is ed8aa4df-64be - 454 a-9acc-48ad25248092

    the two returned "com.vmware.vcloud.api.rest.parser.QueryParseException: Bad request: name id unknown property.

    Here I was filtering by the parent organization (WORKS)
    https://VCD.dDEV/API/query?type=adminVAppTemplate & Filter = org is 0913b09e-7f78-4DE0-87cd-99f6cbf3227a

    Any thoughts on how I can sort by ID?  or same href?

    Hi jarhorn,

    Currently the query Service does not support filtering based on the href or id property, but you can use the entity resolver to help you since you already know that the property ID take a look at this article for more details - http://blogs.vmware.com/vsphere/2012/05/entity-resolver-in-the-vcloud-api.html

    FYI - we are aware of this limitation today with the query Service and it will be fixed.

    Thank you

  • How to use the API

    Hello everyone can tell me how I can implement google map in my application?

    Which API is available for the implementation of the google map?

    Hello

    The best answer is to take a look at our sample app (s). I wrote one that shows you how to work with maps (Google, Bing, flyer, open layers).

    Here is a link to the example: https://github.com/blackberry/BB10-WebWorks-Samples/tree/WebWorks-2.0/Maps

  • Filling of scheduling Gantt chart using the APi or PL/SQL complexL of back blocks

    Hello

    We implement scheduling Gantt in the ADF. I have a question about the Population data in the Gantt planning running.
    Can I use a mechanism to fill data in the Gantt planning running without resorting to the VO data controls/Bindings.To be more specific, we can use web services or API that return complex data types (like Arrays)
    fill the gantt(Programmatically/Declaratively) of Scheduling.

    Thanks and greetings

    "resource" is the value of the attribute "var" specified in your jspx.

    You can check the tagdoc below to learn more about the 'var' attribute

    http://jdevadf.Oracle.com/ADF-richclient-demo/docs/DVT/tagdoc/dvt_schedulingGantt.html

  • How to use the api to create users of developer class

    Hello

    I have the following code that will create end-users but im trying to create Developer users. the code creates end-users in designated work space, but I have to log on as admin admin apex to use and them to developers.

    Any ideas on why this won't mark the user as a developer?

    The database schema where it is built has the admin role assigned.

    TIA
    Richard.

    FUNCTION create_workspace_user (p_username in varchar2) return a Boolean value
    is

    l_workspace_name varchar2 (50);
    Boolean l_user_ceated: = false;
    l_wks_id NUMBER;

    number of lv_user_id;
    lv_workspace VARCHAR2 (255);
    lv_user_name VARCHAR2 (255);
    lv_first_name VARCHAR2 (255);
    lv_last_name VARCHAR2 (255);
    lv_web_password VARCHAR2 (255);
    lv_email_address varchar2 (240);
    date of lv_start_date;
    date of lv_end_date;
    number of lv_employee_id;
    lv_allow_access_to_schemas varchar2 (4000);
    lv_person_type varchar2 (1);
    lv_default_schema varchar2 (30);
    lv_groups varchar2 (4000);
    lv_developer_role varchar2 (4000);
    lv_description varchar2 (240);
    date of lv_account_expiry;
    lv_account_locked varchar2 (100);
    number of lv_failed_Access_Attempts;
    lv_change_pwd_on_first_use varchar2 (100);
    lv_first_pwd_use_occurred varchar2 (100);

    l_developer_role VARCHAR2 (255) default ' ADMIN: CREATE: DATA_LOADER:EDIT:HELP:MONITOR:SQL';
    l_description VARCHAR2 (255) default 'user Sandbox ';
    l_firstname varchar2 (30);
    l_surname varchar2 (30);
    l_password varchar2 (100);
    l_email varchar2 (50);

    Start

    Select nom_espace_de_travail
    in l_workspace_name
    of apex_user_workspace_required
    where workspace_created_flag = 'Y '.
    and username = p_username;


    Select the first and last name, e-mail, apex_secure_data.decryptor (password)
    in l_firstname, l_surname, l_email, l_password
    of apex_user_repository
    where username = p_username;

    l_wks_id: = apex_util.find_security_group_id (p_workspace = > l_workspace_name);

    workspace-set security id
    wwv_flow_api.set_security_group_id (l_wks_id);

    apex_util. CREATE_USER (p_user_name = > p_username,)
    p_first_name = > l_firstname,
    p_last_name = > l_surname,
    p_description = > l_description,
    p_web_password = > l_password,
    p_email_address = > l_email
    );

    lv_user_id: = APEX_UTIL. Widzilem (Upper (p_username));

    APEX_UTIL. () FETCH_USER
    p_user_id = > lv_user_id,
    p_workspace = > lv_workspace,
    p_user_name = > lv_user_name,
    p_first_name = > lv_first_name,
    p_last_name = > lv_last_name,
    p_web_password = > lv_web_password,
    p_email_address = > lv_email_address,
    p_start_date = > lv_start_date,
    p_end_date = > lv_end_date,
    p_employee_id = > lv_employee_id,
    p_allow_access_to_schemas = > lv_allow_access_to_schemas,
    p_person_type = > lv_person_type,
    p_default_schema = > lv_default_schema,
    p_groups = > lv_groups, - new
    p_developer_role = > l_developer_role,
    p_description = > lv_description,
    p_account_expiry = > lv_account_expiry,
    p_account_locked = > lv_account_locked,
    p_failed_Access_Attempts = > lv_failed_Access_Attempts,
    p_change_password_on_first_use = > lv_change_pwd_on_first_use,
    p_first_password_use_occurred = > lv_first_pwd_use_occurred);

    lv_change_pwd_on_first_use: = 'n';
    lv_default_schema: = 'SOMETHING ';

    APEX_UTIL. EDIT_USER)
    p_user_id = > lv_user_id,
    p_user_name = > lv_user_name,
    p_first_name = > lv_first_name,
    p_last_name = > lv_last_name,
    p_web_password = > l_password,
    p_new_password = > l_password,
    p_email_address = > lv_email_address,
    p_start_date = > lv_start_date,
    p_end_date = > lv_end_date,
    p_employee_id = > lv_employee_id,
    p_allow_access_to_schemas = > lv_allow_access_to_schemas,
    p_person_type = > lv_person_type,
    p_default_schema = > lv_default_schema,
    p_group_ids = > lv_groups, - new
    p_developer_roles = > lv_developer_role,
    p_description = > lv_description,
    p_account_expiry = > lv_account_expiry,
    p_account_locked = > lv_account_locked,
    p_failed_Access_Attempts = > lv_failed_Access_Attempts,
    p_change_password_on_first_use = > lv_change_pwd_on_first_use,
    p_first_password_use_occurred = > lv_first_pwd_use_occurred);


    Update apex_user_required
    Set user_created_flag = 'Y ',.
    run = sysdate
    where username = p_username
    and user_created_flag = 'n';

    COMMIT;

    l_user_ceated: = true;

    Return l_user_ceated;


    end create_workspace_user;

    Looks like your fetch_user in l_developer_role overrides its default value and your use of the lv_developer_role in edit_user then passes in null value.

    Scott

  • Utility that uses the API of HFM

    Hello

    I want to create a utility, using the HFM API, in c# that runs from repetitive consolidation and extraction tasks.
    I think I need to install professional all HFM so apart from the SDK.

    If so, I'm looking for 2 things now
    1. where can I download the SDK from
    2. where can I download the HFM customer since and do I need anything else apart from these 2 to create and run my utility.

    My machine is running * 64-bit Windows 7, and our HFM server is version 11 *.

    A correct link would be appreciated, I'm looking at edeliver.oracle.com but I can't find good versions for each of them.

    Thank you.

    The link is for a c# .NET application that will show you how to use the API. Even if you don't use immediately, you can consult the source code for clue you on how to work with the API.

    Personally, I think the rule of no-3 rd party is silly something like that, because the source code is included and you can change/see exactly what it does. (Basically just call the appropriate API) I understand also is probably not your rule so that the comment is not intended to you by itself.

    In regards to what you install, start here:

    http://docs.Oracle.com/CD/E17236_01/NAV/portal_1.htm

    Look at the beginning of the Installation here and installation and configuration guides. (epm_insatll_start_here_11121.pdf and epm_install_11121.pdf respectively)

    The cliff notes, is that you have to make the installation package:

    Oracle Hyperion Enterprise Performance Management System install, version 11.1.2.1.0 for PlatformName Fusion
    Oracle Hyperion Foundation Services output 11.1.2.1.0 for PlatformName part 1 of 7
    Oracle Hyperion Foundation Services output 11.1.2.1.0 for PlatformName part 2 of 7
    Oracle Hyperion Foundation Services output 11.1.2.1.0 for PlatformName part 3 of 7
    Oracle Hyperion Foundation Services output 11.1.2.1.0 PlatformName part 4 of 7
    Oracle Hyperion Foundation Services Release 11.1.2.1.0 part 5 of 7
    Oracle Hyperion Foundation Services Release 11.1.2.1.0 part 6 of 7
    Oracle Hyperion Foundation Services Release 11.1.2.1.0 part 7 of 7

    * NOTE: All files are on delivery and where we see PlatformName you should replace it with the platform type (e.g., x 86, x 64, etc.)

    In addition, you have the following modules to install the financial management Client:

    Financial Management Client
        Required Assemblies
            l commonComponents
            l hfm_client
            l hfm_common
        Required Download Files
          l Oracle Hyperion Foundation Services Release 11.1.2.1.0 for PlatformName Part 1 of 7
          l Oracle Hyperion Financial Management, Fusion Edition Release 11.1.2.1.0
    

    Hope that helps.

    Published by: beyerch2 on April 11, 2012 09:13

  • How to access the Non-space data of the object using the API of the HTML5

    Using the Oracle cards HTML5 API, is it possible to access the data an excerpt when generating a map?

    For example, my database has a table named ITEMS:

    Table: ELEMENTS

    COL_A

    COL_B

    COL_C

    COL_D

    COL_E

    COL_F

    GEOMETRY

    This table contains a number of objects point.  With the help of Mapviewer, I can successfully create a map by using the HTML5 API.  Here is an example of how I used the constructor 'OM.layer.VectorLayer.TYPE_JDBC' to retrieve the objects point of my database.

    pointLayer = new OM.layer.VectorLayer ("PointLayer",

    {

    infoWindow: true,

    def:

    {

    type: OM.layer.VectorLayer.TYPE_JDBC,.

    dataSource: "myDatabase",.

    SQL: "SELECT * FROM POINT."

    geometryColumn: "GEOMETRY."

    labelColumn: "COL_A."

    loadOnDemand: false,

    URL: baseURL

    },

    renderingStyle: circleMarker

    });

    How can I use the HTML5 API to access the data in the other columns (COL_A, COL_B, etc.) of my table?

    I know that the methods DisplayInfoWindow() and displayTabbedInfoWindow of the Map class to view this information by clicking on a specific point on the map.  But I would like to have access to all the points to create a table below my map showing all points (and their data) shown on the map.

    Hello

    You can try this code:

    functions var = pointLayer.getAllFeatures ();

    for (var i = 0; i)

    {

    Features [i]. GetAttributes() ["COL_A"];

    Features [i]. GetAttributes() ["COL_B"];

    ......

    }

  • How to create VI execution asynchronous step using the API

    I want to create a "run way asynchronous step VI" using the API TestStand in LabVIEW.

    Navigation on the details of the step and the properties of the object, apparently, that it is a type of 'special' step that is actually a SequenceCall.  However, I don't see how to access the data contained in this type of step.  I enclose my current VI used to 'Browse' the data for reference.

    Please advise on how to create this step.

    Thank you

    Hey LVB,

    I'm sorry, I didn't know that you always wanted to use the "Use the Prototype sequence" checkbox option.  In this case the attached code should demonstrate how this can be accomplished.

    Thank you

  • How to feed the DFF using the API fields

    Two new fields are need to be added to the employee assignment staging table to support the new design of the approval.

    So two new fields must be filled in HR Oracle using data in the assignment table.

    -> Finance employee id Manager needs to be filled in the FDF (assignment attribute 1)

    -> The agent code must be entered in the FDF (2 attribute assignment).

    How can I fill these two DFFs using an API. I mean how to feed the fields of DFF using the API?

    Use the API-

    hr_assignment_api.update_emp_asg

    Pass the values for the parameters as needed-

    p_ass_attribute1

    p_ass_attribute2

    See you soon,.

    Vignesh

  • How to associate the data store of the target for the newly created using the API Interface

    How to create a new Interface under project, need to associate the data store target for mappings for the interface by using APIs "."

    Able to get the associated interface created temporary data store. You need to associate a new database model. How to do this using the API

    My code is,

    String pCode = "DEVELOPMENT";
    Context OdiContext = (mgr.getFinder (OdiContext.class)) .findByCode (pCode) (IOdiContextFinder);
    System.out.println (Context.getLastDate ());

    OdiInterface pInterface = new OdiInterface ("toDeleted_Interface", pFolder, context);
    pFolder.addInterface (pInterface);

    The list of ds < DataSet > = pInterface.getDataSets ();
    < DataSet > iterator itr = ds.iterator ();
    DataSet ds_nxt = itr.next ();

    PAlias string = "HRA_TMPL_DEFNS_TL";
    pOrder int = 0;
    OdiModel pModel = (mgr.getFinder (OdiModel.class)) .findByCode ("FILE_PM_MODEL") (IOdiModelFinder);
    String pName = "HRA_TMPL_DEFNS_TL";
    OdiDataStore pUnderlyingOdiDataStore = new OdiDataStore (pModel, pName);
    SourceDataStore pSourceDataStore = new SourceDataStore (ds_nxt, false, pAlias, pOrder, pUnderlyingOdiDataStore);
    ds_nxt.addSourceDataStore (pSourceDataStore);

    TargetDataStore tdata = pInterface.getTargetDataStore ();

    If (tdata.isTemporaryDataStore ())
    {
    }

    http://odiexperts.com/creating-interface-for-single-source-and-target/
    http://odiexperts.com/creating-temporary-interface-using-ODI-SDK/

  • How can we add lines by using the APIs in the Apex?

    Hi all

    In my application, I created the elements of text using the API like this:

    HTP.p ('< tr >');
    HTP.p ("< td width = 80px align =" center"> < b > ');
    HTP.p ("font color =" black"> ');
    HTP.p (APEX_ITEM. Text(1,c.empno,10,30,"','','"f01_'|| j||'"'));
    HTP.p ("< /b > < table > '");

    Now, I need to add a line button when you click on to insert a new row so that it can enter data...

    How do I do this?

    Thank you
    David...

    David,

    If the EMPNO is your primary key column, it cannot be changed. The update process identifies the line updated by EMPNO. If you want to allow users to change the EMPNO value, you will need to add another column to your tabular form that is used to store the primary key. In general, the primary key values must be meaningless, should not be exposed to the end user and only used for internal processing.

    Kind regards
    Marc

  • Can someone explain how to use the addProcessFormChildData API?

    Hi gurus:
    I have a scenario where; I need groups implemented in AD using AD connector as part of provisioning of the IOM to AD users. These Don t groups are already available in IOM, but these are received as parameters of authoritative source.
    I read the different thread, but can not find how to use the addProcessFormChildData API to perform these forms of child.
    Any help would be greatly appreciated!
    PD: My English is very bad!

    Use this post

    How to remove data from the user for the child form?

    How to find the key to AD provisioning process instance

    These will be useful.

Maybe you are looking for

  • Satellite P300 - Microphone is not working after installing Windows 7

    Hello I recently did a clean install of Windows 7 on my Satellite P300. The microphone has been fine with Vista but does not currently work with Windows 7.I tried to go to the sound section and it does not list the casting Mike - just struggling. Can

  • HP 2542 while i: hp 2542 all-in-1 offline

    Hi MYPRINTER AI saying offline can anyone help cheerrs

  • Downloads are blocked

    When I try to download anything on the internet download gets blocked immediately. When I check to see why the download is blocked it says that my security settings cannot, even if I made sure to allow downloads in my internet settings (as well as pr

  • Smartphones blackBerry SOS

    Hello Can I ask your advice? Last Tuesday, I received my BB "BOLD" of o2. Upon receipt, I noticed that the phone worked, and then entered into SOS mode. I did the soft reset - battery & sim - and this worked for 10 minutes then went off again. Phone

  • DMVPN to 4 PSI

    Hello I got a top range router at Headquarters with link connection 4 ISP and I have a router of low-end on each branch with 2 ISP link. The links is L2. Can I configure the DMVPN single policy for all the links connected and pass the traffic of all