Writing Oracle Application with Pro*C

Hi,
Does anyone know how to write an application in Oracle
(probably using Pro*C) such that, the results produced by a sql
query can be produced with minimum response time ?
I have tried using cursors, but I realised that the results
are not produced as it goes along, meaning, it has to wait for
the "OPEN curosr" command to finish, before we get our first few
tuples.
Also, there seems to have some problem for using hints in
Pro*C, I have tried using statement such as "SELECT /*+ USE_NL
(R) */ ... " But it is as equivalent to not having that hint. I
tried the samething in sqlplus, it works fine, but not with my
Pro*C application.
Is there anyone out there doing similar stuff ? I would
appreciate if you can share some experience with me. Thank you
very much.
Regards,
Chia Chou
null

I have written many Pro*C programs and have been an Oracle DBA
for over 5 years. Response time is an interesting topic. Your
questions does not seem to focus on response time. Response time
is usually improved by database design and effective SQL. Almost
everything else is insignificant. Try doing explain plan's to
view your SQL's path and optimize this for every SQL that is in
your application. I have written Pro*c applications that operate
in parallel putting hundreds of thousands of records in
reasonable amounts of time. You can also improve time by using
array processing. As far as SELECT statements, if there are
multiple rows returned, cursors are the only way to go. Anyway,
if you have other concerns or questions, drop me an e-mail.
-Jim
[email protected]
Chia Chou (guest) wrote:
: Hi,
: Does anyone know how to write an application in Oracle
: (probably using Pro*C) such that, the results produced by a
sql
: query can be produced with minimum response time ?
: I have tried using cursors, but I realised that the results
: are not produced as it goes along, meaning, it has to wait for
: the "OPEN curosr" command to finish, before we get our first
few
: tuples.
: Also, there seems to have some problem for using hints in
: Pro*C, I have tried using statement such as "SELECT /*+ USE_NL
: (R) */ ... " But it is as equivalent to not having that hint.
I
: tried the samething in sqlplus, it works fine, but not with my
: Pro*C application.
: Is there anyone out there doing similar stuff ? I would
: appreciate if you can share some experience with me. Thank you
: very much.
: Regards,
: Chia Chou
null

