SQL language change in 11g?

Is anyone aware of any changes to SQL language with Oracle 11g, from 10g? We have recently upgraded a database from 10g to 11g. A Microsoft Access database we are using has a large amount of SQL pass-thru queries, and we are having trouble with it now, since the Oracle database has been upgraded to 11g, particularly with "Invalid Use of Null" error message, though no code has been changed. We have also upgraded our Oracle client to the 11g Full-client, and changed the driver name in the scripts to reflect this. We've had luck connecting to the 11g database in other manners (i.e., import external data > ODBC sources).
Edited by: Barry on Aug 9, 2011 7:16 AM
Edited by: Barry on Aug 9, 2011 9:34 AM

The VBA script, within Microsoft Access 2007, runs up to this SQL script, though strangely even if I comment out the "Is Null" statements:
strSQL = "SELECT DISTINCT IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"") AS AQ_CODE, qsptLOCATION.AQUIFER_CODE, qsptLOCATION.LOC_CODE, qsptLOCATION.CLASS, IIf([tblWellInfo]![CP_TBL_V]=""POC"",""Compliance"",IIf([tblWellInfo]![CP_TBL_V]=""POE"",""Exposure"","""")) AS DESIGNATION, IIf(clng(tblWellInfo.SEG_SCR) > 1,""M"","""") AS MULTI_LEVEL, tblWellInfo.PROPERTY INTO tbl_LOCATION " & _
"FROM qsptLOCATION INNER JOIN tblWellInfo ON qsptLOCATION.LOC_CODE = tblWellInfo.WELL_ID " & _
"WHERE (((IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'PER*' Or (IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'OGA*') " & _
"AND ((qsptLOCATION.LOC_CODE) Not Like '*-F' And (qsptLOCATION.LOC_CODE) Not Like 'FPOP*' And (qsptLOCATION.LOC_CODE) Not Like 'OSO*' And (qsptLOCATION.LOC_CODE) Not Like '*GAL') " & _
"AND ((qsptLOCATION.CLASS) Is Null) AND ((qsptLOCATION.DESCRIPT) Is Null)) OR (((IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'PER*' " & _
"Or (IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'OGA*') " & _
"AND ((qsptLOCATION.LOC_CODE) Not Like '*-F' And (qsptLOCATION.LOC_CODE) Not Like 'FPOP*' And (qsptLOCATION.LOC_CODE) Not Like 'OSO*' And (qsptLOCATION.LOC_CODE) Not Like '*GAL') " & _
"AND ((qsptLOCATION.CLASS) Is Null) AND ((qsptLOCATION.DESCRIPT) Not Like '*RENAMED*')) " & _
"OR (((IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'PER*' Or (IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'OGA*') " & _
"AND ((qsptLOCATION.LOC_CODE) Not Like '*-F' And (qsptLOCATION.LOC_CODE) Not Like 'FPOP*' And (qsptLOCATION.LOC_CODE) Not Like 'OSO*' And (qsptLOCATION.LOC_CODE) Not Like '*GAL') " & _
"AND ((qsptLOCATION.CLASS) Not In ('PR','AW','IB','PV','IJ')) AND ((qsptLOCATION.DESCRIPT) Is Null)) OR (((IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'PER*' Or " & _
"(IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala"")) Like 'OGA*') " & _
"AND ((qsptLOCATION.LOC_CODE) Not Like '*-F' And (qsptLOCATION.LOC_CODE) Not Like 'FPOP*' And (qsptLOCATION.LOC_CODE) Not Like 'OSO*' And (qsptLOCATION.LOC_CODE) Not Like '*GAL') " & _
"AND ((qsptLOCATION.CLASS) Not In ('PR','AW','IB','PV','IJ')) AND ((qsptLOCATION.DESCRIPT) Not Like '*RENAMED*')) " & _
"ORDER BY IIf(qsptLOCATION.AQUIFER_CODE Like 'PER*',""Perched"",""Ogallala""), qsptLOCATION.LOC_CODE;"
CurrentDb.Execute strSQL
Edited by: Barry on Aug 9, 2011 11:50 AM

