HOW to use new Oracle 9i Features in Pro*C

Hi All,
I am an Pro*C developer. I tried using Oracle 9i Features like RIGHT OUTER JOIN, FULL OUTER JOIN, CASE ... etc inside proc program. But I am getting error while compiling it.
My sample code:
EXEC SQL DECLARE CARD_CUR CURSOR FOR
SELECT A.EMP_NBR,
FROM EMP A FULL OUTER JOIN DEPT B
ON A.DEPT_NO = B.DEPT_NO;
EXEC SQL OPEN CARD_CUR;
Pre Compilier Error:
Pro*C/C++: Release 9.2.0.5.0 - Production on Wed Dec 14 02:34:35 2005
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
System default option values taken from: /oracle/oracle/9.2.0.5//precomp/admin/pcscfg.cfg
Syntax error at line 476, column 50, file br_afs_cardxrf.pc:
Error at line 476, column 50 in file br_afs_cardxrf.pc
FROM EMP A FULL OUTER JOIN
......................................1
PCC-S-02201, Encountered the symbol "FULL" when expecting one of the following:
; , for, union, connect, group, having, intersect, minus,
order, start, where, with,
Even when I use CASE statement, i get some similar error.
Can anyone guide me on this.
Regards,
ghu

You will probably need to use dynamic SQL.
See the discussion at:
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:53140567326263
(while the question deals with SQLX, the answer is the same - Pro*C can't parse all SQL, but dynamic SQL is not parsed by Pro*C)

Similar Messages

  • How to use all oracle text features under ifs?

    i'd like to know that is possible to use a oracle text features like a Theme Capabilities to do a classification when documents its incoming.....

    You will probably need to use dynamic SQL.
    See the discussion at:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:53140567326263
    (while the question deals with SQLX, the answer is the same - Pro*C can't parse all SQL, but dynamic SQL is not parsed by Pro*C)

  • Where Can I Go To Find Out How To Use New iOS 4 Features?

    I have just updated my ipod touch to ios 4. I have the wallpaper feature so I am presuming the rest of the features should work. How to I find out how to use the other features such as App folder options, Multitasking etc as I can't seem to be able to ??
    Thanks in advance to anyone who may be able to help

    Start Here. Search Google.
    You must have a 3G or later model to use multi-tasking and some other features.
    Message was edited by: Kappy

  • SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.

    Hi,
    When I tried to login I am able to login but getting the following message:SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level.
    After loging, when I tried to "SELECT SYSDATE FROM DUAL;" I am getting the following error.
    ORA-00942: table or view does not exist
    Can somebody please help me ?

    this error may be related to glogin.sql files content, what are the outputs for these -
    SQL> describe dual ;
    Name                                      Null?    Type
    DUMMY                                              VARCHAR2(1)
    SQL> select * from dual ;
    D
    Xbest regards.

  • Sp2-0575: Use of oracle SQL feature  not in sql 92 entry level.

    Hi,
    While logging to sqlplus I'm getting the following message
    "sp2-0575: Use of oracle SQL feature not in sql 92 entry level."
    and login is successful, but I'm not able to generate next value from the sequence .
    t says no rows selected when i request
    for nextval a
    EX: select mySeq.nextval from dual; (mySeq is sequence)
    Thanx,
    Ravi.

    What has happened is that someone has enabled the Oracle feature called as FIPS flagger.
    This is a feature that Oracle provides to you if you plan to write SQL code that should be portable
    to other RDBMS systems. IF you enable this flagger and use a feature which is not in the SQL standard,
    Oracle will complain that use of this feature will make your application Oracle dependent, and you may not
    be able to run this application against any other RDBMS.
    To disable this for your SQL*Plus session do this:
    SQL> set flagger off
    SQL>
    Once you do this it will allow you to use all SQL commands including Oracle specific extensions.

  • How to create new node in feature

    Dear Members,
    Culd any one help me out .........
    How to create new node in features..
    Example:  NUMKR
    On defaulting which option to select to create new node?
    Return value
    field for decision operation
    sub feature
    programme
    debugging operation
    error operation
    comment
    How to proceed................????????????

    hi,
    Where you can select the option field for decision operation then select the filed which you want like personal area, subarea, employee group and subgroup.
    and then select the node and then goto create and assign the return value by selecting the option ' Return value'.
    NUMKR -> FILED - PERSKGemployee group)  -> field PERSK(employee sub group) and --> return value.
    thanks,
    Vasu.

  • HT1338 how to use a webcam in a mac pro?

    How to use a webcam on a mac pro?

    Generally, plug it in.
    The OS should notice most major webcams, although you might need to install some software from the vendor to make it work. You'll need to check specific make/models for compatibility.
    Once it's connected it should be available in any application that supports video input.

  • Is there a place summarizing How To use new features?

    I upgraded to Lion, but now I'm searching everywhere ho to use each new feature.
    Apple's "Lion"'s page is just showing what features are new but now how to use/activate them.
    Any place where I can go to see them all explained as to how to use, implement, activate?

    http://www.apple.com/macosx/whats-new/#video-lion

  • How to use the oracle jdbc driver

    hi all,
    i have use the jdbc driver for oracle before but this time i<m under a hp-ux system and it seems to be different
    the dba here said the odbc driver and the jdbc driver where install but i get this error when i compile the code
    Class oracle.jdbc.driver.OracleDriver not found in type declration.
    if i try to use a odbc driver i can compile(since the classes are in jdk1.3) but i get this error at run time
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(Compiled Code)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at TestOracle.<init>(TestOracle.java:33)
    at TestOracle.main(TestOracle.java:126)
    can someone help me out to better understand what is wrong
    it seems the drivers are not install but again the dba assures me they are
    import java.sql.*;
    import java.io.*;
    public class TestOracle {
    public TestOracle()
    // Load the Oracle JDBC driver
    // Connect to the database
    // search the dossiers numbers in the right table depending on criteria
    // if demands comes from extranet verify to only send back the dossier
    // numbers that are linked to the customer
    // Load the Oracle JDBC driver
    try
         //DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         //Class.forName("oracle.djbc.driver.OracleDriver");
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    catch( Throwable t ){t.printStackTrace();}
    //SQLException,IOException,ClassNotFoundException,
    //IllegalAccessException,InstantiationException
    try
         // Connect to the database
         // You can put a database name after the @ sign in the connection URL.
         Connection conn =
              //DriverManager.getConnection ("jdbc:oracle:oci8:@COLDDEV", "USER", "PPP");
              DriverManager.getConnection("jdbc:odbc:COLDDEV","USER", "PPP");
         Statement stmt = conn.createStatement ();
         ResultSet r = stmt.executeQuery("select * from Dossier");
         stmt.close();
         System.out.println("trouver:" + r.getString("Dossier_Number"));
    catch (SQLException e){e.printStackTrace();}
    public static void main(String[] args)
    TestOracle testOracle1 = new TestOracle();
    here is the code iuse

    http://forum.java.sun.com/thread.jsp?forum=48&thread=187964&start=0&range=15#608968
    The above link is a comprehensive "How to get set up and on my way" that I made for someone else learning Oracle/jdbc. Kind of a self-help resource page. I would start from the beginning and download the newest drivers, then set up your environment,...etc.
    hope this helped,
    Jamie

  • How to use the Oracle 10g JDBC OCI driver in JBoss ?

    Greetings,
    I deployed ojdbc14.jar in JBoss and I created an Oracle datasource. I have the following questions:
    1. In the datasource descriptor file I have:
    <connection-url>jdbc:oracle:oci:@(description=(address=(host=localhost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=xe)))</connection-url>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    Is it enough in order to use the Oracle 10g JDBC OCI driver ?
    2. After having looked-up the datasource and created a connection, the classe of these objects are org.jboss.resource.adapter.jdbc.WrapperDataSource and, respectivelly, org.jboss.resource.adapter.jdbc.WrappedConnection. How can I have access to oracle.jdbc.oci and oracle.jdbc.pool packages ?
    Many thanks in advance,
    Nicolas

    Hello
    We were banging our heads on a similar thing, maybe this will help
    We needed to convert the wrapped connection to an OracleConnection so that we could do a proxy switch, but maybe you could apply it to your situation anyway
    1-you have to convert the Connection object to an OracleConnection in order to use the method that does the proxy switch
    The method to do this is getInnermostDelegate()
    Once you call this method, you get a new Connection object that can be cast to an OracleConnection object
    See below for the snippet of code
    // now switch the user and reselect
    if (conn instanceof DelegatingConnection) {
    properties.put("PROXY_USER_NAME","peter/peter");
    oraConn =((DelegatingConnection)conn).getInnermostDelegate();
    if (oraConn == null)
    out.println("oraConn is null\n");
    ((OracleConnection)oraConn).openProxySession(OracleConnection.PROXYTYPE_USER_NAME,properties);
    2-you have to put a setting in the xml file in conf/Catalina/localhost that allows you to call the getInnermostDelegate() method
    By default, Tomcat does not allow you to call this method, it will always return null
    You have to change the xml to allow it to return an object
    It seems that WebSphere and Tomcat both frown on vendor-specific methods that do not comply with the JDBC standards, but do allow it
    Here is the setting:
    <parameter>
    <!-- NOTE: This is necessary to enable access to the Oracle connection object -->
    <name>accessToUnderlyingConnectionAllowed</name>
    <value>true</value>
    </parameter>
    Note, this setting was also put in the conf/server.xml file
    Thanks
    Peter

  • How to use new patch updates in track

    Hi All,
    I am a developer working in NWDI. We have everything in place and working fine upto now.
    SAP has release a patch for the software component i am using in a track. Basis guys have updated the track and they confirmed the patch is updated successfully.
    Now when ever i rebuild my DC, the changes are not effected as per the new patch. Please let me how I will be able to use new patch updates in my DC(In NWDS I can see the old source code only, I did all SYNC's and refresh but didnt worked, even NWDI is restarted)
    How I can confirm that the patch is updated to track successfully, from a developer point of view.
    I have access to CMS and CBS.
    Regards,
    Sateesh Chandra

    Did you update your configuration in the studio?
    --MLS

  • How to use to_char(oracle function) in java

    Hi,
    I am getting the value as a integer from one table in my java file and want to insert it into another table as a varChar..
    I found one method in oracle like to_char().. can i use this in java..
    can u pls let me know how to use this in java..or is there any other way to convert it..
    for example, i am getting the value is : 4 (number) from one table. and want to insert it into another table like : 04 (varchar)..
    how can i convert it and insert into another table as a varchar..
    please help me

    Well part of the answer depends on what db your using but semantically if I just HAD to do what you're doing I would use a stored procedure to do the insert into the second table or better yet do the whole thing in a stored procedure which would make life much easier all the way around.
    Implicit lesson here: Use the RIGHT tool for the job at hand.
    The big question though is why do you have data that's of one type in one place and another type in another place?
    PS.

  • How to Use new Authorization Objects

    Hi guys i need to implement the new schema of authorizations and i have created an authrization and add the 0comp_code characteristic (previously i set i it up as authorization relevant) and i need to add the restrictions for infoprovider but i need to add the new infoobjects 0TCAIPROV, 0TCAACTVT, 0TCAVALID, but this infoobjects i ve activated are not authorization relevant and i am not using them in any infocube, thats the reason why i cant use them in an authorization.....
    Do i need to add them in my infocube or theres another configuration in order to use them?
    Regards

    Hello Oscar,
    You do not have to add the 0TCA* characteristics to your InfoCube. Instead you have to set these characteristics to authorization relevant. Then everything should work as intended.
    General information on how to use the new analysis authorizations can be found here: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ded59342-0a01-0010-da92-f6b72d98f144
    Kind regards,
    Stefan

  • How to use "restart in safari" feature in os x Lion ?

    How do you use "restart in safari" feature in os x Lion ?

    Hi!
    How to start only Safari Webbrowser in OS X Lion.
    1. Restart computer
    2. While re-boot - press "cmd + R"
    3. You get now a few options. Choose the Safari icon and text "read about.."
    4. You can now surf freely online and only work within the safari browser.
    5. Dont forget to like this comment!
    6. a bonus advice. Go into settings and parent control. Choose the features you want have active in a guestaccount. Its better..

  • How to use the Oracle Cloud Database Service

    Hi,
    I got the trial version of Oracle cloud Database service. How to use that?
    I wanted it to deploy the schema for my application. It needs the db to be pingable. I should be able to ping the db using the tnsping command.
    Can any body help in this regard?
    Regards
    Anil

    Anil -
    You cannot communicate with the Database Cloud Service from outside the Public Cloud with SQL*Net or over TCP/IP, as explained in the FAQ, located here https://cloud.oracle.com/mycloud/f?p=service:database_faq:0:::::.   The Database Cloud Service is a PaaS, not a DBaaS, so you won't be able to ping it in the way you describe.
    Hope this helps.
    - Rick Greenwald

Maybe you are looking for

  • How to Download a file from web server using servlets

    how do we download a file from Java Web Server connecting to oracle database it should start as soon a i click a button in my html browser please reply as it is needed to complete my project to submited to the collage

  • BADI for COR1 transaction(Process orders)

    HI All, My requirement is to create a idoc  for the process order which is released from COR1.(idoc part is completed) Can any one suggest me a badi which will triger while releasing the process order from COR1 (not cor5), i worked with workorder_upd

  • How to implement PHP code in Edge

    All- I have a site where I need to implement php on a button for a redirect How do i do this in edge? `Z

  • Ship to Address issue

    Dear Experts,           I have 3 different locations (Chennai,Hyderabad,Delhi) from which the Purchase Order is getting raised. Each location has few vendors and in master data we have marked the relevant location oriented ship to address. In Purchas

  • Adobe Ilustrator giving me low ram error even though there is plenty of ram

    One of my users is getting the message "The operation cannot complete because there isn't enough memory (RAM) available" error when opening a file in illustrator.  I had them send me a screen show of the memory utilization in task manager and it is a