Merging code in jdeveloepr 11g P2

Hi All,
Can any body point to any link where the ADF code merging steps are neatly documented? I would like to merge the code developed by multiple developers for a single complex screen. Each developer is developing/generating individual panel related code. Apart from general code merging problems I am also facing difficulty with UI control Id problem as different UI controlId name are same for different panel which are developed by different developer. Afraid to say that I don’t see any documentation on merging of ADf code, I feel oracle should think in direction and provide some merging tool with Jdeveloper.
Please let me know your thoughts
Any views/thought will be appreciated.
Cheers
raky

Hi,
for sure you used source code control. So to get all your developers work into one application. just check out the project on a single machine. Subversion is what we promote in JDeveloper 11 - but CVS works as well.
Note that a "merge" utility makes no sense because you wont be able to resolve conflicts in time and probably end up with a messed up application. If you didn't use source code control for team development the consider doing so in the future (the rest of the IT world is doing it as well).
I am not sure we want to encourage people to use merge tools.
Frank

Similar Messages

  • Web Service  Stateless Session request using JDeveloepr 11g (JAX-RPC)

    I have been trying to consume web Service by sending Stateless Session request to the system.
    I generated the Java Proxy using JDeveloepr 11g, using JAX-RPC.
    As it is Stateless I need to add following SOAP Header for authentication
    <soap:Header>
    <wsse:Security soap:mustUnderstand="1">
    <wsse:UsernameToken>
    <wsse:Username>[email protected]</wsse:Username>
    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-
    token-profile-1.0#PasswordText">adminOnDemand</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
    </soap:Header>
    To do this I tried clientuntcredentialprovider as suggested by most of the post online, but found of little help as the server complained of not be able to find the User Name and Password.
    To add to the mess problem I hit was I was not able to View the SOAP Request or Response sent by JDeveloper hence not helping me in debugging the same
    I have tried it on XML SPY by manually adding SOAP Header to the SOAP request and was able to find the response, but I have not been able to do the same using the JDeveloper 11g IDE.
    I have tried HTTP Analyzer assuming it might help, but unfortunately due to the huge size of WSDL, tool hanged my PC each time I loaded it.
    I know it should be fairly straight forward but just feel like missing something.
    Has anybody has got this thing working ?
    Regards,
    Deepak

    What exactly you mean that since your request is stateless you must send a Username token?
    Also, can you put here the code you used to populate the UNT.
    Finally, if possible, can you zip and email your wsdl, the http analyzer should be able to handle wsdls, even if they are huge.
    Thanks,
    Vishal

  • Migrating Sybase code to Oracle 11g

    Hi All,
    We have to migrate Sybase code to Oracle 11g.
    When we are doing a SELECT .. INTO in Sybase , even if the query is returning more than 1 row , sybase selects 1 of the rows and populates the variables.
    But while migrating this code to oracle, we are getting TOO_MANY_ROWS Exception.
    We need to migrate the code from SYBASE to ORACLE without disturbing the logic.
    Can someone please tell me the logic applied by SYBASE to pick up the record?
    And if someone has faced this issue, then what can be done to resolve this.
    Regards,
    Riddhisha Khamesra

    The result 3 is the last entered record (not the amount of records..).
    So the first approach to write a dummy procedure that will select all records in Oracle like:
    CREATE OR REPLACE PROCEDURE last_record
    v_arg1 OUT NUMBER
    AS
    BEGIN
    SELECT col1
    INTO v_arg1
    FROM tt_tmp ;
    END;
    and hopefully returns only the last record will fail with:
    SQL> variable outvar number
    SQL> exec last_record (:outvar)
    BEGIN last_record (:outvar); END;
    ERROR at line 1:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "SYSTEM.LAST_RECORD", line 9
    ORA-06512: at line 1
    One possible approach to get the last (and only the last) record that was entered into the table is to use rownum:
    The select might look like "select col1 from (select col1, rownum from tt_tmp order by rownum desc) where rownum=1;"
    So the procedure can be coded as:
    CREATE OR REPLACE PROCEDURE last_record
    v_arg1 OUT NUMBER
    AS
    BEGIN
    SELECT col1
    INTO v_arg1
    from (select col1, rownum from tt_tmp order by rownum desc) where rownum=1;
    END;
    Now calling it in SQL*Plus:
    SQL> variable outvar number
    SQL> exec last_record (:outvar)
    PL/SQL procedure successfully completed.
    SQL> print :outvar
    OUTVAR
    7
    The value 7 is the last record I've inserted into my tt_tmp table:
    SQL> select * from tt_tmp;
    COL1 COL2
    1 1
    2 2
    8 8
    7 7

  • Merge code concept

    Hi All,
             I need help on Merge code concept in BW.What exactly it does?,Is there any scope of performance tunning while merging two ODS's?.Any document explaining about it will also do.
    Waiting for your quick responces...
    Thanks,
    Rahul.

    Thanks for reply,
                            BW has an new concept called "Merge code".It will merge the data of two source ODS's into one single target ODS.This will have a routine in update rules which does this job. I wanted to know how this merge code works and whats the exact concept behind it and also is there any scope of optimising the merge process if we needed.
    Thanks,
    Rahul.

  • Jdeveloepr 11g 11.1.2.3.0

    Hi,
    I am using jdeveloper 11g 11.1.2.3.0.
    I have a jspx page where in all the pending contacts are displayed using a web service. I have converted the ouput text(email) to a command link which displays all the pending email id's.
    When I click on the command link(EMAIL_ADDRESS) I want the link to call the pendingContacts method in the backing java bean, access the command link value and dispay it in another input text field created(P_EMAIL_ADDRESS).
    Basically get the link value and set it in the input text field when clicked.
    I have created a PendingContacts_action() method for the command link. However, when I run the page and click on the command link the value doesn't show in the input text field.
    The code I have used is:
    public String PendingContacts_action() {
    try
    BindingContainer bindings = getBindings();
    System.out.println("In PendingContactsLink1_action");
    OperationBinding operationBinding;
    operationBinding = bindings.getOperationBinding("process");
    System.out.println("In PendingContactsLink2_action");
    String P_EMAIL_ADDRESS = null;
    if (P_EMAIL_ADDRESS != null)
    P_EMAIL_ADDRESS = this.getIt1().getValue().toString();
    System.out.println("P_EMAIL_ADDRESS " + P_EMAIL_ADDRESS);
    else {
    P_EMAIL_ADDRESS = null;
    System.out.println("P_EMAIL_ADDRESS " + P_EMAIL_ADDRESS);
    String DISPLAY_TYPE = "EXTERNAL";
    DCControlBinding cb;
    cb = (DCControlBinding) bindings.get("ALL_DETAILS_ITEM");
    System.out.println("In PendingContactsLink3_action");
    System.out.println("cb " + cb);
    Row currentRow;
    currentRow = cb.getCurrentRow();
    System.out.println("currentRow " + currentRow);
    String EMAIL_ADDRESS = null;
    if ((currentRow.getAttribute("EMAIL_ADDRESS")) != null)
    EMAIL_ADDRESS = (currentRow.getAttribute("EMAIL_ADDRESS")).toString();
    System.out.println(" EMAIL_ADDRESS " + EMAIL_ADDRESS);
    System.out.println("In PendingContactsLink4_action");
    String id;
    id = (String)currentRow.getAttribute("EMAIL_ADDRESS").toString();
    System.out.println(id);
    Map params = operationBinding.getParamsMap();
    System.out.println("params set : " + params.get("P_EMAIL_ADDRESS"));
    params.put("EMAIL_ADDRESS", EMAIL_ADDRESS);
    params.put("DISPLAY_TYPE", DISPLAY_TYPE);
    Object result = operationBinding.execute();
    catch(Exception e) {
    System.out.println("In PendingContactsLink5_action");
    System.out.println("IN Exception of UserPending" + e.getMessage());
    System.out.println("In PendingContactsLink6_action");
    this.getOt41().setRendered(false);
    System.out.println("In PendingContactsLink7_action");
    // this.getPanelBox1().setRendered(false);
    return null;
    when I run the page I get the following in the log:
    In PendingContacts_action
    In PendingContactsLink1_action
    In PendingContactsLink2_action
    P_EMAIL_ADDRESS null
    In PendingContactsLink3_action
    cb ALL_DETAILS_ITEM
    currentRow ViewRow [oracle.jbo.Key[0 0 0 ]]
    EMAIL_ADDRESS [email protected]
    In PendingContactsLink4_action
    [email protected]
    params set : null
    I don't know why I am getting the null value.
    I will appreciate any help.
    Thanks,
    Sally

    Thanks Timo. I tried to set a partial trigger on the inputText in the UI which points to the command link.
    Partial Triggers - t4:c4, where c4 is the Id for the command link. I still don't see the result when I run the page and click on the command link.
    I added the bit of code you provided as follows:
                    String EMAIL_ADDRESS = null;
                    if ((currentRow.getAttribute("EMAIL_ADDRESS")) != null)       
                       EMAIL_ADDRESS = (currentRow.getAttribute("EMAIL_ADDRESS")).toString();
                      System.out.println(" EMAIL_ADDRESS " +  EMAIL_ADDRESS);
                    currentRow.setAttribute("P_EMAIL_ADDRESS", EMAIL_ADDRESS );However I got the following exception in the log after execution:
    IN Exception of UserPendingJBO-25058: Definition P_EMAIL_ADDRESS of type Attribute is not found in ViewDefALL_DETAILS_ITEM4_48.
    The binding that has the attribute P_EMAIL_ADDRESS is
    operationBinding = bindings.getOperationBinding("process");
    and the binding with attribute EMAIL_ADDRESS(the command link) is
    cb = (DCControlBinding) bindings.get("ALL_DETAILS_ITEM");
    I also have the following bit of code which I'm not sure is required:
                          Map params = operationBinding.getParamsMap();
                           params.put("P_EMAIL_ADDRESS", P_EMAIL_ADDRESS);  //this gives an error since P_EMAIL_ADDRESS variable is not declared.
                           params.put("DISPLAY_TYPE", DISPLAY_TYPE);
                           Object result = operationBinding.execute();Thanks,
    Sally

  • OIM 10g Utility Factory code -- Upgrading to 11g

    Hi all,
    I have a custom code in 10g which accesses the OIM API.
    It uses the UtilityFactory methods.
    We are now moving to 11g and I looked at the 11g documentation and see that it has the "OIMClient". It looks like it still supports the UtilityFactory.
    Can I still use the same code and configuration with 11g?What all needs to be changed if I continue using the UtilityFactory method?
    What needs to be done to change to the "OIMClient"
    Thanks
    M

    Officially I don't see the tcUtility method being mentioned in any OIM11g document, but only the usage of oimclient. Unofficially it can be used, search the forums where folks have provided a solution. (like: https://forums.oracle.com/forums/thread.jspa?messageID=9840840 )
    For oimclient, follow this: http://download.oracle.com/docs/cd/E17904_01/doc.1111/e14309/apis.htm#BCFEIBHH
    Note not all the code would work as it is with 11g, specially with regards to requests, object forms etc.
    HTH,
    BB

  • MERGE: unexpected behaviour, oracle 11g

    Hi all,
    I'm facing a strange behaviour with Merge statement.
    In particular in doc Oracle we read:
    "MERGE is a deterministic statement. That is, you +*cannot update*+ the same row of the target table multiple times in the same MERGE statement."
    My source table has two equal key rows and the "merge statement" merge the row with the last value in the source table.
    How Is this possible ?
    thank you.

    VERSION:
    SQL> select * from v$version
      2  ;
    BANNER
    Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    SQL>MERGE, in a dynamic context:
    v_sql :=
    'MERGE INTO dwh_cdl.dim_cost_hierarchy dim
             USING (SELECT DISTINCT TRIM (item_code) id_item,
                                    NVL (TRIM (CATEGORY), ''ND'') CATEGORY,
                                    r1.r1_code r_1,
                                    r2.r2_code r_2,
                                    r3.r3_code r_3,
                                    r4.r4_code r_4,
                                    w.item_description desc_item
                                            FROM '
                                            || v_wrk
                                            || ' w INNER JOIN dwh_cdl.lu_r1 r1
                                                 ON (w.r_1 = r1.r1_code)
                                                 INNER JOIN dwh_cdl.lu_r2 r2
                                                 ON (w.r_2 = r2.r2_code)
                                                 INNER JOIN dwh_cdl.lu_r3 r3
                                                 ON (w.r_3 = r3.r3_code)
                                                 INNER JOIN dwh_cdl.lu_r4 r4
                                                 ON (w.r_4 = r4.r4_code)
                                    ) wrk
             ON (    dim.id_item = wrk.id_item
                 AND dim.category = wrk.category
                 AND dim.r1_code = wrk.r_1
                 AND dim.r2_code = wrk.r_2
                 AND dim.r3_code = wrk.r_3
                 AND dim.r4_code = wrk.r_4
                 AND dim.wid_country = '
                || pkg_global.v_country
                || ')
             WHEN MATCHED THEN
                UPDATE
                   SET dim.desc_item = wrk.desc_item
             WHEN NOT MATCHED THEN
                INSERT (wid_item, id_item, CATEGORY, desc_item, type_item,
                        flag_valid, r1_code, r2_code, r3_code, r4_code,
                        wid_country, date_in)
                VALUES (pkg_util.get_next_val (''DIM_COST_HIERARCHY''), wrk.id_item,
                        wrk.CATEGORY, wrk.desc_item, NULL, 1, r_1, r_2, r_3, r_4,
                || pkg_global.v_country
                || ', SYSDATE)';
    EXECUTE IMMEDIATE v_sql;The USING table has duplicate key rows. So when join with "dim_cost_hierarchy" Oracle should issue error ! But, it doesn't !
    It gets the last one row value.

  • [c++] merge code in 3 svn snapshots

    hi,
    i'm finishing a university project of mine and i've got problems with my sourcecode. its somewhat complicated. i have my code in svn repository a, this code is (partially) a fork of programm x in repository b. of course x was developed further over the last few months and so there is also a new revision of x, we may call c.
    my strategy to bring my code and the official code of x in sync looks something like this:
    diff a and b to get a list of files i changed
    diff changed_files of a and c to get a list of "conflicts"
    finally merge by hand...
    doesn't look like an exciting thing to do. so the purpose of my post here is to find out if there is some kind of tool available in the open source world to help me merging the code?

    First of all make sure that you understand the code. If not, it's going to be a mess.
    Then I advise using a tool like meld or kdiff3 to merge the files graphically, it's imho the most comfortable and error-free way to do so.

  • Is BIBridge Code Compatible with 11g?

    Hi All,
    I am trying to call OBIEE reports from Fusion MW (11g) via BPEL, I am trying to connect to BI server through BIBridge code. I know it can be done in 10g but I am not able to do it in 11g. Has anyone done this before?
    Please let me know how to get this thing working?
    Regards.

    I think I had already enough with this drudgery!
    I 'd better stick to the official policy of the company for pure open source J2EE tools and frameworks such as Eclipse.
    However, you have been most helpful.
    Alles Gute!
    For the unlucky colleagues who may need some info, working on a project and not a book tutorial, the following might save some time and frustration:
    This is part of the output of jarscan:
    ===============================================
    Found: Authentication
    Class: weblogic.security.services.Authentication
    Package: weblogic.security.services
    Library Name: weblogic.jar
    Library Path: C:\oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar
    ===============================================
    ===============================================
    Found: Authentication
    Class: weblogic.servlet.security.ServletAuthentication
    Package: weblogic.servlet.security
    Library Name: weblogic.jar
    Library Path: C:\oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar
    ===============================================
    C:\oracle\Middleware\modules\com.bea.core.weblogic.security.auth_1.0.0.0.jar for SimpleCallbackHandler
    ===============================================
    Found: AuthenticatedSubject
    Class: weblogic.security.acl.internal.AuthenticatedSubject
    Package: weblogic.security.acl.internal
    Library Name: wlthint3client.jar
    Library Path: C:\oracle\Middleware\wlserver_10.3\server\lib\wlthint3client.jar
    ===============================================
    Edited by: Nick Aiva on Feb 20, 2010 11:41 AM

  • Adding a java class code in BPEL 11g

    Hi Friends ,
    i m doing one simple example of calling a java class from bpel ,
    1. first i created a java class
    2. After that in my project i imported the jar file of the same class , and i am using JavaEmbedding
    for creating one object of that class and calling one method which return me the string result and finally i am setting the result in bpel variable.
    the application is build successfull but when i am deploying it i am getting following error
    [02:31:19 PM] Error deploying archive sca_JavaCall_rev1.0.jar to partition "OrderProcessing" on server soa_server1 [http://10.45.4.206:8006]
    [02:31:19 PM] HTTP error code returned [500]
    [02:31:19 PM] Error message from server:
    There was an error deploying the composite on soa_server1: Deployment Failed: Error occurred during deployment of component: JavaCallBPELProcess to service engine: implementation.bpel, for composite: JavaCall: ORABPEL-05250
    Error deploying BPEL suitcase.
    error while attempting to deploy the BPEL component file "/u04/FMW_HOME/user_projects/domains/Training_domain/servers/soa_server1/dc/soa_3e8c5747-aba0-49b7-91d4-56f74bec87b8"; the exception reported is: java.lang.RuntimeException: failed to compile execlets of JavaCallBPELProcess
    This error contained an exception thrown by the underlying deployment module.
    Verify the exception trace in the log (with logging level set to debug mode).
    [02:31:19 PM] Check server log for more details.
    [02:31:19 PM] Error deploying archive sca_JavaCall_rev1.0.jar to partition "OrderProcessing" on server soa_server1 [http://10.45.4.206:8006]
    [02:31:19 PM] #### Deployment incomplete. ####
    [02:31:19 PM] Error deploying archive file:/C:/JDeveloper/mywork/Trimble/JavaCall/deploy/sca_JavaCall_rev1.0.jar
    (oracle.tip.tools.ide.fabric.deploy.common.SOARemoteDeployer)
    please tell me what is the problem.

    You have to use the below value there.
    +2. After that in my project i imported the jar file of the same class ,+
    There are 2 things, if you are not going to reuse the same code, its better to use Java Embedded component.
    If you are going to reuse the same methods from the class then it make sense to import as jar file and use it.
    Thanks,
    Vijay

  • Please help with merging code

    With the help of this forum I have a program that decrypts a password that was previously encrypted. I'm trying to encorporate this decrypt code into a program of mine and having a problem with an undeclared Exception. Can someone help?
    Here's the short decrypt program that works:
    import java.io.*;
    import java.security.*;
    import javax.crypto.*;
    import sun.misc.*;
    public class DecryptPassword
         public static void main(String args[]) throws Exception
              if(args.length<1)
                   System.out.println("Usage : DecryptPassword text");
                   return;
              Security.addProvider(new com.sun.crypto.provider.SunJCE());
              Key key;
              try
                   ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
                   key=(Key)in.readObject();
                   in.close();
              }      catch(FileNotFoundException fnfe)
                        KeyGenerator generator= KeyGenerator.getInstance("DES");
                        generator.init(new SecureRandom() );
                        key=generator.generateKey();
                        ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
                        out.writeObject(key);
                        out.close();
              Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
                   cipher.init(Cipher.DECRYPT_MODE,key);
                   BASE64Decoder decoder = new BASE64Decoder();
                   byte[] raw = decoder.decodeBuffer(args[0]);
                   byte[] stringBytes = cipher.doFinal(raw);
                   String result = new String(stringBytes,"UTF8");
                   System.out.println(result);
    }Now here's the code snippet. I call this function from another part of the program with DecryptPassword();
         public void DecryptPassword()
              Security.addProvider(new com.sun.crypto.provider.SunJCE());
              Key key;
              try
                   ObjectInputStream in=new ObjectInputStream(new FileInputStream("des.key"));
                   key=(Key)in.readObject();
                   in.close();
              }      catch(FileNotFoundException fnfe)
                        KeyGenerator generator= KeyGenerator.getInstance("DES");
                        generator.init(new SecureRandom() );
                        key=generator.generateKey();
                        ObjectOutputStream out=new ObjectOutputStream(new FileOutputStream("des.key"));
                        out.writeObject(key);
                        out.close();
              Cipher cipher=Cipher.getInstance("DES/ECB/PKCS5Padding");
              cipher.init(Cipher.DECRYPT_MODE,key);
              BASE64Decoder decoder = new BASE64Decoder();
              byte[] raw = decoder.decodeBuffer(EncryptedRemedyPassword);
              byte[] stringBytes = cipher.doFinal(raw);
              String result = new String(stringBytes,"UTF8");
              EncryptedRemedyPassword = result;
              //System.out.println(result);
         }Problem is, what do I do with the "throws Exception" that is a part of the Main program in the first set of code? I assume that's the problem.
    Thanks.
    James

    Please don't write the name of your method with an uppercase.
    There is two ways to solve your problem :
    1) you declare that your method throws an Exception like this :
    public void decryptPassword() throws Exceptionbut, for each call of this method you will have to put it in a try{} catch(Exception e) {} clause.
    2) you put all the code of your method in a try clause like this :
    public void decryptPassword() {
        try {
             // all the code
        catch(Exception e) {
            System.out.println(e);
    }I hope this helps,
    Denis

  • QR code date merge error.

    When trying to create a qr code data merge in indesign, I cannot seem to create actual QR codes.
    Instead they are previewing as text.
    How can I create a QR data merge code with QR codes?

    No real tuts that I am aware of. Here is a link to a sample set of files.
    In the ZIP is an ID file, the merge text (tab delimited),4 images for the merge (hey, it's Disney character themed), and most importantly, an Excel file. In the Excel file, the last column is a calculated field that pulls together info from the other fields and adds the strings (text) that is needed.
    I no longer have access to ID 2014. I used the trial version to help someone else do this and to prepare this sample. I suspect I can answer your questions without being able to actually see the ID file should you have any.
    Take care, Mike
    Dropbox - qr-vcard-disney-sample.zip

  • Who can have ADF 11g Source Code?

    Hi all,
    Can I have the source code of ADF 11g when I buy ADF license and support for ONE user?

    You need a support contract, open a SR, ask for the source and then sign some agreements on how to use the source code.
    Timo

  • Using multiple 'for' statements in an 11g pivot query

    oracle: 11.2.0.3
    Basically I need to pivot around 2 different columns (I think I need to 'for' clauses').
    See below.
    Below is pseudo code from non-11g pivot statement.
    I am trying to figure out how to do with pivot.
    -- note field names are pseudo code and not real values
    -- note that the field after 'then' in the case statement is different for the 2 pivots
    select            my_id,
                        max( (case when myfield = 'MYVALUE1' then mydate_date else null end)) as MYVALUE1,
                        to_number(max( (case when myfield = 'MYVALUE'   then myfieldvalue else null end))) as MYVALUE2,
                        min (insert_date ) insert_date
      from mytable
    group by myidso if I'm doing this in 11g pivot syntax I am stuck at:
    -- if I add max(fieldvalue), I think I will pivot too many times. I just want 2 extra columns. Can I add a second 'for' statement?
    select *
    from mytable
    pivot (
               max(mydate)
               for myfield in ('MYVALUE1' as MYVALUE1)
    )

    My concern about trying that is that SQL will do extra pivots that I won't use. Which means more work. I saw a blog entry by someone in the oak table (I can't remember who or the link) that showed an example that the pivot clause has about the same logical IOs as using the old max(case statement) but the response time was much better. This was a very rare case where performance is significantly improved without affecting LIOs. So there isn't a good measure. I wish I had the link and generally people in the oak table are very good. So I trust posts by them.
    so basically I am not sure how to measure whether doing the extra pivots are using extra resources. This is going to be a fairly performance intensive query due to the volume of data it has to feed through.
    I'll give it a try, but my inability to measure it is a bit concerning.

  • Pro*c errors in 11g. -- Compiles fine in 10g.

    Hi,
    We are planning to migrate from 10g to 11g so started compiling our Pro*c code in to 11g. Got several errors and couldn't trace. So to investigate further I have written a basic pro*c program as follows:
    #include <stdio.h>
    #include <sqlca.h>
    /*#include <sqlcpr.h>*/
    #include <oraca.h>
    #include <sqlda.h>
    /* Declare error handling function. */
    void sql_error();
    int main(int argc, char** argv)
    char user[]="myusername";
    char pwd[]="mypassword";
    char msg_buf[51]="";
    /* Register sql_error() as the error handler. */
    EXEC SQL WHENEVER SQLERROR DO sql_error("ORACLE error\n");
    EXEC SQL CONNECT :user IDENTIFIED BY :pwd;
    EXEC SQL
    INSERT INTO hello_world
    VALUES ('Hello world!');
    EXEC SQL COMMIT;
    EXEC SQL
    SELECT msg
    INTO :msg_buf
    FROM hello_world
    WHERE rownum <= 1;
    printf("%s\n", msg_buf);
    return(0);
    void sql_error(char *msg)
    char err_msg[128];
    int buf_len, msg_len;
    EXEC SQL WHENEVER SQLERROR CONTINUE;
    printf("%s\n", msg);
    buf_len = sizeof (err_msg);
    sqlglm(err_msg, &buf_len, &msg_len);
    if (msg_len > buf_len)
    msg_len = buf_len;
    printf("%.*s\n", msg_len, err_msg);
    EXEC SQL ROLLBACK RELEASE;
    exit(1);
    }And then did the following:
    proc iname=hellodb.pc MODE=ORACLE it has created a .c file.
    Now run
    /opt/ansic/bin/cc -g  -I. -I${ORACLE_HOME}/precomp/public -c hellodb.c -o hellodbwhich gave me a big list of errors / warnings.
    "hellodb.c", line 117: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlcxt ( void **, unsigned int *,
             ^
    "hellodb.c", line 119: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlcx2t( void **, unsigned int *,
             ^
    "hellodb.c", line 121: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlbuft( void **, char * );
             ^
    "hellodb.c", line 122: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlgs2t( void **, char * );
             ^
    "hellodb.c", line 123: warning #2837-D: omission of explicit type is
              nonstandard ("int" assumed)
      extern sqlorat( void **, unsigned int *, void * );
             ^
    "hellodb.c", line 316: warning #2223-D: function "sqlglm" declared implicitly
      sqlglm(err_msg, &buf_len, &msg_len);
      ^
    "hellodb.c", line 342: warning #2223-D: function "exit" declared implicitly
      exit(1);I did the same in another server which is having 10g installation and it went on well and created the exe hellodb.
    Any idea what these errors are?
    Thanks in advance,
    Deep.
    Edited by: user11984804 on 06-Apr-2010 03:49

    Hello,
    We face the similar problem.Our database is migrated to 11.2.0.2 from 10g.
    PRO*C compilation is not happening with so many warnings and 1 error below
    error #4313-D: no prototype or definition in scope for call to memory allocation routine "malloc".
    Could you please provide the solution.
    we are using the following command to compile PRO*C
    make -f $ORACLE_HOME/precomp/demo/proc/demo_proc.mk EXE=$program OBJS=$program.o PROCFLAGS="sqlcheck=full userid=<username>/<password>@oraclesid" build
    Edited by: user12058331 on 30-Jun-2011 04:02
    Edited by: user12058331 on 30-Jun-2011 04:05

Maybe you are looking for

  • How to integrate 2 diff transactions into one

    Hi All, I have a requirement to combine trasaction FBPM(SAPFPAYM) & Z_ACHEMAIL(RFFOAVIS_FPAYM) transactions into single transaction i.e As soon as the file is released through transaction code FBPM then the email notifications should be sent automati

  • Goods Receipts Report in MM

    How to write a Goods Receipts Report: Having A detailed report for listing goods receipts by material wise for a given period which contains detailed information like PO No, PO Date, Plant, GR ref, GR date, Material description. [Tables involved: EKK

  • Canon DC-10 DVD Camcorder and iMovie (VR/Video DVD) *complicated*

    Hi Guys, I have a complicate issue and I have no idea how to do it. The Problem: I like to cut and edit my short movies which I have recorded with the Canon DC-10 DVD Camcorder. Because the Camcorder only writes small sized DVDs I have to copy it ont

  • Email PDF from Firefox -- keeps freezing

    This may belong in a Firefox forum, but thought I'd give it a shot here. I frequently use the Print>PDF>email PDF function from within Firefox. Recently, however, this has stopped working -- the "Printing Progress Bar" freezes, necessitating a Force

  • Newly installed content viewer crashes

    Hi, ios 8.1.2, Content viewer new installed, Crashs on every Start while updating folios ...