Similar Messages

  • Integration of Oracle applications with IDM

    Hi All,
    Please trow some light on how do we integrate Oracle applications with Oracle IDM(Identity Management).
    Is MRM capable of providing inbounding and outbounding webservices. If not do we have any adapters for integeating the other applications with IDM.
    What is the good practice to integrate a BPEL service with IDM.
    Thanks in advance.
    Regards,
    Naveen

    Hi,
    Have a look at this thread.
    Installation Procedure for APEX
    Installation Procedure for APEX
    Regards,
    Hussein

  • C++ application with pro*c generating random errors

    Hi there,
    As described, I have a C++ application with a pro*c module to access the DB. The problem is that it produces random errors.
    Randomly, it fails executing a query, but other times it fails in other modules, or just opening a cursor. I list you two examples of queries that fail:
    ================================================================
    CHECK_CONNECTED
    EXEC SQL BEGIN DECLARE SECTION;
    long Id_db;
    long startValidityMicroseconds_db;
    long stopValidityMicroseconds_db;
    VARCHAR name_db [LEN_NAME + 1];
    VARCHAR creationDate_db [LEN_DATE + 1];
    VARCHAR startValidityDate_db [LEN_DATE + 7 + 1];
    VARCHAR stopValidityDate_db [LEN_DATE + 7 + 1];
    short name_db_ind;
    EXEC SQL END DECLARE SECTION;
    // Set the key
    Id_db = Id
    EXEC SQL SELECT NAME,
                             TO_CHAR(CREATION_DATE, :DATE_FORMAT),
                             TO_CHAR(START_VALIDITY_DATE, :DATE_FORMAT),
                             TO_CHAR(STOP_VALIDITY_DATE, :DATE_FORMAT),
                             NVL (START_VALIDITY_MICROSECONDS ,0),
                             NVL (STOP_VALIDITY_MICROSECONDS ,0),
    INTO :name_db :name_db_ind,
         :creationDate_db,
         :startValidityDate_db,
         :stopValidityDate_db,
         :startValidityMicroseconds_db,
         :stopValidityMicroseconds_db,
    FROM ROP_TB
    WHERE ID = :Id_db;
    ================================================================
    ================================================================
    CHECK_CONNECTED
    EXEC SQL BEGIN DECLARE SECTION;
         long objectId_db;
         VARCHAR objectName_db [LEN_OBJECT_NAME + 1];
    EXEC SQL END DECLARE SECTION;
    strncpy ((char *) objectName_db.arr, object_db.c_str (), LEN_OBJECT_NAME);
    objectName_db.len = object_db.length ();
    EXEC SQL DECLARE CU_OBJECT_TB CURSOR FOR
    SELECT OBJECT_ID INTO :objectId_db
    FROM OBJECT_TB
    WHERE OBJECT_NAME = :objectName_db;
    EXEC SQL OPEN CU_OBJECT_TB;
    ================================================================
    It keeps failing randomly and I don't know really know what my eyes are missing. Sometimes I get a "simple" seg fault because a query returned invalid values and my application crashes, other times I get oracle errors.
    I really hope someone could help me here :)
    Kind regards!

    Well, random because it is not always the same nor the error code.
    - Sometimes I get segmentation fault on "sqlcxt";
    - "ORA-01024: invalid datatype in OCI call" on queries that usually work
    - "ORA-03114: not connected to ORACLE" on queries that usually work
    I have run valgrind and the only "place" where there could be an issue is reported to be caused by oracle libs:
    ==27055== 8,214 bytes in 1 blocks are possibly lost in loss record 193 of 206
    ==27055== at 0x40046FF: calloc (vg_replace_malloc.c:279)
    ==27055== by 0x43E2975: nsbal (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42F04E6: nsiorini (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x4300FD2: nsopenalloc_nsntx (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42FFD73: nsopenmplx (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42F91FD: nsopen (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42BDAFE: nscall1 (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x42BB0D7: nscall (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x435F653: niotns (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x43F9E40: nigcall (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x436AD4B: osncon (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)
    ==27055== by 0x41EAA31: kpuadef (in /home/oracle/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1)

  • Integrate Oracle Applications with local HTML DB to run APIs

    Hi,
    Iam new to HTML DB. I have few questions in my mind to clarify.
    Currently iam working on API testing in one of the Oracle Application module.
    During the API testing we call some APIs(usually some packaged procedures) from SQL Plus and check for the business rules and print the results to the SQL terminal using dbms_output.put_line. We have several test cases and for each test case we execute an API from the backend.
    Now after going thru the HTML DB forum i got an idea that i will develop a HTML page in my local HTML DB for all these test cases where i will select the test case that needs to be executed and run it and the results are published on the web page.
    Question-1: Can i integrate my oracle apps with my local HTML DB so that i can call those APIs ? If yes, how can we do it ?
    Question-2: Can i call my plsql procedures from the HTML DB on a button click ?
    Thanks,
    Raj.

    Hi,
    Iam new to HTML DB. I have few questions in my mind to clarify.
    Currently iam working on API testing in one of the Oracle Application module.
    During the API testing we call some APIs(usually some packaged procedures) from SQL Plus and check for the business rules and print the results to the SQL terminal using dbms_output.put_line. We have several test cases and for each test case we execute an API from the backend.
    Now after going thru the HTML DB forum i got an idea that i will develop a HTML page in my local HTML DB for all these test cases where i will select the test case that needs to be executed and run it and the results are published on the web page.
    Question-1: Can i integrate my oracle apps with my local HTML DB so that i can call those APIs ? If yes, how can we do it ?
    Question-2: Can i call my plsql procedures from the HTML DB on a button click ?
    Thanks,
    Raj.

  • Run client of Oracle Application with Linux

    Hi Evrybody,
    We are looking for relace our applications with Oracle Application (financial) and for our project if is very important to use client machines with Linux OS. Anybody have experience about it?
    If yes, wich Linux is better for you?
    Best regards.
    Mietek Zamroz

    HI,
    We are also looking for Linux clients for Oracle Applications 11i.
    Oracle announced once a Version based on a standard java, not an exclusively Windows-modified jinitiator.
    We are thinking of getting an application server running Win2k and access it with terminal services from
    Linux. It works but it is not ideal in terms of scalability and cost, as the MS stuff does not cluster.

  • Integrating Oracle Applications with Siteminder for SSO.

    We currently have a Oracle Apps implementations with Oracle 9iAS as Application server. We are planning to integrate it in SSO using Netegrity Siteminder.
    Please let me know your thoughts on the following
    1) Additional softwares or patches needed to be applied at Oracle Application Server level before integrating with Siteminder. Do we need to install Oracle SSO seprately or does it come as part of Oracle 9iAS.
    2) Also how will we implement SSO using siteminder without OID.
    Any documents on it will help.

    The Netegrity Siteminder Webagent will authenticate to some third party, probably the corporate LDAP. Using Oracle SSO (OSSO) is required and a java plugin needs to be customized. See:
    Oracle® Application Server Single Sign-On Administrator's Guide
    10g Release 2 (10.1.2) < I know different version but doesn't matter
    B14078-02
    Specifically Chapter - 13 Integrating with Third-Party Access Management Systems. That is a minor task.
    Loading OID is a prerequisite and needs to contain the users that will need access to the protected resources in the environment. If it's a small amount of users, manually maintaining OID may not be a big deal utilizing OIDDAS but if it is a large amount, then this effort is a big deal. Big deal meaning a load utilizing the bulkload utility and a custom job that syncronizes the "Corporate LDAP" with OID. Mapping is important. External dependancy with the "Corporate LDAP" folks.
    Another couple of important things to consider:
    1. The seeded users in OID, such as orcladmin will most likely not be in the "Corporate LDAP" so once Netegrity Simplified Sign On (SSO) comes into play, those users are locked out. Orcladmin is a superuser in OIDDAS. For that reason, server administrators or DBA's that are in OID need to be granted OIDDAS privileges prior to enabling the Netegrity agent to prevent being locked out of that important but sensative tool. Disabling and re-enabling SSO is as simple as editing 2 config files and bouncing a few things though.
    2. The OIDDAS Password lockout policy will start locking users after 60 days with no warning unless changed. If oidadmin gets locked, the fix is Note:251354.1. Very important to change the policy since it will be handled by the "Corporate LDAP". Note:251354.1 covers this. Basically using the oidadmin utility, change the "Password Expiry Time" from the default 5184000 to zero "0" which turn off the policy.
    The realms that should be protected on the Netegrity policy server are both infrastructure. 7777/oiddas and 7777/sso need to be protected realms on the policy server. If you have a protected application going to mid-tier applications like 7778/discoverer/viewer, they get redirected to the infrastructure 7777/sso because if the directive in mod_osso.conf. Forms will be protected by the 7777/sso realm as well. On the Netegrity Policy Server, unprotected sub-realms can be created under protected realms.
    The custom java plugin tells Oracle to trust the "Corporate LDAP" for authentication but authorization can still be performed within OID.
    This all sounds difficult but it is really simple. The only part than can get difficult and time consuming is the OID load. Hopefully you get Siteminder DAS access to administer your realms on the Policy server.
    Hope this helps! - Ron

  • Oracle Spatial with Pro*C

    Is it recommended or possible to develop an application for Oracle Spatial using Pro*C/C++?
    null

    Yes. PRO*C fully supports objects, and
    MDSYS.SDO_GEOMETRY is just an Oracle object.
    Thanks.
    Dan

  • Re:Cloning Oracle Applications with Discoverer .

    HI ,
    We have configured Discoverer 11.1.1.4.0 on R12.1.3.
    Request to kindly provide the document id to clone R12.1.3 including 11.1.1.4.0
    Regards .

    We have configured Discoverer 11.1.1.4.0 on R12.1.3.
    Request to kindly provide the document id to clone R12.1.3 including 11.1.1.4.0Rapid Clone Documentation Resources For Release 11i and 12 [ID 799735.1]
    http://download.oracle.com/docs/cd/E17904_01/index.htm
    http://www.oracle.com/pls/as111140/search?word=Cloning&Search.x=0&Search.y=0&Search=Search
    Thanks,
    Hussein

  • Help me, why Oracle Application raised error:no such trigger.

    Dear friend,
    I have developed a form program in FORMs 6I, and it works in my ORACLE APPLICATIONS ,but after it is installed in another Server,it popup the error windown, it said : FRM-40700:No such trigger:menu_to_appcore.
    I don't know why, somebody told me ,the oracle application with different vesion will cause this problem, is it true?, if it's true, how can i avoid it if i have to use those triggers.
    Thanks a lot.
    regards,
    willen 2002/06/27

    Willen,
    I suggest you review the Oracle Applications Developer's Guide (http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf). More than likely, your form does not include one or more of the required libraries or other subclassed objects required for an Applications Form. I highly recommend you base any Custom Form on the provided TEMPLATE.fmb that comes with Apps. This will ensure you have all the required objects in your form and the library paths are neutral (no hard-coded file paths to the library - which could be the cause of your error).
    somebody told me ,the oracle application with different vesion will cause this problem,As to this statement, you need to contact your DBA or Apps Server admin to find out which version of Oracle Forms is installed on the Apps Server. Your development environment must match. For example, Forms 6i patchset 18 installed on the Apps Server, you should have Forms 6i patchset 18 installed on your workstation. It will work if your workstation has a lower version than the Apps Server, but you're asking for trouble if you have a newer version installed on your workstation.
    Hope this helps.
    Craig...
    P.S. The E-Bus Suite forum is the more appropriate forum for an Applications question. This forum is for non-EBS Forms development. :-)

  • How to register custom form into Oracle Applications

    I created a custom form based on a custome table, then I registered in Oracle applications, but it is not opening properly in Oracle applications. It is running fine outside of Oracle Applications. Are there any standard packages which I need to attach while creating this custom form.
    Please help.

    1. Copy your form (test.fmb) into $AU_TOP/forms/US
    2. Compile with f60gen
    3. Copy the test.fmx file to $PRODUCT_TOP/forms/US
    4. Login to Oracle Applications with sysadmin user
    5. Select Application Developer responsibility
    6. Navigate to Application - Form -
    7. Enter the values for following parameter
    Form = test
    Application = You can select from LOV
    User Form Name = Enter as you like
    Description = Enter if any
    8. Navigate to Application - Function
    9. Enter the values in the function form
    in Description TAB - Enter the value for Function, User Function Name, Description
    in Properties TAB - Type = FORM
    Maint.Mode Support = None
    Context Dependence = Responsibility
    in Form TAB - Form = Select your form name that already registered (above one)
    Application = Will display
    Parameters = STARTUP_MODE= TEST
    10. Now you can attach the form in Menu then Responsibility
    Revert back if you have any query.
    Regards,
    S. Velusamy Raja
    Oracle Apps DBA

  • InterMedia Image with Pro*C?

    Can I write InterMedia Image application with Pro*C? Where may I get more information?
    Thanks,
    Louis

    I am sure you can. But we don't ahve any pro*c examples. We dor have an OCI example in "c". That might be helpful. It is in <ORACLE_HOME>/ord/img/demo/imgdemo.c
    The above should be a good starting point, you might want to ask in the proc*c forum how LOBs are handled.
    Larry

  • Very very urgent Discoverer reports for non oracle applications

    Hi,
    My client is using discoverer 10g with R12.He is using different non oracle applications like BRM Application (database is oracle only) for that they wants to develop discoverer reports.It is possible to integrate with non oracle applications with discoverer.
    Can you please suggest me.It is very very urgent.
    Thanks & Regards.

    Hi
    You're really not supposed to manage a non-Apps mode EUL and an Apps mode data within the same URL. Having said that, I have a hunch you just might be able to do it and there are 2 ways. You can either make the data available to user who login using E-Business Suite credentials or you can make it available to users who have database credentials. The first one is straightforward and you do it just like any other data. Let me give you some hints regarding the second method.
    First of all I ahve not personally tried this and you may find that because Discoverer was initially set up in Apps mode that somewhere down the line it will make the suers connect this way. However, the following is worth a try.
    I would a new schema in the Oracle E-Business database to manage the link to BRM and create a database link from this user to a user in the BRM database. You will also need to create user accounts within the database for anyone who needs to login and run BRM reports.
    Next, I would create views in this new schema pointing at data across the BRM link, thus allowing Discoverer to think these are local objects.
    In Discoverer Administrator, you would need to log in to Discoverer using the owner of the EUL - NOT using SYSADMIN or any of the other E-Business Suite accounts. You should log in with the Oracle Applications checkbox unchecked. You can now create new business areas on the BRM data. You should also be able to assign users to Discoverer privileges and users to business areas.
    Using the same URL you would have Apps users connect using the E-Business Suite item on the drop-down for logging in and you would have BPM users choose the Business Intelligence Discoverer item.
    Let me know how you get on
    Michael

  • Multi logins in Oracle application 11i

    Hi All,
    Please any one can tell me that One user can do multiple logins in oracle application with out any issues please explain me..
    And i tried the one user can do multiple logins at the same time and he/she can work but please tell it is effect to any performance issues..
    please give me clarification about multiple logins for one username at the same time for Oracle applications.
    Thanks in Advance...

    One of my user shared his login id, password to some other ppl they are working at the same in different systems i wondered whil one user login id access to multiple logins so i raised this quoitn ..
    if any problem with this multiple lo-gin please tell me..
    and that user had 2 or more responsibilities..
    and please tell me can we restrict login for one user can login one time and can we restrict multiple logins oracle apps 11i.It is possible -- Please see these docs.
    How Can I Restrict Applications Users To Be Signed In Only Once At Any Time [ID 375403.1]
    About the oracle.apps.icx.security.session.created business event. [ID 304209.1]
    R12: Using IE8 to access two EBS Instances runs in error "Unable To Authenticate Session" [ID 1098563.1]
    Thanks,
    Hussein

  • Oracle Application 11i Portlets

    When I install Portal 3.0.9 from 9iAS R1 from Application 11.5.8 some Portlets that access Oracle Applications data are also installed, right?
    How can I have any information about this Portlets before installing them? What is the Oracle Application information that they interact with?? What I mean is, what data I can change or view from Oracle Applications with this pre-build portlets on Oracle Portal?
    Regards,
    Sandro Godoy.

    Hi
    Could you let me know your requirement in place could be done..
    Hope it helps..
    Thanks and Regards
    Riyas
    Oracle Consultant
    [email protected]

  • Modifying Form Behaviour Oracle Applications

    Hello:
    I have a problem with a form in Oracle Applications 10.7.0.
    FORM - RCVCOFND.fmb ( Find Expected Receipts (16) ) Receiving--> Receipts
    Upon entering this form Input Focus defaults to "Source Type". Users have decided that they would like to Default to "Purchase Order" item upon entry to this form.
    I added code to CUSTOM.PLL that tests for WHEN-NEW-FORM-INSTANCE and form_name however form_name returns "RCVRCERC" which is not the form that I want to modify navigation.
    Further investigation reveals that form RCVCOFND has its own PLL, BUT we are not allowed to modify this PLL, only the CUSTOM.pll is modifiable.
    Does anyone have any suggestions or could advise on a workaround please.
    Oracle Applications 10.7.0 SC161
    Oracle Applications Client SC161
    Application Object Library 7.5.16.02
    Oracle Forms 4.5.7.1.8
    RDBMS 8.1.6.3.0
    Thanks.
    N.

    1. Copy your form (test.fmb) into $AU_TOP/forms/US
    2. Compile with f60gen
    3. Copy the test.fmx file to $PRODUCT_TOP/forms/US
    4. Login to Oracle Applications with sysadmin user
    5. Select Application Developer responsibility
    6. Navigate to Application - Form -
    7. Enter the values for following parameter
    Form = test
    Application = You can select from LOV
    User Form Name = Enter as you like
    Description = Enter if any
    8. Navigate to Application - Function
    9. Enter the values in the function form
    in Description TAB - Enter the value for Function, User Function Name, Description
    in Properties TAB - Type = FORM
    Maint.Mode Support = None
    Context Dependence = Responsibility
    in Form TAB - Form = Select your form name that already registered (above one)
    Application = Will display
    Parameters = STARTUP_MODE= TEST
    10. Now you can attach the form in Menu then Responsibility
    Revert back if you have any query.
    Regards,
    S. Velusamy Raja
    Oracle Apps DBA

Maybe you are looking for

  • How do I disable the onboard Sound card in BIOS on the Equium A200

    I am using a Creative Sound Blaster external soundcard but the recording level is very low and have been advised by Creative to disable the onboard sound card in BIOS but there is no option to do this. Can anyone help ?

  • Sapscript print all pages duplex

    Hi Experts, I have scenarios where i need to print an invoice. On the each page of the invoice , at the back side i need to print the terms and condition. In the script i have following 3 pages with the next page. Page                                

  • URGENT: No chart in EBS output concurrent program

    I create a template with chart, when i previous it with the template builder it works. But if i use EBS concurrent program no chart is display in the output. If someone has ideas to this, please help me Thanks

  • Content Server 4 and RMSDK

    Does RMSDK come with Content Server 4? The company I work for is looking to open its own eBooks market place. The books have to be DRM'ed, so they are considering the use of Content Server 4. does RMSDK require a different license (and cost) that con

  • Substring @ SAP BO XI3.1 Sp2 OLAP Universe

    Hi any body address solution for below problem [GCOSTCTR].[LEVEL01].[[4GCOSTCTR]].[Value] is the object select class and the out put is:0100/10101223 but I need 10101223 while selecting as a promt @ report level. Provide me the Mxd statement for this