How to catch PL/SQL: ORA-00904 error?

Hi ,
I am trying to run the following PL/SQL Block and have trapped error code -904( for invalid column name) in the exception section block.
The column name in the select query does not exist in the emp table and as per my understanding since I have an exceptiion handler for this error it should be handled in Exception Block.
DECLARE
invalid_column exception;
pragma exception_init (invalid_column,-00904);
no number;
BEGIN
select empn into no from emp
where ename='king';
EXCEPTION
when invalid_column then
dbms_output.put_line(Column ane does not exist)
end;
1) Can You please let me know why this is not getting caught in Exception handler
*2) What changes should I make in Exception handler section so that Invalid column name is handled in the program*
Thanks and regards
Harmeet

Check this:
SQL> ed
Wrote file afiedt.buf
  1  DECLARE
  2  invalid_column EXCEPTION;
  3  PRAGMA EXCEPTION_INIT(invalid_column,-00904);
  4  v_col_check NUMBER := 0;
  5  v_col_name VARCHAR2(10) := 'OWNE';
  6  BEGIN
  7  select COUNT(*) INTO v_col_check
  8  from all_tab_cols
  9  where table_name = 'ALL_OBJECTS'
10  AND column_name = v_col_name;
11  IF (v_col_check = 0) THEN
12  RAISE invalid_column;
13  END IF;
14  EXCEPTION
15  WHEN invalid_column THEN
16  DBMS_OUTPUT.PUT_LINE('Column '||v_col_name ||' does not exist in table all_objects');
17* END;
SQL> /
Column OWNE does not exist in table all_objects
PL/SQL procedure successfully completed.
SQL> This way you can check if the column is valid or not in case you are dynamically getting the column names