Similar Messages

  • How do I migrate views from MS SQL 2008 to Oracle 11g through SQL Developer

    Is there any way to migrate the views from MS SQL 2008 to Oracle 11g through SQL Developer? Please give me some detail steps. Thanks for your help.
    Kevin

    Hi Kevin,
    user13531850 wrote:
    Hi Turloch,
    When I use migrate to oracle, I got a problem, the migrate tool create a new schema for me in my case (AZTECA_KSMMS), it migrates all the stuffs under that schema (AZTECA_KSMMS). However my application need the all the Oracle data under schema AZTECA instead of AZTECA_KSMMS. Is there any way to specify specific schema (AZTECA) for target oracle database? Schema remapping is available:
    First Capture (separately) then during right click convert on the captured model there is a Specify the conversion options with a Object Naming tab where the schema (and other) name changes are editable.
    I have not used this recently.
    Also during the migration process, when I choose repository, there is a check box for truncate to reset repository to empty state, Do I need to check that truncate Check Box so the repository will be cleared from last migration?The repository can hold multple migration attempts. Check truncate to get rid of previous attempts information. This cleans up the repository - not the destination database.
    There are also online database and offline database options during the migration process, what are the difference between these two choices? After I migrated to Oracle, all my views has a red cross icon next to it. Does that mean the view migration is failed or not? Please give me your comments. Thanks for your help.offline: for big (amount of data) databases with simple data types,
    uses bcp + files + scripts + sqlldr.
    online: for small (amount of data) databases (easier),
    uses (Java) jdbc.
    The view is likely to be broken - recompiling it may help.
    The Oracle schema is created using a .sql file - see under generated in the directory you gave originally in the wizard. There is a .out file that contains the result of running this script including any errors. During conversion there are also likely to be warnings displayed on the UI.
    There may be a single issue that is causing multiple issues - if viewa depends on functionb, and functionb is broken, viewa will also fail.
    >
    Kevin-Turloch
    SQLDeveloper Team

  • Error in PL/SQL Language Reference .... could be that possible ?

    I use Oracle 10g ....... but when I used that function in :-
    Oracle® Database
    PL/SQL Language Reference
    11g Release 1 (11.1)
    B28370-02
    September 2007
    page 252
    CREATE OR REPLACE FUNCTION compute_bonus (emp_id NUMBER, bonus NUMBER)
    RETURN NUMBER
    IS
    emp_sal NUMBER;
    BEGIN
    SELECT salary INTO emp_sal
    FROM employees
    WHERE employee_id = emp_id;
    RETURN emp_sal + bonus;
    END compute_bonus;
    The following equivalent SELECT statements invoke the PL/SQL subprogram in
    Example 8–5 using positional, named, and mixed notation:
    SELECT compute_bonus(120, 50) FROM DUAL; -- positional
    SELECT compute_bonus(bonus => 50, emp_id => 120) FROM DUAL; -- named
    SELECT compute_bonus(120, bonus => 50) FROM DUAL; -- mixed
    ====================================
    and than executed first select statement ..... it pass successfully
    but in second and third select ...... I found this errors :-
    SQL> SELECT compute_bonus(120, 50) FROM DUAL;
    COMPUTE_BONUS(120,50)
    8050
    SQL> SELECT compute_bonus(bonus => 50, emp_id => 120) FROM DUAL;
    SELECT compute_bonus(bonus => 50, emp_id => 120) FROM DUAL
    ERROR at line 1:
    ORA-00907: missing right parenthesis
    SQL> SELECT compute_bonus(120, bonus => 50) FROM DUAL;
    SELECT compute_bonus(120, bonus => 50) FROM DUAL
    ERROR at line 1:
    ORA-00907: missing right parenthesis
    is there any relation between that I use oracle 10g and those errors ???
    or the code wrote wrong in oracle reference 11g ( I hope not ) ???

    yes, you are correct. the "what's new" section of the 11g pl/sql manual states
    "Before Release 11.1, a SQL statement that invoked a PL/SQL subprogram had to specify the actual parameters in positional notation. As of Release 11.1, named and mixed notation are also allowed. This improves usability when a SQL statement invokes a PL/SQL subprogram that has many defaulted parameters, and few of the actual parameters must differ from their default values."

  • I got a Macbook Air. My system language is russian but the login password is english. I pu the laptop into sleep mode, then wanted to log in again, but the language seems to have switched to russian, there's no language change button! How do I log in now?

    I got a Macbook Air. My system language is russian but the login password is english. I put the laptop into sleep mode, then wanted to log in again, but the language seems to have switched to russian, there's no language change button! How do I log in now?

    Severia,
    I tried your solution, but it did not work with my laptop. After I restart the laptop, the language does not change and I cannot type the password in English language. Do you have any other suggestion?
    Thank you.

  • Language changed on my IPOD...no longer English???

    Language changed on my IPOD...8gb Classic?  How do I get it back to English?  Cannot read?!

    Click here and follow the instructions.
    (63510)

  • Language changed

    Language changed and I can't change it back

    I suppose that there is an unreadable languge that you do not master.
    - click home button
    - look for the settings icon, if not on the first psge, on one of the following
    - click it, it opens on the page where Airplane mode is the uppermost, it easily found because it has an airplane icon
    - on that first page swipe down to the third segment
    - in that segment click on the first icon (the same icon as ettings itself), (it is "general" in english)
    - in the page that opens, swipe down to the fifth segment
    - in that segment click on the third icon from above, ("international" in english)
    - in the page that opens click on the first icon, it opens a page where you can each language.
    - click "done" when you have done, then it will change the language to what you have chosen (it takes some time). You do not have to restart.
    succes,
    Lex

  • Federated Portal Language change not visible on remote role

    Hi,
    Remote role assigment is done on consumer portal. This remote portal role comes from a BI Producer portal.
    This roles has worksets and iviews attached to it like km navigation iview etc.
    User on consumer portal has options to change his language to french from default english.
    Here the issue is, this language change does not reflect or apply to the remote role and its iviews or contents.(It continues to show in english) . But it works without problem o n local roles or ivews as expected.
    Any idea on how this language change can be effected on the remote role and its contentc will be much appreciated.
    Regards,
    Ashok D

    Hello Ashok,
    You must remember that because this is RRA the content will actually run on the producer (unless this is an AI iView).
    This means that the language will be determine according to the user's language defined on the producer itself, therefor you have to change the language of that specific user on the producer portal.
    If this does not help it might be that the iView is forcing the language, then we'll have to try somehthing else.
    Update me with the results of the first triage,
    Also have a look at SAP Note # 1295703 under the Language category, it explains the algorithem of determining the language.
    Best Regards,
    Nadav.

  • Keyboard language changed only in Firefox not other programmes

    I have Firefox in English but I use a Spanish keyboard, meaning some keys like question marks or quotation marks are in different places, there are accents, a key for ç, etc. It has always worked normally but today, while the keyboard is working correctly with all other programmes in Firefox it works as if the settings were changed to an English (I think) keyboard.
    I don't have that problem with Chrome though, it's just Firefox. How is that possible (add question mark here, I can't guess what key I'im supposed to use for it).
    I haven't changed anything in the settings, so the only possibility could be some kind of shortcut I've accidentally pressed, even though I don't know how that's even possible, as I assumed you can't have several keyboard language settings selected at the same time depending on the programme you're using.
    I type in different languages so this is terribly annoying! Thanks for any help.

    It is possible that you have switched the keyboard layout by accident by using the key sequence to rotate the layout.
    * http://support.microsoft.com/kb/258824 - How to change your keyboard layout
    Windows remembers the keyboard layout setting per application and you may have changed the keyboard layout by accident via a keyboard shortcut.
    * http://support.microsoft.com/kb/306993 - HOW TO: Use the Language Bar in Windows XP
    * http://windows.microsoft.com/en-US/windows7/The-Language-bar-overview The Language bar (overview)
    Make sure that you have the Language bar visible on the Windows Taskbar
    * You can do that via the right-click context menu of the Taskbar: Toolbars > Language Bar
    * Check the keyboard language (keyboard layout) setting for the application that has focus via the icon on the Language bar
    * You need to do that while Firefox has focus because Windows remembers the keyboard layout setting per application
    * The default key combination to rotate the layout is the Ctrl+Shift or Alt+Shift combination that is used in Firefox for menu items, so it is quite possible to change the layout accidentally.
    * To avoid an unintentional switch, assign a specific key sequence (Alt/Ctrl+Shift+number) to select keyboard layouts and remove the key combination to rotate layouts (Alt+Shift or Ctrl+Shift)
    * Control Panel > Regional and Language Options > Keyboards and Languages > Change keyboards > Advanced key settings > Change key sequence

  • Primavera 6.2 SQL Database to Oracle 11g migration

    Hi,
    I used the migration tool to migrate a Primavera 6.2 SQL database to Oracle 11G DB. The migration tool runned successfully and I am able to login to the database using P6.2 client with no problem; however when attemptiong to update the license on the now Oracle database using the privuser account I get the following error "License could not be loaded because of error: List index out of bounds (247). Please make sure that you are using a privileged database login" the error comes up before I can browse to the location of licesne.txt file. Same procedure on a "native" Oracle P6.2 database works perfectly with no problem. Has any one run into this problem before? any help will be appreciated.
    Best Reagrds,

    user11108903 wrote:
    Hi,
    I used the migration tool to migrate a Primavera 6.2 SQL database to Oracle 11G DB. The migration tool runned successfully and I am able to login to the database using P6.2 client with no problem; however when attemptiong to update the license on the now Oracle database using the privuser account I get the following error "License could not be loaded because of error: List index out of bounds (247). Please make sure that you are using a privileged database login" the error comes up before I can browse to the location of licesne.txt file. Same procedure on a "native" Oracle P6.2 database works perfectly with no problem. Has any one run into this problem before? any help will be appreciated.
    Best Reagrds,I have not seen that specifically but it appears that not all of the grants were correctly applied.
    I would suggest running the schema validation tool which can be found on the knowledgebase as Solution ID: prim75459 as this will tell you what is missing/invalid.
    Once you know that, you can pull the neccesary grants from the create scripts located in the cd1\install\database\scripts folder.

  • Error mapping, OGG from SQL 2008 to Oracle 11g

    Hi Experts
    Please I hoppe you can help me, I am using OGG to replicate from SQL 2008 to Oracle 11g R2, I can insert rows and replicate without problems, but when I update or delete on the Source the replicat stop working.
    This is the mesage:
    2012-06-11 09:51:57 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, msrep.prm: Error mapping from FACTURA.EMP to GOLDENGATE.EMP.
    2012-06-11 09:51:57 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, msrep.prm: PROCESS ABENDING.
    --- Discard FIle
    Key column FIRST_NAME (1) is missing from delete on table GOLDENGATE.EMP
    Key column LAST_NAME (2) is missing from delete on table GOLDENGATE.EMP
    Missing 2 key columns in delete for table GOLDENGATE.EMP.
    Current time: 2012-06-11 09:51:57
    Discarded record from action ABEND on error 0
    Aborting transaction on /u01/app/goldenGate/dirdat/ms beginning at seqno 0 rba 13729
    error at seqno 0 rba 13729
    Problem replicating FACTURA.EMP to GOLDENGATE.EMP
    Mapping problem with delete record (target format)...
    ID = 121
    Process Abending : 2012-06-11 09:51:57
    ------ SOURCE TABLE
    create table [factura].[emp] (
    [id] [smallint] not null,
    [first_name] varchar(50) not null,
    [last_name] varchar(50) not null,
    constraint [emp_pk] primary key clustered (
    [id] asc
    ) with (pad_index = off, statistics_norecompute=off, ignore_dup_key=off, allow_row_locks=on, allow_page_locks=on) on [primary]
    ) on [primary]
    ------ TARGET TABLE
    CREATE TABLE GOLDENGATE.EMP
    ID NUMBER,
    FIRST_NAME VARCHAR2(50 BYTE),
    LAST_NAME VARCHAR2(50 BYTE)
    Thank you
    J.A.

    Hi
    I altered the table in Oracle, I add the primary key:
    alter table emp add constraint
    pk_emp primary key (ID );
    Now GG replicate insert, delete and update.
    J.A.

  • When i set my region to United Arab Emirates, the language changes to arabic instead of english. help!

    When i set my region to United Arab Emirates, the language changes to arabic instead of english. help!

    I also have the same issue. Even if the language is set to English, the calendar and time (in the top middle part of the screen) are in arabic.

  • Calling PL/Sql Procedure in Jdeveloper 11g

    Hi All,
    How to call PL/Sql Procedure in Jdeveloper 11G. Here my procedure prints some statements in procedure using "dbms.output.put_line" . Here I want to call that procedure using button (or) ImageLink and print all the statements in pl/sql procedure in Jdeveloper Environment.
    Can anybody help on this .
    Thanks in Advance .
    Edited by: u41411 on Sep 28, 2009 7:18 AM

    Her is what I use to call Oracle DB procedure:
    procCall = "BEGIN " + YOUR_PROC_NAME + "(); END;";
    returned = am.getTransaction().executeCommand(procCall);
    where am is my application Module
    Hope this help.
    Jack

  • What is the best way to practice SQL language?

    I’m new in database world and want to practice SQL language. I’ve been playing around with Oracle XE, but I realized it’s not very practical to play around with SQL using XE since its sql editor is not user friendly to debug the script. I’m trying to build schemas from scratch and play around with it using SQL. What is the best way to do this?
    Thanks in advance

    Valerie Debonair wrote:
    I’m new in database world and want to practice SQL language. I’ve been playing around with Oracle XE, but I realized it’s not very practical to play around with SQL using XE since its sql editor is not user friendly to debug the script. I do not think that is a valid criticism at all. The basic tools needed to learn SQL is SQL*Plus and a willingness to learn.
    There is no "+debugging+" for SQL either... except to break it into simpler steps, testing that... and perhaps using "+explain plan+" to get the execution plan.
    Granted that SQL*Plus is not the best tool for displaying data... but then learning SQL should be done using small data sets (not too many columns and few rows) - as even a small data set can represent all the data model complexities needed for learning SQL.
    The examples you use, the test tables and the practical exercises used in the learning process are by far more important how "pretty" the tool being used is.
    FWIW, I do 99% of all my SQL work and PL/SQL development using SQL*Plus - it is a very capable tool.

  • Language change makes me unable to log on my Macbook!

    Hi guys,
    So yesterday I changed my language from English to Vietnamese. My computer went on sleep. When I tried to log on, it didn't show up the dots(for the password field). I'm thinking the language change has messed up the keyboards! Could anyone tell me how to fix the problem? I really need to log on my computer as soon as possible. Thank you so much.
    By the way, I changed the language to Vietnamese VNI.

    Hopefully we can get Tom or others in here to help.
    Does it boot into any of these modes?
    Holding Option/alt key at bootup.
    Holding SHIFT key at bootup.
    Target mode...
    http://support.apple.com/kb/HT1661
    Does it boot to Single User Mode, CMD+s keys at bootup, if so try...
    /sbin/fsck -fy
    Repeat until it shows no errors fixed.
    (Space between fsck AND -fy important).
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck...
    http://docs.info.apple.com/article.html?artnum=106214
    We might get clues with verbose mode...
    http://support.apple.com/kb/HT1492
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Reset Password from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Reset Password.
    Or do you have Firmware password protection in Mac OS X ...
    http://support.apple.com/kb/HT1352
    It would block usage of all the startup keys, like C, N, T, D, CMD+s, CMD+Option+p+r, CMD +v, Option, and Shift, as well as booting from anything but the Hard Drive.
    Force Removing Password Protection
    1) Add or remove DIMMs to change the total amount of RAM in the computer.
    2) Then, the PRAM must be reset 3 times. (Command + Option + P + R).
    http://www.securemac.com/openfirmwarepasswordprotection.php

  • Language change to UK English, how do I get a "period" with talk to text?

    language change to UK English, how do I get a "period" with talk to text?

    How about "full stop"?

Maybe you are looking for

  • Open txt file with Notepad

    Hi, using what abap func  can i open txt file (i have its full path)? clarification: i want the Notepad to popup at user screen. Regards Uri

  • Can we declare trigger in package

    Hi Can we declare trigger in package specification and body of trigger in package body. If so just give me the syntax. Thanks

  • How to install Portal Examples in Weblogic Portal 10.3.5

    I downloaded installation file portal103_win32.exe from Oracle site which is for Weblogic Portal 10.3.5. During the installation process I could not find anywhere I can choose to install Portal Examples. Did I miss anything when I did the installatio

  • Marquee tool feathers when its not supposed too

    I just started working at a new print shop so not sure if this is a feature that was added in CS4 or if it something in the preferences. My issue is this. When working on window designs (perforated vinyl), I bring my illustrator template into photosh

  • Can classic reports tbe converted to the 3.1 interactive reports?

    I would like to convert reports in my existing applications to the new 3.1 interactive reports. I see that I cannot select interactive on an existing report. Is there a procedure or approach that can perform the conversion short of rebuilding the rep