Oracle - ANSI Standard

I would like to know which ANSI standard does ORACLE follow?

quoting wikipedia:
SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standards (ISO) in 1987. Since then, the standard has been enhanced several times with added features. However, issues of SQL code portability between major RDBMS products still exist due to lack of full compliance with, or different interpretations of, the standard. Among the reasons mentioned are the large size and incomplete specification of the standard, as well as vendor lock-in.
I think you may be better off trying to write whatever it is you want to write and seeing if it works that way across databases.
the thing is (and this goes for all databases): some things are more efficient written in the proprietary extensions to SQL than in ANSI SQL. Take recursive with clauses vs the connect by clause etc.
edit:
The other thing to be wary of is the potential for differing functionality depending on how you write your queries. for example even though the database supports ANSI joins, I encountered a bug whereby the result_cache functionality doesn't work when you use ANSI join syntax:
result_cache on tables
Edited by: WhiteHat on Jun 21, 2012 11:58 AM

Similar Messages

  • ANSI Standard Query

    HI Anyone can help me to have the correct ANSI Standard Query for the following
    SELECT * FROM AFFILIATED_PERSON ap WHERE EXISTS (
    SELECT 'x' FROM VB_HOUSEHOLD_MEMBERSHIP VBHM, VE_HOUSEHOLD_ORG_AFFIL VEHOAF
    WHERE VEHOAF.family_household_id = vbhm.family_household_id
    AND vehoaf.primary_type= 'ASGNLOCCAR'
    AND vbhm.affiliated_person_id = ap.AFFILIATED_PERSON_ID )
    AND EXISTS (
    SELECT 'x' FROM VB_PERSON_ORG_ASSIGNMENT vbpoas, VB_PERSON_ORG_AFFILIATION vbpoaf
    WHERE vbpoas.person_org_affil_id = vbpoaf.person_org_affil_id
    AND vbpoaf.affiliated_person_id = ap.AFFILIATED_PERSON_ID)
    ORDER BY ap.AFFILIATED_PERSON_ID
    Thanks in advance
    nattu

    hey,
    a. to me it seeems o.k.
    b. trust no one :)
    c. you can use: (from 10g sql reference)
    FLAGGER
    Syntax:
    FLAGGER = { ENTRY | INTERMEDIATE | FULL | OFF }
    The FLAGGER parameter specifies FIPS flagging, which causes an error message to be
    generated when a SQL statement issued is an extension of ANSI SQL92. FLAGGER is a
    session parameter only, not an initialization parameter.
    In Oracle Database, there is currently no difference between entry, intermediate, or full
    level flagging. After flagging is set in a session, a subsequent ALTER SESSION SET
    FLAGGER statement will work, but generates the message, ORA-00097. This allows
    FIPS flagging to be altered without disconnecting the session. OFF turns off flagging.
    e.g.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL> alter session set flagger=full;
    Session altered.
    SQL> select * from dual where dummy ='X';
    select * from dual where dummy ='X'
    ERROR at line 1:
    ORA-00097: use of Oracle SQL feature not in SQL92 Full Level
    ORA-06550: line 2, column 32:
    PLS-01454: No operator may be used with values of data type CHAR
    SQL> alter session set flagger=off;
    ERROR:
    ORA-00097: use of Oracle SQL feature not in SQL92 Full Level
    Session altered.
    SQL> select * from dual where dummy ='X';
    D
    X
    SQL>
    Amiel Davis
    Message was edited by:
    Amiel D.

  • How to setup replication using Oracle 11gR2 standard edition one

    Dear Guys,
    I have two machines on which Oracle 11gR2 standard edition one is installed. I want to establish replication between them. How can I setup it? Please refer me to some step by step guide. I will be thankful to you guys.

    Replicating Data Using Materialized Views
    http://docs.oracle.com/cd/E14072_01/server.112/e10703/tdpii_reppit.htm#BEHHGGIB
    Replicating Read/Write Data Using Materialized Views
    http://docs.oracle.com/cd/E14072_01/server.112/e10703/tdpii_reppit.htm#BEHCEFGC

  • Help using Oracle BI Standard Edition One

    Hi,
    I have installed Oracle BI Standard Edition One on a Windows Server 2003.
    My aim is to connect to the production database and create reports, graphs etc.
    Could you please let me know the steps required?
    Thanks & Regards,
    Shailaja

    Check documentation at http://download.oracle.com/docs/cd/E10352_01/doc/nav/portal_1.htm
    Business Intelligence Standard Edition One Tutorial

  • Oracle 11g Standard Edition + Locator Java API

    We have Oracle 11g Standard which includes the Oracle Locator package, but not the Oracle Spatial.
    I would like to use the Oracle® Spatial Java API in my java code, but am unsure of the licensing implications of this.
    I require some form of java api in order to access the geomettry objects stored in the database. Oracle do not allow the download of the java files seperately. I was unable to find any reference to a 'Oracle Locator Java API'
    Could someone let me know what exists in terms of Java API's, what i am entitled to use under the current licensing rules, and where I can download the necessary source/jar files?

    Thanks for letting me know the location of the jar files, that will at least help me get things going.
    I am still concerned about licensing issues, as your reply appears to contradict itself:
    "There is no licensing issues if you just want to use Oracle Spatial Java API(sdoapi.jar) with your spatial data in the Oracle 11g Standard DB."
    and
    "You cannot use some oracle spatial features (PL/SQL packages and their java APIs) in the standard edition."
    I could use some clarification on this. I'm currently assuming that you mean I can legitimately use the spatial java API with any features I have available within the 11g Standard DB (i.e Oracle Locator subset of the Oracle Spatial package), but that I can't take that for granted, especially considering how militant Oracle are being over licensing and patents these days.

  • What is limit of database size in oracle 10g standard edition/edition one

    Hai All,
    What is the limit of database size in oracle 10g standard edition and standard edition one.. I see the white paper of oracle says that the limitation is 500 GB. This limitation is correct.? if correct then what happened after the limit..?
    Please help?
    Shiju

    What white paper would that be? I can't see any limit in the Oracle Database 10g Editions comparisons.
    C.

  • Limitations of Oracle 10G XE as against Oracle 10G Standard Edition

    Can you please give the information regarding....
    1. Capabilities of Oracle 10G XE (Express Edition)
    2. Limitations of Oracle 10G XE as against Oracle 10G Standard Edition

    Have a look at the License Information:
    http://download-uk.oracle.com/docs/cd/B25329_01/doc/license.102/b25456/toc.htm#BABJBGGA
    There's also a feature matrix in pdf-format:
    http://www.oracle.com/technology/products/database/oracle10g/pdf/twp_general_10gdb_product_family.pdf
    C.
    Message was edited by:
    cd

  • Database Web Services and OC4J in Oracle Database Standard Edition

    Hi all,
    Oracle Database Standard Edition has database web services, which require OC4J if the database is to be used as web service provider. So, can OC4J be used in production with Oracle Database Standard Edition?
    Thank you for this clarification :)
    Mitko

    Yes. :)

  • Oracle Streaming Queues in Oracle 10G standard Edition

    I would like to configure and implement Oracle Streaming Queues in Oracle 10G standard Edition. If it is possible then please guide me and give me some clues and if not then please advise me some alternate method.

    Here is the guidance you requested.
    License information:
    http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/toc.htm
    Technical information:
    http://tahiti.oracle.com/
    Since I don't even know what version you have ... this is as far as I can take you.

  • Upgrading from Oracle 10G standard edition to Oracle 10G enterprise edition

    Hi
    I want to upgrade from Oracle 10G standard edition to Oracle 10G enterprise edition. Is there any script provided by oracle which I can run on existing Oracle 10G standard edition to upgrade to enterprise edition after completing the licensing formalities or do I need to install Oracle 10g Enterprise edition from scratch and then migrate my data.
    Ramanbir S

    You will not need to perform any data migration to upgrade to EE. The diffetence between standard en enerprise editions are the features offered. When you upgrade you can use the same set of files you used to install standard edition and just add the enterprise edition features you want to use in the 'Custom' section of the Universal Installer.

  • Difference between ORacle 8i Standard & Enterprise

    Hi,
    1. I am looking for a document mentions the difference between Oracle 8i Standard & Enterprise editions.
    2. Components in Standard edition? (eg. Oracle Intermedia?)
    Raj

    I found this on the Oracle site (two clicks from the home page).
    http://www.oracle.com/ip/deploy/database/oracle9i/index.html?packagingandoptions.html

  • ANSI Standard Join with Nested Table

    Does anyone know how to (or whether you actually can) use ansi standard table joins with nested tables.
    Non-ansi standard would look something like this
    SELECT e.empno
    FROM departments d, TABLE(d.employees) e
    WHERE d.deptno = 10;
    Where d.employees is a nested table.
    But if I try ansi-standard I like such:
    SELECT e.empno
    FROM departments d
    JOIN TABLE(d.employees) e
    WHERE d.deptno = 10;
    I get
    ORA-00905: missing keyword
    because I have nothing to join it on.
    Your help is very much appreciated

    Both replies worked fine.
    I think I will go with the NATURAL JOIN as it seems the cleanest option.
    Thanks Guru 2748

  • Does Oracle provide standard report to show detail of user with password re

    Hi,
    We are currently using Oracle HRMS R12.0.6. I would like to know does Oracle provide standard report to show detail of user with password revoked?
    Appreciate advise.
    Thanks and Regards,
    Shiau Chin

    Develop a package to do it if you need the password. Create the packages . Execute the SQL to determine the password. Make sure you replace the &USER_NAME with the USER NAME at the end..
    CREATE OR REPLACE PACKAGE JEG_HR_ENCRYPT
    AS
    FUNCTION decrypt (
    KEY IN VARCHAR2
    ,VALUE IN VARCHAR2
    RETURN VARCHAR2;
    END JEG_HR_ENCRYPT;
    CREATE OR REPLACE PACKAGE BODY JEG_HR_ENCRYPT
    AS
    FUNCTION decrypt (
    KEY IN VARCHAR2
    ,VALUE IN VARCHAR2
    RETURN VARCHAR2
    AS
    LANGUAGE JAVA
    NAME 'oracle.apps.fnd.security.WebSessionManagerProc.decrypt(java.lang.String,java.lang.String) return java.lang.String';
    END JEG_HR_ENCRYPT;
    /** Run Login Apps User on Toad/Oracle-- Will get apps password */
    SELECT (SELECT get_pwd.decrypt (UPPER ((SELECT UPPER (fnd_profile.VALUE ('GUEST_USER_PWD'))
    FROM DUAL)), usertable.encrypted_foundation_password)
    FROM DUAL) AS apps_password
    FROM fnd_user usertable
    WHERE usertable.user_name LIKE UPPER ((SELECT SUBSTR (fnd_profile.VALUE ('GUEST_USER_PWD')
    ,1
    , INSTR (fnd_profile.VALUE ('GUEST_USER_PWD'), '/')
    - 1
    FROM DUAL));
    SELECT usertable.user_name,
    (SELECT jeg_hr_encrypt.decrypt
    (UPPER
    ((SELECT (SELECT jeg_hr_encrypt.decrypt
    (UPPER
    ((SELECT UPPER
    (fnd_profile.VALUE
    ('GUEST_USER_PWD'
    FROM DUAL)
    usertable.encrypted_foundation_password
    FROM DUAL) AS apps_password
    FROM fnd_user usertable
    WHERE usertable.user_name LIKE
    UPPER
    ((SELECT SUBSTR
    (fnd_profile.VALUE
    ('GUEST_USER_PWD'),
    1,
    INSTR
    (fnd_profile.VALUE
    ('GUEST_USER_PWD'),
    - 1
    FROM DUAL)
    usertable.encrypted_user_password
    FROM DUAL) AS encrypted_user_password
    FROM fnd_user usertable
    WHERE usertable.user_name LIKE UPPER ('&USER_NAME')

  • ANSI Standard decode to CASE

    Hi all,
    select
    id
    ,one
    ,two
    From
         (select id
         , one
         , two
         , Max(decode(TYPE, "ER", 3*4, 4*7)
         from
              (select id
              , sum(one) as one
              , sum(two) as two
              from t1
              group by id)
         group by id, one, two
         ) temp inner join t2....
    The above query is just a sample structure to tell the problem that i am facing. It works fine, but i need to convert it to ANSI Standard.
    Hence I need to convert the DECODE to CASE statement. but if i convert to CASE, i need to use any of the GROUP BY FUNCTIONS, but if i use the MAX of any group by functions, the result would be wrong...how to overcome it
    Thanks

    Hi,
    Yes I did a silly mistake, the code I gave was for only the decode but when I converted it to case statement, there was a silly mistake, which i corrected.
    Now i corrected it to
    Select
         COL1
         , Col2
         , MAX(CASE WHEN Upper(TYPE) = 'YR' THEN Round(3.43*3, 2) END) AS CALC1
         , Max(CASE WHEN Upper(TYPE) = 'ZP' THEN Round(3.12*12, 2) END) AS CALC2
    From
         Group by....
    but now when i add a sum of the calc1 & calc2, I am not getting any results the column is blank. Is there anything that i missed
    Select
         COL1
         , Col2
         , MAX(CASE WHEN Upper(TYPE) = 'YR' THEN Round(3.43*3, 2) END) AS CALC1
         , Max(CASE WHEN Upper(TYPE) = 'ZP' THEN Round(3.12*12, 2) END) AS CALC2
         , (MAX(CASE WHEN Upper(TYPE) = 'YR' THEN Round(3.43*3, 2) END
         + Max(CASE WHEN Upper(TYPE) = 'ZP' THEN Round(3.12*12, 2) END)) as SUM3
    From
         Group by....
    Thanks

  • Oracle 10g Standard One

    I want to clear out some issue abt Oracle 10g Standard One and Partitioning. On the internet I have found that one of the Oracle Enterprise Edition Features not available in Oracle Standard Edition One is:
    Oracle partitioning - For database over 100 gigabytes
    Can someone confirm this? Does it actually mean that there is actually PARTITIONING in Oracle10g Standard One if the database is less than 100GB ?
    thanks

    I don't believe partitioning is available in the standard edition (or in Standard Edition One). The comment you refer to is likely explaining the sort of databases that might benefit from partitioning-- there aren't a lot of folks that would want to partition database tables if the database was only a few GB in size.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Error in Getting Details from SAP by BAPI_MATERIAL_GET_DETAIL

    Hi All, I am trying to get the material info from SAP by webDynPro. My Input Parameter is Material(IMPORT PARAMETER) and out put is Matrial_general_data(EXPORT PARAMETER). In the implementation of method in wdDoInit(). Bapi_Material_Get_Detail_Input

  • Price Information data from SRm to MDM

    Hello, I m working on SRM-MDM Catalog 2 scenario. I have imported lookup table data in MDM using MDMGX transaction. But i couldnt get data for Price Lookup Qualified Table. Can anybody please tell me how should i send Price Information data from SRM?

  • Skype lists my phone number as Canada for call for...

    No matter what I do it shows my number as a Canadian phon number. It is a US based number. The little flag in front of the number is the Canadian flag, I change it to USA and save. I go back in and it is Canada again. 

  • Can I use russian licence for english CS4

    Hello! We bought a russian version of CS4 design standart. Can we use our licence for english version? Or how we can get an english interface by legal methods?

  • Multi-Cam sync on audio vs inpoints

    I have been following several links on the world wide web  on PP CC multi cam functionality. In all of my research I caught a 32 milli-second snippet of of someone speaking while demonstrating Multicam where he something to the effect that using audi