Similar Messages

  • How to catch PL/SQL: ORA-04052 error?

    I need to execute a procedure that select remote objects but the remote db is a RAC DB and I only have access to one of the nodes, the remote RAC have load balancing enabled and the remote DBA can’t create a DB Service for my connection, so, I have to re-run the execution of my procedure until it connects successful to the remote DB through a db link, but I can’t catch the error ORA-12541: TNS:no listener.
    Someone knows how to catch the error??
    set serveroutput on
    declare
    function F_DATE return sysdate
    is
    ld_return date;
    begin
    begin
    select sysdate into ld_return from dual@dbl_bnvalores;
    exception
    when others then
    ld_return := f_date;
    end;
    return ld_return;
    end F_DATE;
    begin
    dbms_output.put_line('Remote sysdate: '||f_date);
    end;
    Error at line 2
    ORA-06550: line 2, column 26:
    PLS-00562: a function must return a type.
    ORA-06550: line 7, column 42:
    PL/SQL: ORA-04052: error occurred when looking up remote object BNSAFI.DUAL@DBL_BNVALORES
    ORA-00604: error occurred at recursive SQL level 1
    ORA-12541: TNS:no listener
    ORA-06550: line 7, column 7:
    PL/SQL: SQL Statement ignored

    I could confirm that you would never branch to the exception in case of no listener!
    So another possibility that comes to mind is to enclose the remote select in an execute immediate and only execute it if you could establish a connection via UTL_TCP:
    Something along those lines:
    michaels>  DECLARE
       conn               UTL_TCP.connection;
       l_date             DATE;
       no_listner_excep   EXCEPTION;
       PRAGMA EXCEPTION_INIT (no_listner_excep, -29260);
    BEGIN
       conn := UTL_TCP.open_connection ('fleet', 1569);
       EXECUTE IMMEDIATE 'select sysdate from dual@fleet_new'
                    INTO l_date;
       UTL_TCP.close_connection (conn);
       DBMS_OUTPUT.put_line (l_date);
    EXCEPTION
       WHEN no_listner_excep
       THEN
          DBMS_OUTPUT.put_line (SQLERRM (SQLCODE));
    END;
    ORA-29260: network error: TNS:no listener
    PL/SQL procedure successfully completed.

  • PL/SQL: ORA-00904:

    Hello..
    We have custom package which is working fine since long time. But all at once we are getting compilation errors.. The following are the error messages that we are getting
    233/13 PL/SQL: SQL Statement ignored
    248/20 PL/SQL: ORA-00904: "SLIP_TYPE": invalid identifier
    254/13 PL/SQL: SQL Statement ignored
    262/20 PL/SQL: ORA-00904: "SLIP_TYPE": invalid identifier
    527/16 PL/SQL: SQL Statement ignored
    593/36 PL/SQL: ORA-00904: "SLIP_DATE": invalid identifier
    597/16 PL/SQL: SQL Statement ignored
    636/36 PL/SQL: ORA-00904: "SLIP_DATE": invalid identifier
    The same package is working fine in all the other instances .

    I don't know what else to suggest, so I'll point you to the error code:
    ORA-00904:     string: invalid identifier
    Cause:     The column name entered is either missing or invalid.
    Action:     Enter a valid column name. A valid column name must begin with a letter, be less
    than or equal to 30 characters, and consist of only alphanumeric characters and the
    special characters $, _, and #. If it contains other characters, then it must be
    enclosed in double quotation marks. It may not be a reserved word.And here you can see how an ORA-00904 happens.
    SQL> create table pos_header
      2  ( slip_date date
      3  , slip_type varchar2(1)
      4  )
      5  /
    Tabel is aangemaakt.
    SQL> create procedure test1
      2  as
      3  begin
      4    update pos_header
      5       set slip_date = sysdate
      6     where slip_type = 'A'
      7    ;
      8  end;
      9  /
    Procedure is aangemaakt.
    SQL> show err
    Er zijn geen fouten.
    SQL> exec test1
    PL/SQL-procedure is geslaagd.
    SQL> alter table pos_header drop column slip_type
      2  /
    Tabel is gewijzigd.
    SQL> exec test1
    BEGIN test1; END;
    FOUT in regel 1:
    .ORA-06550: line 1, column 7:
    PLS-00905: object RWK.TEST1 is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL> alter procedure test1 compile
      2  /
    Waarschuwing: procedure is gewijzigd met compilatiefouten.
    SQL> show err
    Fouten voor PROCEDURE TEST1:
    LINE/COL ERROR
    4/3      PL/SQL: SQL Statement ignored
    6/10     PL/SQL: ORA-00904: "SLIP_TYPE": invalid identifierHope this helps assuring you that the column is missing and I hope you'll find out the table and schema where this column is missing.
    Regards,
    Rob.

  • PL/SQL: ORA-00904: invalid identifier (DG4ODBC 11.2.0.2 & MySQL)

    I have a PL/SQL script processing information between Oracle database and MySQL database. My script ran perfectly with DG4ODBC 11.1.0.7. Then we upgraded Oracle to 10.2.0 and DG4ODBC 11.2.0.2. Now if I run my script from Solaris command line like ./myscript.shl, I get the following errors:
    PL/SQL: ORA-00904: "cmswhit_moodle1"."mdl_grade_grades"."finalgrade": invalid identifier
    PL/SQL: ORA-00904: "cmswhit_moodle1"."mdl_question_states"."attempt": invalid identifier
    The strange thing is if I run the same query by cut and paste into sqlplus from command line, the query works perfectly without any problems.
    What is the cause of this problem?
    Any help would be greatly appreciated.
    Jeffrey

    Hi Klaus,
    The problem was solved after I updated MySQL ODBC to a new version from 5.1.8 to 5.1.13.
    Summary of the problem and its solution:
    The Problem: It appears that dg4odbc 11.2.0.2 requires a newer version of MyODBC. Previously I used MyODBC 5.1.8 which ran into problems with dg4odbc 11.20.0.2.
    The Solution: After I updated MyODBC to 5.1.13, my PL/SQL scripts all work.
    I need to point out that with MyODBC 5.1.8, I can run queries and updates from SQL*Plus console, but now PL/SQL scripts.
    I'll close this thread.
    Once again, thank you and happy holidays.
    Jeffrey

  • FNDLOAD: PL/SQL: ORA-00904: "LAST_UPDATED_DATE": invalid identifier

    Hi
    I have done a form personlization and download it as .ldt file using FNDLOAD.
    command used:
    FNDLOAD apps/dvpins93 0 Y DOWNLOAD $FND_TOP/patch/115/import/affrmcus.lct KPMNPOINV_LD.ldt FND_FORM_CUSTOM_RULES function_name="KPMNPOINV"
    log file:
    Application Object Library: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    module:
    Current system time is 24-DEC-2009 15:12:26
    Downloading FND_FORM_CUSTOM_RULES to the data file KPMNPOINV_LD.ldt
    Downloaded FND_FORM_CUSTOM_RULES 1204
    Concurrent request completed successfully
    Current system time is 24-DEC-2009 15:12:27
    After that i have uploaded the .ldt file using FNDLOAD after removing the personalization from that form, just to check whether it is upoloaded or not.
    But the problem, when i uploaded the file it gives me an error PL/SQL: ORA-00904: "LAST_UPDATED_DATE": invalid identifier
    command used:
    FNDLOAD apps/dvpins93 0 Y UPLOAD $FND_TOP/patch/115/import/affrmcus.lct KPMNPOINV_LD.ldt
    log file:
    Application Object Library: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    module:
    Current system time is 24-DEC-2009 16:55:17
    Uploading from the data file KPMNPOINV_LD.ldt
    Altering database NLS_LANGUAGE environment to AMERICAN
    Dump from LCT/LDT files (/appldvp/apps/prodappl/fnd/11.5.0/patch/115/import/affrmcus.lct(115.1), KPM
    NPOINV_LD.ldt) to stage tables
    Dump LCT file /appldvp/apps/prodappl/fnd/11.5.0/patch/115/import/affrmcus.lct(115.1) into FND_SEED_S
    TAGE_CONFIG
    Dump LDT file KPMNPOINV_LD.ldt into FND_SEED_STAGE_ENTITY
    Dumped the batch (FND_FORM_CUSTOM_RULES 1204 , FND_FORM_CUSTOM_SCOPES 1204 20 ) into FND_SEED_STAGE
    _ENTITY
    Upload from stage tables
    Error during uploading. ORA-06550: line 354, column 17:
    PL/SQL: ORA-00904: "LAST_UPDATED_DATE": invalid identifier
    ORA-06550: line 347, column 1:
    PL/SQL: SQL Statement ignored
    Concurrent request completed
    Current system time is 24-DEC-2009 16:55:18
    I am not able to understand the actual problem as there is nothing like LAST_UPDATED_DATE.
    Please suggest me something so that i can solve this problem

    Hi,
    Please refer to:
    Note: 287417.1 - Parameters Of Different Configuration Files To Download And Upload Seed Data Types
    For forms personalization, please refer to:
    Note: 395117.1 - Form Personalizations in Oracle E-Business Suite (Release 12)
    Note: 743490.1 - Customization in Oracle Applications
    There are many documents available on Metalink, just search for FNDLOAD and you will get many hits.
    Regards,
    Hussein

  • Dblink yields ora-00904 error

    I have a stored procedure that executes a query through a dblink to another database. The remote database is Oracle 8.1.7, the local database is Oracle 10.2.0. After making a minor change to the stored procedure, the procedure will not compile, issuing an ORA-00904 error for columns on the remote table being queried. Running the query outside the stored procedure works just fine. Compiling the procedure from our test server (also running Oracle 10.2.0) works fine. Attempts to return to previous code (without the minor change) also gets the same ORA-00904 error.
    Anyone have any ideas regarding the cause of this error?

    I'm going to answer my own question:
    Apparently, links to databases older than 9i can sometimes (perhaps at random) have the local cache in the shared pool get corrupted. The Oracle notes I saw do not describe exactly how the cache gets corrupted. This appears to be a longstanding bug without a solution - only a work around.
    The work around is to flush the cache:
    alter system flush shared pool;
    The most relevant Metalink document I found was
    Note:397658.1
    https://metalink.oracle.com/metalink/plsql/f?p=130:14:1002445788225491569::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,397658.1,1,1,1,helvetica

  • PL/SQL: ORA-04052: error occurred when looking up remote object.

    Hi All,
    I'm getting the following error message while executing a PL/SQL Block.
    PL/SQL: ORA-04052: error occurred when looking up remote object UPLDUSER.filestatushistory@FTS
    ORA-00604: error occurred at recursive SQL level 1
    ORA-03106: fatal two-task communication protocol error
    ORA-02063: preceding line from FTSStatement
    declare
    v_coun number;
    begin
    select count(*) into v_coun
    from updluser.filestatushistory@fts;
    end;Back ground of the situation as follows,
    My DataBase version 10.2.0.3 DB Name :DB1
    Table Owner : UPLDUSER
    Table Name : FILESTATUSHISTORY
    I have a report user on the same database and I have grant all on the above table to report user
    Report User : RPT_FTS
    SQL> GRANT ALL ON FILESTATUSHISTORY_V TO RPT_FTS;Now Please find the below database details where I'm getting subjected error.
    Database version : 9.2.0.8
    DB Name : DB2
    User Name : RPT_REPORTS
    I Have create a dblink from RPT_REPORTS to RPT_FTS on DB1 and the dblink works fine. But getting the above error while running it.
    but When I do the same other 10.2.0.3 db , the above PL/SQL block works fine without any problem.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Now the strange about this is that I have Created a new table on DB1 db like below;
    SQL> CREATE TABLE UPLDUSER.ABC AS SELECT * FROM FILESTATUSHISTORY;and retry my code on DB2 (9.2.0.8) after changing the table to ABC and it worked. Now I don't know whats wrong with a original table(FILESTATUSHISTORY).
    To over come the problem and a work-a-round method I create a view on the DB1 (RPT_FTS) like the below
    SQL> CREATE VIEW FILESTATUSHISTORY AS SELECT * FROM UPLDUSER.FILESTATUSHISTORY;and was able to run the PL/SQL block Remotely.
    Just wants To know what whould have been the cause for this .
    Cheers
    Kanchana

    Hi Kanchana,
    Perhaps following link of google search has answer to your query
    ORA-04052. The search result contains some useful articles whose URLs I shan't post in the forums.
    HTH!
    *009*

  • Oracle query on dblinked SQL Server tables returns ORA-00904 error

    Hi,
    I have created a dblink to a SQL Server database from Oracle using Generic Connectivity.
    The following query returns ORA-00904 Invalid Identifier error in the WHERE clause (tblEmp.Empno)
    SELECT "EmpNo","EmpName", "DeptName"
    FROM tblEmp@sqlserver,
    tblDept@sqlserver
    WHERE tblDept.DeptNo = tblEmp.Empno
    I had to enclose the column names in double quotes due to case sensitivitiy of the columns, but I can't do the
    same for the WHERE clause.
    1) So, how do I fix this error ?
    2) Also how do I include Deptno column with table alias in the columns list?
    (Deptno is ambiguous in Emp and Dept tables)
    Regards,
    Sam

    Alex
    Because using the aliases all the time can become annoying and lead to disparate standards when used by multiple developers. For a one-off query I would go with aliases in the query but if the linked tables are going to be interrogated extensively I would prefer to create vanilla views of the underlying tables so that the aliases aren't necessary.
    Just my opinion, it feels a bit cleaner to do it this way - you only do the work once in creating the view and then you don't need to worry about the case sensitivity of the linked database. You can also refer to the source in the name of the view so you don't have to think about different source databases with the same table names.
    Cheers
    Ben

  • ORA-00904 Error while running CMP EJB

    When I am running my CMP bean, I get following error,
    2006-07-02 09:58:17,171 DEBUG org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.AccountBean#fi ndByAccountNumber] Executing SQL: SELECT t0_a.ACCOUNT.UOID FROM ACCOUNT t0_a WHERE (t0_a.ACCOUNT.ACCOUNT_NUMBER = ?)
    2006-07-02 09:58:17,250 ERROR [org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.AccountBean#fi ndByAccountNumber] Find failed java.sql.SQLException:
    ORA- 00904: "T0_A"."ACCOUNT"."ACCOUNT_NUMBER": invalid identifier.
    Why is it giving invalide identifier? the length of this identifer is also less then 30 and there are no special characters being used in it.

    I think I have read that you cannot use the "." to navigate through the object, you can only use it for accessing a field of an object (i.e. a column of a table in the DB).
    So, never use more than 1 "." in your requests. In your case, I guess that you need to reformulate the request.

  • EA1 - Export result of query to clipboard gives ORA-00904 error

    I ran the following SQL in a SQL Developer worksheet:
    create table EXTCHAR_TEST (TEST_COL VARCHAR2(2000));
    insert into EXTCHAR_TEST(TEST_COL) values ('(ASCII) ABCDEFGHIJKLMNOPQRSTUVWXYZ');
    insert into EXTCHAR_TEST(TEST_COL) values ('(UTF-8) ŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚ');
    insert into EXTCHAR_TEST(TEST_COL) values ('(UTF-8) ŗňŅŒŅ ňŁœ ōř ňʼnŇň łřŔŅ ŇŏŎŅ?');
    select TEST_COL, DUMP(TEST_COL,1016) from EXTCHAR_TEST;
    I then tried to right-click on the results and export them as CSV to the clipboard. Whenever I try this (possibly other ways too, I haven't tried) I get this error:
    An error was encountered performing the requested operation:
    ORA-00904: "DUMP(TEST_COL,1016)": invalid identifier
    00904. 00000 - "%s: invalid identifier"
    * Cause:
    * Action:
    Vendor code 904Error at Line: 2 Column: 16
    Edited by: gclough on Sep 28, 2009 4:03 PM

    Hi Barry,
    I think I'm using the latest "EA1" version, which I downloaded from here:
    [http://www.oracle.com/technology/software/products/sql/index21_EA1.html]
    I have just confirmed using the sample script, that the problem still exists. I was connected to a v9.2.0.5.0 database... if that makes any difference.
    * Run SQL
    * Right-Click on results
    * Export Data -> csv...
    * Clipboard
    * Click "Apply"
    * Error... :-(
    Greg.
    About
    Oracle SQL Developer 2.1.0.62
    Version 2.1.0.62
    Build MAIN-62.61
    Copyright © 2005,2009 Oracle. All Rights Reserved.
    IDE Version: 11.1.1.2.36.54.96
    Product ID: oracle.sqldeveloper
    Product Version: 11.1.1.62.61
    Version
    Component     Version
    =========     =======
    Java(TM) Platform     1.6.0_11
    Oracle IDE     2.1.0.62.61
    Versioning Support     2.1.0.62.61
    Properties
    Name     Value
    ====     =====
    apple.laf.useScreenMenuBar     true
    awt.toolkit     sun.awt.windows.WToolkit
    class.load.environment     oracle.ide.boot.IdeClassLoadEnvironment
    class.load.log.level     CONFIG
    class.transfer     delegate
    com.apple.macos.smallTabs     true
    com.apple.mrj.application.apple.menu.about.name     "SQL_Developer"
    com.apple.mrj.application.growbox.intrudes     false
    file.encoding     Cp1252
    file.encoding.pkg     sun.io
    file.separator     \
    http.agent     Mozilla/5.0 (Java 1.6.0_11; Windows XP 5.1 x86; en_US) ICEbrowser/v6_1_3
    ice.browser.forcegc     false
    ice.pilots.html4.ignoreNonGenericFonts     true
    ice.pilots.html4.tileOptThreshold     0
    ide.AssertTracingDisabled     true
    ide.bootstrap.start     9450010258892
    ide.build     MAIN-62.61
    ide.conf     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.config_pathname     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper\bin\sqldeveloper.conf
    ide.debugbuild     false
    ide.devbuild     false
    ide.extension.search.path     sqldeveloper/extensions:jdev/extensions:ide/extensions
    ide.firstrun     true
    ide.java.minversion     1.6.0_04
    ide.launcherProcessId     5404
    ide.main.class     oracle.ide.boot.IdeLauncher
    ide.patches.dir     ide/lib/patches
    ide.pref.dir     C:\Documents and Settings\Greg\Application Data\SQL Developer
    ide.pref.dir.base     C:\Documents and Settings\Greg\Application Data
    ide.product     oracle.sqldeveloper
    ide.shell.enableFileTypeAssociation     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper.exe
    ide.splash.screen     splash.gif
    ide.startingArg0     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper.exe
    ide.startingcwd     C:\Documents and Settings\Greg
    ide.user.dir     C:\Documents and Settings\Greg\Application Data\SQL Developer
    ide.user.dir.var     IDE_USER_DIR
    ide.work.dir     C:\Documents and Settings\Greg\My Documents\SQL Developer
    ide.work.dir.base     C:\Documents and Settings\Greg\My Documents
    java.awt.graphicsenv     sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob     sun.awt.windows.WPrinterJob
    java.class.path     ..\..\ide\lib\ide-boot.jar
    java.class.version     50.0
    java.endorsed.dirs     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\endorsed
    java.ext.dirs     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
    java.home     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre
    java.io.tmpdir     C:\DOCUME~1\Greg\LOCALS~1\Temp\
    java.library.path     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;c:\Program Files\Microsoft IntelliType Pro\;C:\progra~1\Oracle\product\11.1.0\db_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Progra~1\Oracle\product\11.1.0\client_2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Common Files\Microsoft Shared\Windows Live
    java.naming.factory.initial     oracle.javatools.jndi.LocalInitialContextFactory
    java.runtime.name     Java(TM) SE Runtime Environment
    java.runtime.version     1.6.0_11-b03
    java.specification.name     Java Platform API Specification
    java.specification.vendor     Sun Microsystems Inc.
    java.specification.version     1.6
    java.util.logging.config.file     logging.conf
    java.vendor     Sun Microsystems Inc.
    java.vendor.url     http://java.sun.com/
    java.vendor.url.bug     http://java.sun.com/cgi-bin/bugreport.cgi
    java.version     1.6.0_11
    java.vm.info     mixed mode
    java.vm.name     Java HotSpot(TM) Client VM
    java.vm.specification.name     Java Virtual Machine Specification
    java.vm.specification.vendor     Sun Microsystems Inc.
    java.vm.specification.version     1.0
    java.vm.vendor     Sun Microsystems Inc.
    java.vm.version     11.0-b16
    jdbc.driver.home     /C:/progra~1/Oracle/product/11.1.0/db_1/
    jdbc.library     /C:/progra~1/Oracle/product/11.1.0/db_1/jdbc/lib/ojdbc6.jar
    line.separator     \r\n
    oracle.home     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper
    oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG     true
    oracle.jdbc.Trace     true
    oracle.translated.locales     de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
    oracle.xdkjava.compatibility.version     9.0.4
    orai18n.library     /C:/progra~1/Oracle/product/11.1.0/db_1/jlib/orai18n.jar
    os.arch     x86
    os.name     Windows XP
    os.version     5.1
    path.separator     ;
    reserved_filenames     con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
    sqldev.debug     false
    sun.arch.data.model     32
    sun.boot.class.path     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\resources.jar;C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\rt.jar;C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\sunrsasign.jar;C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\jsse.jar;C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\jce.jar;C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\lib\charsets.jar;C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\classes
    sun.boot.library.path     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\jdk\jre\bin
    sun.cpu.endian     little
    sun.cpu.isalist     pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop     windows
    sun.io.unicode.encoding     UnicodeLittle
    sun.java2d.ddoffscreen     false
    sun.jnu.encoding     Cp1252
    sun.management.compiler     HotSpot Client Compiler
    sun.os.patch.level     Service Pack 3
    svnkit.sax.useDefault     true
    user.country     US
    user.dir     C:\Program Files\Oracle\product\11.1.0\db_1\sqldeveloper\sqldeveloper\bin
    user.home     C:\Documents and Settings\Greg
    user.language     en
    user.name     Greg
    user.timezone     America/Los_Angeles
    user.variant     
    windows.shell.font.languages     
    Extensions
    Name     Identifier     Version     Status
    ====     ==========     =======     ======
    Check For Updates     oracle.ide.webupdate     11.1.1.2.36.54.96     Loaded
    Code Editor     oracle.ide.ceditor     11.1.1.2.36.54.96     Loaded
    Database Connection Support     oracle.jdeveloper.db.connection     11.1.1.2.36.54.96     Loaded
    Database Object Explorers     oracle.ide.db.explorer     11.1.1.2.36.54.96     Loaded
    Database UI     oracle.ide.db     11.1.1.2.36.54.96     Loaded
    Diff/Merge     oracle.ide.diffmerge     11.1.1.2.36.54.96     Loaded
    Extended IDE Platform     oracle.javacore     11.1.1.2.36.54.96     Loaded
    External Tools     oracle.ide.externaltools     11.1.1.2.36.54.96     Loaded
    File Support     oracle.ide.files     11.1.1.2.36.54.96     Loaded
    File System Navigator     oracle.sqldeveloper.filenavigator     11.1.1.62.61     Loaded
    Help System     oracle.ide.help     11.1.1.2.36.54.96     Loaded
    History Support     oracle.jdeveloper.history     11.1.1.2.36.54.96     Loaded
    Import/Export Support     oracle.ide.importexport     11.1.1.2.36.54.96     Loaded
    Index Migrator support     oracle.ideimpl.indexing-migrator     11.1.1.2.36.54.96     Loaded
    JDeveloper Runner     oracle.jdeveloper.runner     11.1.1.2.36.54.96     Loaded
    Log Window     oracle.ide.log     11.1.1.2.36.54.96     Loaded
    Navigator     oracle.ide.navigator     11.1.1.2.36.54.96     Loaded
    Object Gallery     oracle.ide.gallery     11.1.1.2.36.54.96     Loaded
    Object Viewer     oracle.sqldeveloper.oviewer     11.1.1.62.61     Loaded
    Oracle Data Modeler Reports     oracle.sqldeveloper.datamodeler_reports     11.1.1.62.61     Loaded
    Oracle Database Browser     oracle.sqldeveloper.thirdparty.browsers     11.1.1.62.61     Loaded
    Oracle IDE     oracle.ide     11.1.1.2.36.54.96     Loaded
    Oracle SQL Developer     oracle.sqldeveloper     11.1.1.62.61     Loaded
    Oracle SQL Developer Data Modeler Viewer     oracle.datamodeler     2.0.0.574     Loaded
    Oracle SQL Developer Extras     oracle.sqldeveloper.extras     1.1.1.62.61     Loaded
    Oracle SQL Developer Migrations     oracle.sqldeveloper.migration     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - Antlr3 Translation Core     oracle.sqldeveloper.migration.translation.core_antlr3     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - DB2     oracle.sqldeveloper.migration.db2     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - Microsoft Access     oracle.sqldeveloper.migration.msaccess     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - MySQL     oracle.sqldeveloper.migration.mysql     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - SQLServer     oracle.sqldeveloper.migration.sqlserver     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - Sybase     oracle.sqldeveloper.migration.sybase     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - Teradata     oracle.sqldeveloper.migration.teradata     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - Translation Core     oracle.sqldeveloper.migration.translation.core     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - Translation Db2     oracle.sqldeveloper.migration.translation.db2     11.1.1.62.61     Loaded
    Oracle SQL Developer Migrations - Translation UI     oracle.sqldeveloper.migration.translation.gui     11.1.1.62.61     Loaded
    Oracle SQL Developer Reports     oracle.sqldeveloper.report     11.1.1.62.61     Loaded
    Oracle SQL Developer SearchBar     oracle.sqldeveloper.searchbar     11.1.1.62.61     Loaded
    Oracle SQL Developer TimesTen     oracle.sqldeveloper.timesten     2.0.0.62.61     Loaded
    Oracle SQL Developer Unit Test     oracle.sqldeveloper.unit_test     11.1.1.62.61     Loaded
    Oracle SQL Developer Worksheet     oracle.sqldeveloper.worksheet     11.1.1.62.61     Loaded
    Oracle XML Schema Support     oracle.sqldeveloper.xmlschema     11.1.1.62.61     Loaded
    PROBE Debugger     oracle.jdeveloper.db.debug.probe     11.1.1.2.36.54.96     Loaded
    Peek     oracle.ide.peek     11.1.1.2.36.54.96     Loaded
    Persistent Storage     oracle.ide.persistence     11.1.1.2.36.54.96     Loaded
    QuickDiff     oracle.ide.quickdiff     11.1.1.2.36.54.96     Loaded
    Replace With     oracle.ide.replace     11.1.1.2.36.54.96     Loaded
    Runner     oracle.ide.runner     11.1.1.2.36.54.96     Loaded
    Snippet Window     oracle.sqldeveloper.snippet     11.1.1.62.61     Loaded
    Sql Monitoring Project     oracle.sqldeveloper.sqlmonitor     11.1.1.62.61     Loaded
    Tuning     oracle.sqldeveloper.tuning     11.1.1.62.61     Loaded
    VHV     oracle.ide.vhv     11.1.1.2.36.54.96     Loaded
    Versioning Support     oracle.jdeveloper.vcs     11.1.1.2.36.54.96     Loaded
    Versioning Support for Subversion     oracle.jdeveloper.subversion     11.1.1.2.36.54.96     Loaded
    Virtual File System     oracle.ide.vfs     11.1.1.2.36.54.96     Loaded
    Web Browser and Proxy     oracle.ide.webbrowser     11.1.1.2.36.54.96     Loaded
    audit     oracle.ide.audit     11.1.1.2.36.54.96     Loaded
    oracle.ide.indexing     oracle.ide.indexing     11.1.1.2.36.54.96     Loaded
    Edited by: gclough on Sep 30, 2009 4:39 PM

  • Heterogeneous Services ODBC to MS SQLSvr - ORA-00904 error

    Hello, I have successfully setup a heterogeneous Services ODBC to MS SQLSvr using the steps outlined at http://www.orafusion.com/art_orahs.htm.
    My problem is, the only queries that run without errors are SELECT * FROM tablename@xxx. When I try SELECT colname FROM tablename@xxx I get an ORA-00904: "colname": invalid identifier. Any thoughts?
    Also, will I be able to update MS SQLSvr tables using this link?
    Thanks.

    Hello, Your suggestion worked. Even though all the column_names are lower case, if I surrounded the column names with double quotes the query would work.
    Another question. I'm wanting to update a SQLServer table with data from a Oracle table using a query like:
    INSERT INTO sql_table@xxx
    SELECT * FROM oracle_table ;
    Is this possible? I'm getting a "ORA-02025: all tables in the SQL statement must be at the remote database" error message which looks like I can't.
    Thanks.

  • ORA-00904 error in  DBMS_STATS.GATHER_SCHEMA_STATS

    Oracle 9.2.0.5 on Solaris
    I am trying to run weekly stat gathering on a schema, using DBMS_STAT
    I am getting this error on a specific table, wehich aborts the entire process:
    ORA-00904: "SEARCHKEYWORKS": invalid identifier
    there is no such field. the table creator confirmed that initally he called a field SEARCHKEYWORKS, but later dropped it and created a new one with different name. maybe we did run DBMS_STATS on this table before the change.
    when trying to delete stats for this table, using bms_stats.delete_table_stats(ownname=> 'yyyy', tabname=> 'xxxx') I get a ORA-20000, unable to set values for column BRIEFDESCRIPTION, an existing column
    this table is referenced from many other tables, so a simple drop/recreate would be a pain. any way to fix this?
    Note: I can run the old-style command ANALYZE TABLE xxx COMPUTE STATISTICS just fine; its just the DBMS_STATS package that can't be run on this table.

    thanks for the support.
    the weekly task that first reported the error was
    EXECUTE DBMS_STATS.GATHER_SCHEMA_STATS('SSSSSS',DBMS_STATS.AUTO_SAMPLE_SIZE,FALSE,'FOR ALL COLUMNS SIZE 1',NULL,'DEFAULT',TRUE);
    the log file showed the error. where looking which table was last analyzed I gathered it was this table.
    then I tried manually only this table, from manager console using their default, which is:
    dbms_stats.gather_table_stats(ownname=> 'SSSSSS', tabname=> 'XXXXXX', partname=> NULL);
    Hey,
    could you post your dbms_stats complete syntax?
    Jaffar

  • Ora-00904 error during Export

    Hi ,
    I am facing a problem in export utility 8i database, this is occuring after i installed the packaes required for java stored procedure, any suggestion is appreciated
    L:\>exp userid=ubs/ubs owner=scott file=test.dmp log=test.log
    Export: Release 8.1.7.0.0 - Production on Tue Jul 9 13:37:31 2002
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    Export done in WE8ISO8859P1 character set and UTF8 NCHAR character set
    server uses UTF8 character set (possible charset conversion)
    About to export specified users ...
    . exporting pre-schema procedural objects and actions
    . exporting foreign function library names for user SCOTT
    . exporting object type definitions for user SCOTT
    About to export SCOTT's objects ...
    . exporting database links
    . exporting sequence numbers
    . exporting cluster definitions
    . about to export SCOTT's tables via Conventional Path ...
    . . exporting table TEMP 0 rows exported
    . exporting synonyms
    EXP-00008: ORACLE error 904 encountered
    ORA-00904: invalid column name
    EXP-00000: Export terminated unsuccessfully
    thankyou in advance for a reply
    Regards
    bala

    It might be that you have not ran the exp script to build the correct views.
    Some applications build tables with double quotes around them to force the table or view names to lower case. exp doesn't play well with that. You may have to go through and rename all the objects that were creates case specific.

  • How do I fix this ORA-00900 error?

    I keep getting the notoriously vague ORA-00900 error for the following Region Source code.
    +(start here)+
    if ( (:P44_CAC_TO_SEARCH = '***All***') and (:P44_ASSET_TO_SEARCH = NULL) )
    select "ID",
    "NAME",
    "TITLE",
    "COMPANY",
    "ADDRESS_LINE1",
    "ADDRESS_LINE2",
    "CITY",
    "STATE",
    "COUNTRY",
    "ZIP",
    "EMAIL",
    "PHONE",
    "CAC",
    "FAX",
    "CONTACT_TYPE_ID",
    "NOTES",
    "ASSETS_CHECKBOXES",
    "CREATED_ON",
    "CREATED_BY",
    "UPDATED_ON",
    "UPDATED_BY",
    "NEIGHBORHOOD",
    "WHAT_YOU_LIKE",
    "WHAT_TO_IMPROVE",
    "WHAT_TO_WORK_ON",
    "ENTERED_BY",
    "DESCRIPTION_OF_OTHER"
    from "#OWNER#"."EBA_CUST_CONTACTS";
    end if;
    +(end here)+
    Any ideas?
    Steve "the n00b" in Raleigh NC

    Hi
    when posting code, please put {noformat}{noformat} (with the curly braces and the word code in lower case) above and below it like this...
    {noformat}{noformat}
    BEGIN
    NULL;
    END;
    {noformat}{noformat}
    This will preserve formatting and will display like this...BEGIN
    NULL;
    END;
    So your query looks like this...SELECT id,
    name,
    title,
    company,
    address_line1,
    address_line2,
    city,
    state,
    country,
    zip,
    email,
    phone,
    cac,
    fax,
    contact_type_id,
    notes,
    assets_checkboxes,
    created_on,
    created_by,
    updated_on,
    updated_by,
    neighborhood,
    what_you_like,
    what_to_improve,
    what_to_work_on,
    entered_by,
    description_of_other
    FROM "#OWNER#"."EBA_CUST_CONTACTS"
    WHERE ((:p44_asset_to_search != NULL)
    AND(contains_f(:p44_asset_to_search, assets_checkboxes)))
    OR((:p44_cac_to_search != NULL)
    AND(contains_f(:p44_cac_to_search, cac)));
    What is the source of contains_f?
    Cheers
    Ben
    Edited by: Munky on Feb 5, 2010 2:16 PM - Oh, and remove the semi-colon from the end, it isn't needed in the source here and can mess things up                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Having issues with a left join, getting ORA-00904 error

    Ok this is something very similar to what I am facing, but dumbed down. None of these columns or tables names exist in real life (Very paranoid company I work for, understandable though) but the fundamental problem I am having is like below.
    Basically I know I could have done something similar to this is MS SQL (Or am I dreaming?). If I am right or wrong I need to know a way around this.
    Obviously if you comment out the "CAL.WEEK_SINCE_2005" and "AND CUST.week_since_2005 = CAL.WEEK_SINCE_2005" it would work. But I really need it to display the date as well. So it can be group'ed by week since 2005.
    I will be joining other statements to this. I am hoping on doing this in one select statement instead of creating multiple tables as I am now. All the other joined tables will follow a VERY similar layout to this. So something like this is need to obtain the look.
    When ran I get the following error.
    I look forward to learning what I did wrong and how I can fix it. :)
    select ORG.ORGANIZATION_NAME,
    CUST.CUST_COUNT,
    CAL.WEEK_SINCE_2005
    FROM organization ORG,
    calendar CAL
    LEFT JOIN (
    SELECT CAP.CURRENT_STORE,
    CALEN.week_since_2005,
    count(CAP.inactive_date) CUST_COUNT
    FROM CUST_AGREE_PAST CAP,
    calendar CALEN
    WHERE CAP.active_date is not null
    and CAP.inactive_code in ('T')
    and CAP.inactive_date between '01-sep-07' and sysdate
    and CAP.INACTIVE_DATE = CALEN.CALENDAR_DATE
    and CAP.RSN_CODE_ID in (select rsn_code_id from reasons where title in ('FAIL', 'NO CALL'))
    GROUP BY CAP.CURRENT_STORE,
    CALEN.week_since_2005) CUST
    ON PO.CURRENT_STORE = ORG.ORGANIZATION_NAME
    AND CUST.week_since_2005 = CAL.WEEK_SINCE_2005

    Just noticed a problem (there might be others):
    FROM organization ORG,
    calendar CAL
    LEFT JOIN (You cannot do that - you are mixing Oracle and ANSI join syntax. You have to do one or the other:
    FROM organization ORG
    JOIN calendar CAL on (ORG.col = CAL.col)
    LEFT JOIN (....)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Can not get itunes to recognize my classic ipod

    My classic ipod is not being recognized by iTunes, what can I do to correct?

  • Backing up Element 7 files and catalog

    Hi - Currently I am running Photoshop Elements 7 (PE7) on a computer with Windows XP.  All of my photos are on an external hard drive.  I want to back up all of my photos, tags, etc. (all the work I have done) and be able to access everything from my

  • Please help C++ into java.

    Hello, I am working one small swing program. And want to know about c++ code. Can any one tell me that can we convert the c++ code into java code. My c++ code is: void Activity::computeInternalStructure(Rules& r)      //the internal subgroups list mu

  • Apple TV component to scart

    My TV does not have an HDMI socket. Is it possible to connect the component outs from the ATV to a component/scart adapter and plug this into an RGB enabled scart socket on the TV and get a valid picture? Thanks.

  • Crystal Reports -- Printing Issue

    Hello all.. when i export report to pdf format., am seeing an unnecessary space between characters. please suggest how to avoid this!! here is the screenshot.,