SQL Developer Abrupt behaviour -- Invalid Identifier
I have tried to use below 2 SQL using Script output (F5) both of them are semantically incorrect, but first one give no error, while second one give error
SELECT substr(argument,1,2) FROM DUAL WHERE XX_ID LIKE 'XX';
No error raised.
SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX';
Error starting at line 1 in command:
SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX'
Error at Command Line:1 Column:33
Error report:
SQL Error: ORA-00904: "XX_ID": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Hi Shahid,
I tried the same in 3.1.07.42 using jdk1.6.0_31:
Worksheet
SELECT substr(argument,1,2) FROM DUAL WHERE XX_ID LIKE 'XX';
SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX';Run Script -> Script Output
Error starting at line 1 in command:
SELECT substr(argument,1,2) FROM DUAL WHERE XX_ID LIKE 'XX'
Error at Command Line:1 Column:44
Error report:
SQL Error: ORA-00904: "XX_ID": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Error starting at line 2 in command:
SELECT argument FROM DUAL WHERE XX_ID LIKE 'XX'
Error at Command Line:2 Column:32
Error report:
SQL Error: ORA-00904: "XX_ID": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:Maybe your SQL Developer version is different? Or you really got both errors, but the sizing of your Script Output tab only displayed the last one and you didn't notice the scroll bar at the tab's right side?
Regards,
Gary
SQL Developer Team
Similar Messages
-
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 problemHi,
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 -
Dynamic SQL Issue ORA-00904:invalid identifier error
Here is my SP
create or replace procedure srini_ref_cursor_test(p_county_code IN VARCHAR2,
p_ref_cur out PK_FR_TYPES.cursor_type) is
query_str varchar2(5000);
begin
query_str := 'SELECT * FROM dw_county where county_name = :P ';
open p_ref_cur for query_str USING p_county_code;
insert into srini_query_str_test values (query_str);
commit;
end srini_ref_cursor_test;
When I pass the p_county_code = Adams working find.
create or replace procedure srini_ref_cursor_test(p_county_code IN VARCHAR2,
p_ref_cur out PK_FR_TYPES.cursor_type) is
query_str varchar2(5000);
begin
query_str := 'SELECT * FROM dw_county where county_name in ('||p_county_code||')';
open p_ref_cur for query_str;
insert into srini_query_str_test values (query_str);
commit;
end srini_ref_cursor_test;
When I pass the p_county_code = Adams for above SP I got the following error
ORA-00904: "ADAMS": invalid identifier error
With out Bind variables how Can I pass the Char type values in Dynamic SQL ?
I would like to pass multipule values to p_county_code like 'Adams','Ashley' etc
How Can I do this ?
Thank for great help.
SriniHow do I write the Dynamic SQL for
SELECT * FROM DW_COUNTY WHERE COUNTY_NAME LIKE 'Ad%'
The usual way...
hr@ORA10G>
hr@ORA10G> var str varchar2(1000);
hr@ORA10G> var cr refcursor;
hr@ORA10G>
hr@ORA10G> exec :str := 'select * from employees where first_name like ''A%''';
PL/SQL procedure successfully completed.
hr@ORA10G> -- note the escape character for each single quote
hr@ORA10G> print str
STR
select * from employees where first_name like 'A%'
hr@ORA10G>
hr@ORA10G> exec open :cr for :str;
PL/SQL procedure successfully completed.
hr@ORA10G> print cr
EMPLOYEE_ID FIRST_NAME LAST_NAME EMAIL PHONE_NUMBER HIRE_DATE JOB_ID SALARY COMMISSION_PCT MANAGER_ID DEPARTMENT_ID
103 Alexander Hunold AHUNOLD 590.423.4567 03-JAN-90 IT_PROG 9000 102 60
115 Alexander Khoo AKHOO 515.127.4562 18-MAY-95 PU_CLERK 3100 114 30
121 Adam Fripp AFRIPP 650.123.2234 10-APR-97 ST_MAN 8200 100 50
147 Alberto Errazuriz AERRAZUR 011.44.1344.429278 10-MAR-97 SA_MAN 12000 .3 100 80
158 Allan McEwen AMCEWEN 011.44.1345.829268 01-AUG-96 SA_REP 9000 .35 146 80
167 Amit Banda ABANDA 011.44.1346.729268 21-APR-00 SA_REP 6200 .1 147 80
175 Alyssa Hutton AHUTTON 011.44.1644.429266 19-MAR-97 SA_REP 8800 .25 149 80
185 Alexis Bull ABULL 650.509.2876 20-FEB-97 SH_CLERK 4100 121 50
187 Anthony Cabrio ACABRIO 650.509.4876 07-FEB-99 SH_CLERK 3000 121 50
196 Alana Walsh AWALSH 650.507.9811 24-APR-98 SH_CLERK 3100 124 50
10 rows selected.
hr@ORA10G>
hr@ORA10G>pratz -
Dynamic SQL Error -ORA-00904: invalid identifier
Hello!
I'm really hoping I can get some fast help on this. In the interest of honesty, this is for a university oracle programming assignment. I've searched everywhere I can for the answer and haven't had any luck.
Anyway, the problem in a nutshell. I have to write a package to write a text file. The formatting information for the file is held in a table, which has columns to define the various characteristics like justification, padding character and field value.
RECORDTYPE FIELDNAME FIELDVALUE FIELDSIZE FIELDORDER PADDINGCHAR JUSTIFICATION DATASOURCE
7 CreditTotal v_credit 10 5 '0' LPAD PROGRAM
7 RecordType '7' 1 1 ' ' RPAD HARDCODE
I can build the whole file except this footer. the FieldValue "v_credit" references a variable that has the calculated total of the credit amounts for the file. There are also "v_debit", and "(v_credit-v_debt)" entries.
My question seems simple... How can I use this VARCHAR2 value from the table, and have it reference the variable within a Dynamic SQL string? If I use the textvalue of the column in the SQL string it gives me the invalid identifier error when it hits the EXECUTE IMMEDIATE statement. There is another row for the header which has "to_char(sysdate,'DDMMYYYY')" in it, and that runs fine. I'm assuming because they are native SQL statements and variables.
I have tried encapsulating the v_credit in "s, and using dynamica bind variables but had the same problem passing the names to the USING clause.
The SQL string created by the procedure is: SELECT LPAD(v_credit,10,'0' ) FROM dual
The full error is:
ORA-00904: "V_CREDIT": invalid identifier
ORA-06512: at "BWOOD.PKG_BRIAN", line 108
ORA-06512: at line 2
Line 108 is the EXECUTE IMMEDIATE statement
I would really appreciate someones help! I'm happy to post the procedure I've written, with the caveat that it's sloppy student work and needs cleaning up of all the experimental commented attempts:)
Edited by: user5426606 on 20-May-2009 03:34 - Added a few more facts.Thank you for the fast replies. I'll post a short chunk of code to demonstrate.
The actual procedure is quite a bit longer, but this should give you the idea.
PROCEDURE build_dbfile (p_settlement_date IN DATE, p_settlement_key IN VARCHAR2, p_type IN VARCHAR2) AS
v_sqlString VARCHAR2(4000) := 'SELECT ';
v_rectype NUMBER := 7;
v_line LONG;
v_debit NUMBER := 0;
v_credit NUMBER := 0;
v_nrRecords NUMBER := 0;
CURSOR c_settlement IS... -- to select records for data rows
-- cursor to select the rows with the file formatting and data info
CURSOR c_header IS SELECT NVL(fieldvalue,fieldname) db_field, <---- selects the data column
fieldsize,
NVL(paddingchar, ''' ''') paddingchar,
NVL(justification,'LPAD') justification,
datasource
FROM FSS_DESKBANK_REF
WHERE recordtype = r_rec_types.recordtype
ORDER BY recordType, fieldorder;
-- SELECT to get the SUM of datarows for v_credit
SELECT SUM(transactionamount)
INTO v_credit...
-- SELECT to get the SUM of datarows for v_debit
SELECT SUM(transactionamount)
INTO v_debit....
FOR r_head IN c_header LOOP
v_sqlString := v_sqlString || r_head.justification|| '('
|| r_head.db_field ||','
|| r_head.fieldsize || ','
|| r_head.paddingchar || ')';
v_sqlString := v_sqlString || ' FROM ' || v_tbl_name;
DBMS_OUTPUT.PUT_LINE('SQL --> '||v_sqlString);
EXECUTE IMMEDIATE v_sqlString INTO v_line;
END LOOP;
DBMS_OUTPUT.PUT_LINE(v_line);
END build_dbfile;So the loop goes through the table rows, grabs each data value and formatting column, and builds the sql string, which is then passed to the execute statement. The issue is the ones where the datarow contains a reference to v_credit, and the error is generated. ie r_head.db_field contains the string "v_credit"
Satish, the sql does look like that in the string, but the string is built from the table, not hardcoded. ie v_sqlString = "SELECT LPAD(v_credit,10,'0' ) FROM dual" when it is passed to the EXECUTE IMMEDIATE.
Edited by: user5426606 on 20-May-2009 05:19 -
To Whom it may Concern,
I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
Here is the syntax I am using:
ALTER TABLE ACCTMANAGER
ADD (Comm_id NUMBER(10)),
Ben_id VARCHAR(2);
The spool file I'm getting as a result of the script above:
Error starting at line 1 in command:
ALTER TABLE ACCTMANAGER
ADD (Comm_id NUMBER(10)),
Ben_id VARCHAR(2)
Error report:
SQL Error: ORA-01735: invalid ALTER TABLE option
01735. 00000 - "invalid ALTER TABLE option"
*Cause:
*Action:
DESC acctmanager
Thank you in advance.4b60e01f-2ea5-40fe-a161-fc12d38d09e5 wrote:
To Whom it may Concern,
I am attempting to add two columns Comm_id and Ben_id to a table in SQL Developer (Oracle).
Here is the syntax I am using:
ALTER TABLE ACCTMANAGER
ADD (Comm_id NUMBER(10)),
Ben_id VARCHAR(2);
The spool file I'm getting as a result of the script above:
Error starting at line 1 in command:
ALTER TABLE ACCTMANAGER
ADD (Comm_id NUMBER(10)),
Ben_id VARCHAR(2)
Error report:
SQL Error: ORA-01735: invalid ALTER TABLE option
01735. 00000 - "invalid ALTER TABLE option"
*Cause:
*Action:
DESC acctmanager
Thank you in advance.
try as below instead
ALTER TABLE ACCTMANAGER
ADD (Comm_id NUMBER(10), Ben_id VARCHAR(2)); -
SQL developer freeze behaviour
I thought SQL Developer can run multiple SQLs at the same time, or at least enable one to browse a database whilst a piece of SQL is running.
However, I always have problems doing more than one thing at a time.
For example, I had a piece of PL/SQL running today and then tried to start a new connection.
All I got was an hourglass.
I am using Version 1.5.3 Build MAIN-5783 on Windows XP SP2.
Is it SQL Developer or Java that is causing problems like this ?
I am not using the latest version of Java, as that is incompatible with some other products I use.
I am however using Java Version 1.5.0 (build 1.5.0_12-b04).
Thanks.SQL Developer by default only opens a single DB connection for all of the worksheets for a SQL Developer connection and a single DB connection can only do one thing at once. However, as Sue said, you can open a new worksheet and DB connection for an already connected SQL Developer connection with the Ctrl+Shift+N keystroke (called an unshared worksheet) - this will give you a second DB connection for running something else at the same time.
I don't use this much, but I have sometimes had SQL Developer it couldn't open the unshared worksheet as the connection was busy, so it can help if you know something is going to take a long time before you run it, to create the unshared worksheet first and run the long running statement/script in it.
theFurryOne -
SQL Developer Installation Problems
Hi,
We are trying to find a workable alternative to TOAD and have tried to install SQL Developer with not much success.... I think I am just about to give up but hope this last attempt to post for help can create a miracle.
I would appreciate very much if any one knows of a comprehensive document out there that can help trouble shoot the installation problems.
Let me give you the hardware and software versions first and then the problems.
1) SQL Developer tried: sqldeveloper-1.2.1.3213-no-jre and sqldeveloper-1.2.1.3213
2) JRE tried: JRE 1.5 and JRE 6 (C:\Program Files\Java\jre1.6.0_03)
3) Window: XP Professional version 2002 Service pack 2
4) Hardware: Intel Pentium 4 CPU 2.80 GHz, 1.98 GB of RAM
Problems:
1) SQL Developer could not find native JDBC. I don't understand why, despite all the variables set in Oracleclient10g_basic in the registry, SQL Developer did not seem to be able to find a 10g client on a network drive. I have to install 10g client directly onto my pc (C:\oracle\product\10.2.0\client_1) to solve this problem.
2) SQL Developer abruptly disappeared after database login.
I was able to connect and log into an Oralce 10g database with TNS Connect Identifier approach. There were objects (tables, views, etc) showed up briefly on the left hand side of the SQL Developer and then it just completely disappeared without even an error message or a tearful good-bye.
The only thing I can find is this error log about EXCEPTION_ACCESS_VIOLATION. After hours searching through OTN for possible mentioning of this error with SQL Developer, I found nothing so far.
Why is it so difficult to install SQL Developer? Are there a set of un-spoken pre-requisites that has to be satisfied before it can be installed properly? If so, what are they? Path system variable? Registry? Anything else?
Here's the complete EXCEPTION_ACCESS_VIOLATION error log:
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x2ca5683c, pid=952, tid=2576
# Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode, sharing)
# Problematic frame:
# C [OraOCIEI10.dll+0x4f683c]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
--------------- T H R E A D ---------------
Current thread (0x04330400): JavaThread "Init Insight" [_thread_in_native, id=2576]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x31a28e40, EBX=0x00000000, ECX=0x03231622, EDX=0x00000000
ESP=0x04b0f168, EBP=0x04b0f1a8, ESI=0x00000001, EDI=0x0413ded4
EIP=0x2ca5683c, EFLAGS=0x00010297
Top of Stack: (sp=0x04b0f168)
0x04b0f168: 00000001 00a3fb8e 0000000a 00000001
0x04b0f178: 0413c78c 00000001 02c52aa8 0000000a
0x04b0f188: 00000020 00a4047e 090ea038 0413def4
0x04b0f198: 03231622 6d8a87b3 032325c1 0413c78c
0x04b0f1a8: 04b0f1d8 2ca57072 0413ded4 032325c1
0x04b0f1b8: 00000001 00000000 03231620 03231622
0x04b0f1c8: 00000000 00000000 00000000 00000000
0x04b0f1d8: 04b0f234 2ca56e06 0413c78c 0413ded4
Instructions: (pc=0x2ca5683c)
0x2ca5682c: 5c 00 a1 80 58 b3 31 88 9f c4 00 00 00 8b 14 98
0x2ca5683c: 8b 0a 81 e1 00 80 00 00 89 4d dc 0f 85 90 03 00
Stack: [0x04ac0000,0x04b10000), sp=0x04b0f168, free space=316k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [OraOCIEI10.dll+0x4f683c]
C [OraOCIEI10.dll+0x4f7072]
C [OraOCIEI10.dll+0x4f6e06]
C [OraOCIEI10.dll+0x419685]
C [OCI.dll+0x7333]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Loracle/jdbc/driver/OracleStatement;JIIIZZZZ[BIBII[SI[B[CII[SII[B[CII[I[S[BIIIIZZ[Loracle/jdbc/driver/Accessor;[[[B[J[BI[CI[SIZ)I+0
j oracle.jdbc.driver.T2CCallableStatement.executeForDescribe()V+271
j oracle.jdbc.driver.T2CCallableStatement.executeForRows(Z)V+41
j oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()V+275
j oracle.jdbc.driver.OraclePreparedStatement.executeInternal()I+94
j oracle.jdbc.driver.OraclePreparedStatement.execute()Z+17
j oracle.jdbc.driver.OracleCallableStatement.execute()Z+60
j oracle.dbtools.raptor.insight.CompletionInsight.getInsightableOracleDatabase(Loracle/javatools/db/Database;)Loracle/dbtools/raptor/insight/InsightableDatabase;+70
j oracle.dbtools.raptor.insight.CompletionInsight.<init>(Loracle/ide/Context;Loracle/javatools/db/Database;)V+161
j oracle.dbtools.sqlworksheet.sqlview.SqlEditorMainPanel$5.run()V+52
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x04330400 JavaThread "Init Insight" [_thread_in_native, id=2576]
0x0416ac00 JavaThread "Timer-4" [_thread_blocked, id=1460]
0x0412cc00 JavaThread "Timer-3" [_thread_blocked, id=2544]
0x04323800 JavaThread "WeakDataReference polling" [_thread_blocked, id=3756]
0x0315cc00 JavaThread "Image Fetcher 3" daemon [_thread_blocked, id=3412]
0x02c17c00 JavaThread "Image Fetcher 2" daemon [_thread_blocked, id=2124]
0x04324800 JavaThread "Image Fetcher 1" daemon [_thread_blocked, id=2088]
0x04321800 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=276]
0x02ca2c00 JavaThread "WaitCursorTimer" daemon [_thread_blocked, id=2096]
0x00296800 JavaThread "DestroyJavaVM" [_thread_blocked, id=3816]
0x02cb0400 JavaThread "Timer-1" [_thread_blocked, id=2832]
0x02c32000 JavaThread "IconOverlayTracker Timer" [_thread_blocked, id=1204]
0x04060800 JavaThread "Log Page Updater" [_thread_blocked, id=2160]
0x03323800 JavaThread "TimerQueue" daemon [_thread_blocked, id=3996]
0x032d1800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=4004]
0x032ca400 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1488]
0x032c9800 JavaThread "AWT-Shutdown" [_thread_blocked, id=256]
0x032c8400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1064]
0x02c0d000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2956]
0x02c08400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3236]
0x02c07400 JavaThread "Attach Listener" daemon [_thread_blocked, id=3248]
0x02c06800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3232]
0x02bfe400 JavaThread "Finalizer" daemon [_thread_blocked, id=2328]
0x02bfd400 JavaThread "Reference Handler" daemon [_thread_blocked, id=1668]
Other Threads:
0x02bfc000 VMThread [id=2868]
0x02c0e800 WatcherThread [id=2940]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 1536K, used 500K [0x06960000, 0x06b00000, 0x090c0000)
eden space 1408K, 26% used [0x06960000, 0x069bd3b0, 0x06ac0000)
from space 128K, 100% used [0x06ac0000, 0x06ae0000, 0x06ae0000)
to space 128K, 0% used [0x06ae0000, 0x06ae0000, 0x06b00000)
tenured generation total 19372K, used 12857K [0x090c0000, 0x0a3ab000, 0x26960000)
the space 19372K, 66% used [0x090c0000, 0x09d4e400, 0x09d4e400, 0x0a3ab000)
compacting perm gen total 22272K, used 22205K [0x26960000, 0x27f20000, 0x2a960000)
the space 22272K, 99% used [0x26960000, 0x27f0f780, 0x27f0f800, 0x27f20000)
ro space 8192K, 62% used [0x2a960000, 0x2ae614a8, 0x2ae61600, 0x2b160000)
rw space 12288K, 52% used [0x2b160000, 0x2b7a7278, 0x2b7a7400, 0x2bd60000)
Dynamic libraries:
0x00400000 - 0x00423000 C:\WINDOWS\system32\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f5000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f02000 C:\WINDOWS\system32\RPCRT4.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x7c340000 - 0x7c396000 C:\Program Files\Java\jre1.6.0_03\bin\msvcr71.dll
0x6d7c0000 - 0x6da0a000 C:\Program Files\Java\jre1.6.0_03\bin\client\jvm.dll
0x7e410000 - 0x7e4a0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d310000 - 0x6d318000 C:\Program Files\Java\jre1.6.0_03\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d770000 - 0x6d77c000 C:\Program Files\Java\jre1.6.0_03\bin\verify.dll
0x6d3b0000 - 0x6d3cf000 C:\Program Files\Java\jre1.6.0_03\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\Program Files\Java\jre1.6.0_03\bin\zip.dll
0x6d000000 - 0x6d1c3000 C:\Program Files\Java\jre1.6.0_03\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\msvcrt.dll
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d2b0000 - 0x6d303000 C:\Program Files\Java\jre1.6.0_03\bin\fontmanager.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x7c9c0000 - 0x7d1d7000 C:\WINDOWS\system32\shell32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\comctl32.dll
0x77b40000 - 0x77b62000 C:\WINDOWS\system32\Apphelp.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x03850000 - 0x0386a000 C:\sqldeveloper-1.2.1.3213-no-jre\sqldeveloper\ide\lib\idenative.dll
0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll
0x6d570000 - 0x6d583000 C:\Program Files\Java\jre1.6.0_03\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x6d590000 - 0x6d599000 C:\Program Files\Java\jre1.6.0_03\bin\nio.dll
0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll
0x6d220000 - 0x6d243000 C:\Program Files\Java\jre1.6.0_03\bin\dcpr.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000 C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000 C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 C:\WINDOWS\system32\WLDAP32.dll
0x66210000 - 0x66219000 C:\WINDOWS\system32\netware\NWWS2NDS.DLL
0x50d50000 - 0x50d98000 C:\WINDOWS\system32\NETWIN32.DLL
0x50d00000 - 0x50d15000 C:\WINDOWS\system32\CLNWIN32.DLL
0x50df0000 - 0x50e10000 C:\WINDOWS\system32\LOCWIN32.DLL
0x50db0000 - 0x50ddc000 C:\WINDOWS\system32\NCPWIN32.dll
0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
0x66220000 - 0x6622c000 C:\WINDOWS\system32\netware\NWWS2SLP.DLL
0x66250000 - 0x66257000 C:\WINDOWS\system32\NWSRVLOC.dll
0x76fc0000 - 0x76fc6000 C:\WINDOWS\system32\rasadhlp.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x6d560000 - 0x6d569000 C:\Program Files\Java\jre1.6.0_03\bin\management.dll
0x62f00000 - 0x62f13000 C:\oracle\product\10.2.0\client_1\ocijdbc10.dll
0x03e50000 - 0x03ea7000 C:\oracle\product\10.2.0\client_1\OCI.dll
0x2c560000 - 0x31bf6000 C:\oracle\product\10.2.0\client_1\OraOCIEI10.dll
0x77a80000 - 0x77b14000 C:\WINDOWS\system32\CRYPT32.dll
0x77b20000 - 0x77b32000 C:\WINDOWS\system32\MSASN1.dll
VM Arguments:
jvm_args: -Xmx512M -Xverify:none -XX:JavaPriority10_To_OSPriority=10 -XX:JavaPriority9_To_OSPriority=9 -Doracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG=true -Dsun.java2d.ddoffscreen=false -Dwindows.shell.font.languages= -Dide.conf=sqldeveloper.conf -Dide.home.dir.name=.sqldeveloper
java_command: oracle.ide.boot.Launcher
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\oracle\product\10.2.0\client_1;X:\oracle10g\product\10.2.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\IDM Computer Solutions\UltraEdit-32
USERNAME=leexx255
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 2 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 2079468k(1385300k free), swap 4021668k(3516444k free)
vm_info: Java HotSpot(TM) Client VM (1.6.0_03-b05) for windows-x86, built on Sep 24 2007 22:24:33 by "java_re" with unknown MS VC++:1310
Is this a java problem? SQL Developer problem? Or something else?
Thanks in advance,
a TOAD loverThe problem you are seeing (the EXCEPTION_ACCESS_VIOLATION) is a result of a version mismatch between the JDBC driver being used by SQL Developer and the Oracle client that is found on the path.
This issue only occurs when trying to use the OCI version of the JDBC driver. The simplest fix is to switch to using the basic connection type and thus using the thin (all Java) JDBC driver. As no Oracle client is required in this case, the version mismatch won't be an issue.
However, the connection approach you are using should work, and if you wish to try to sort out the problems there, we should be able to further diagnose the underlying cause of the version mismatch.
To do this, I would need to see what SQL Developer thinks are the potential Oracle client installs, as well as which install it ends up picking. Can you copy/paste the output in the Log Window (Logging Page) that is present after SQL Developer starts (but before you attempt to connect to any database)? There should be a whole series of entries like 'Checking for ORACLE_HOME environment variable' and 'Checking JDBC driver at <some path>'
These log entries are output by SQL Developer as it tries to sort out the various bits of information about Oracle client installs and thus give a peek at the selection logic being used.
Oh, and also - the value of your PATH variable would be useful as well. It may be that there is an Oracle client install on the PATH that supersedes the install SQL Developer is finding via the registry or ORACLE_HOME variable.
- John McGinnis
SQL Developer Team -
Pl/SQL Error ORA-00904 not showing in Oracle SQL Developer
Hi,
I am new to Oracle and the various development tools available.
Whilst using Oracle SQL Developer we have come across a scenario where a PL/SQL package does not compile, but only shows warnings in the compiler log.
The same packeage when compiled using PL/SQL Navigator shows a much more detailed list of errors, and highlights the real problem.
Why does Oracle SQL Developer not show the following error?
PL/SQL: ORA-00904: "SERIAL_LINE_ID": invalid identifier
Regards
AdrianThere are various settings you can give to messages. (eg, informational, warning, severe).
Tools-PL/SQL compiler options.
Normally, just the first 20 messages are displayed.
Either change code to get rid of warning messages, or change settings to ignore informational and warning messages.
P.S. There is a dedicated sqldeveloper forum where your question should really have been posted.
Edited by: Keith Jamieson on Mar 9, 2009 1:45 PM -
SQL Developer Quick Migrate error
I am attempting to migrate my databases from SQL Server 2000 to Oracle 11g. I am attempting to use the quick migrate feature of Oracle SQL Developer and receiving an error, the same error for every database during the build stage. The error is as follows. Any ideas as to resolve this error?
Error starting at line 2 in command:
CREATE TABLE EMPLOYEE (
Error at Command Line:2 Column:23
Error report:
SQL Error: ORA-00904: : invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Commit
Oracle 11g on Windows XP and version 1.2.1.32.13 of sql developer
BrianHi Brian,
There are 2 ways to migrate your database to Oracle using SQL Developer.
1)Normal Migration
*This is the standard way of migrating a database
2)Quick Migrate
*Quick Migrate is basically the "Normal Migration" with all the defaults chosen and each phase capture/convert/generate and data move performed for you.
*Requires very little intervention and tries to complete the entire migration in 1 go.
*Suitable for only small databases and trying out the tool
*Does not allow you to modify anything during the migration
"What do you mean perform the capture of the SQL Server DB then convert and generate? "
I would suggest having a look at this viewlet. A SQL Server Migration ("Northwind") is performed.
http://www.oracle.com/technology/tech/migration/workbench/viewlets/sqlserver.html
The steps are outlined in the doc here
http://download.oracle.com/docs/cd/E10405_01/doc/appdev.120/e10406/migration.htm
You can find more viewlets here
http://www.oracle.com/technology/tech/migration/workbench/files/sdmwb_viewlets.html
And the main SQL Developer Migration Workbench OTN page (which links to everything) here
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
So once, you capture/convert and generate your script to create your Oracle database. You should be able to identify the exact problem with the DDL.
Regards,
Dermot. -
Why can't i create a GLOBAL TEMP ORA-00904:string: invalid identifier
I have the following error see error message beneath.
The error message states that -> The column name entered is either missing or invalid.
But what is wrong with the column name that i have?
Error starting at line 815 in command:
CREATE GLOBAL TEMPORARY TABLE tt_v_Table
rownum NUMBER(10,0) PRIMARY KEY NOT NULL, /* this is line 815*/
TestTableID NUMBER(10,0)
Error at Command Line:817 Column:2
Error report:
SQL Error: ORA-00904: : invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Warning: execution completed with warning
TRIGGER tTestTableUpd Compiled.
Message was edited by:
user640306By the way the code was generated with Oracle SQL Developer migration functionality (client-only) 1.5.0.53.04
I am migrating a MS SQL 2005 database to an Oracle 9i database. I have the following installed:
• Oracle 9i Enterprise Edition Release 9.2.0.1.0 –Production with the partitioning, Spatial, Olap, and Oracle data mining options.
• Internal to Oracle SQL Developer (client-only) 1.5.0.53.04
• JTDS JDBC Driver 11.4.4.53.01 oracle.sqldeveloper.thirdparty.drivers.sqlserver
• Java(TM) Platform 1.5.0_06
Message was edited by:
user640306 -
Password change fails in SQL Developer with verify function...
A couple of months ago I enforced a password verify function on our 11.2.0.3 databases and also one legacy 10.2.0.4 database.
At the time I tested on my account (which had elevated privileges...doh!). Now some users are hitting expiry, they can't change it via SQL Developer.
If I create a user with 'create session' privilege and set their profile to one that uses the verify function (see both below), I then log in to SQL Developer (we have tried with versions 3.1 (Windows) and 3.2 (Linux) with same failure results.
BTW,.. the password verify function enforces the following:
password must be minimum of 8 characters
password must not be the same as the user name, or user name (1-100)
password must contain at least a single digit
password must contain at least a single character
1. Works = I log into the local server and run command line SQLPlus, type 'password' and update. I can successfully change my password.
2. Fails = I log into the local server and run command line SQLPlus, type 'alter user <me> identified by <newpwd>;' I get:
TEST: SUTEMP > alter user sutemp identified by carport9999;
alter user sutemp identified by carport9999
ERROR at line 1:
ORA-28221: REPLACE not specified
This error is because the account does not have the 'alter user' privilege. I'm okay with this, as I don't want our users having this privilege.
3. I start SQL Developer 3.2, type 'alter user <me> identified by <newpwd>;' I get the same ORA-28221 error as above. That is fine, and as expected.
4. Now in SQL Developer, I type 'password', set a valid password, but I get 'Failed to change password' in the Script Output tab.
I have a database 'after servererror on database' trigger set, and querying the database table it is logging into, I see a record with a date stamp matching my failure with a server_error=28221 (the same as above).
So I'm wondering if I'm doing something wrong here, or if this is a bug in SQL Developer. I don't want standard users having 'alter user' privileges, but I do want to enforce password verification.
I get the same result on three 11.2.0.3 databases (haven't tried any more but suspect same results for others) and one legacy 10.2.0.4 database, and using SQL Developer 3.1 and 3.2.
DBA_PROFILE used:
PROFILE
RESOURCE_NAME
RESOURCE LIMIT
CTRU
COMPOSITE_LIMIT
KERNEL DEFAULT
CTRU
SESSIONS_PER_USER
KERNEL 10
CTRU
CPU_PER_SESSION
KERNEL DEFAULT
CTRU
CPU_PER_CALL
KERNEL DEFAULT
CTRU
LOGICAL_READS_PER_SESSION KERNEL DEFAULT
CTRU
LOGICAL_READS_PER_CALL
KERNEL DEFAULT
CTRU
IDLE_TIME
KERNEL DEFAULT
CTRU
CONNECT_TIME
KERNEL DEFAULT
CTRU
PRIVATE_SGA
KERNEL DEFAULT
CTRU
FAILED_LOGIN_ATTEMPTS
PASSWORD 10
CTRU
PASSWORD_LIFE_TIME
PASSWORD 180
CTRU
PASSWORD_REUSE_TIME
PASSWORD DEFAULT
CTRU
PASSWORD_REUSE_MAX
PASSWORD 5
CTRU
PASSWORD_VERIFY_FUNCTION PASSWORD VERIFY_FUNCTION_11G
CTRU
PASSWORD_LOCK_TIME
PASSWORD .002
CTRU
PASSWORD_GRACE_TIME
PASSWORD 21
16 rows selected.
Verify Function used:
$ cat utlpwdmg.sql
Rem
Rem $Header: utlpwdmg.sql 02-aug-2006.08:18:05 asurpur Exp $
Rem
Rem utlpwdmg.sql
Rem
Rem Copyright (c) 2006, Oracle. All rights reserved.
Rem
Rem NAME
Rem utlpwdmg.sql - script for Default Password Resource Limits
Rem
Rem DESCRIPTION
Rem This is a script for enabling the password management features
Rem by setting the default password resource limits.
Rem
Rem NOTES
Rem This file contains a function for minimum checking of password
Rem complexity. This is more of a sample function that the customer
Rem can use to develop the function for actual complexity checks that the
Rem customer wants to make on the new password.
Rem
Rem MODIFIED (MM/DD/YY)
Rem suren 05/09/13 - customise for NIHI use
Rem asurpur 05/30/06 - fix - 5246666 beef up password complexity check
Rem nireland 08/31/00 - Improve check for username=password. #1390553
Rem nireland 06/28/00 - Fix null old password test. #1341892
Rem asurpur 04/17/97 - Fix for bug479763
Rem asurpur 12/12/96 - Changing the name of password_verify_function
Rem asurpur 05/30/96 - New script for default password management
Rem asurpur 05/30/96 - Created
Rem
-- This script sets the default password resource parameters
-- This script needs to be run to enable the password features.
-- However the default resource parameters can be changed based
-- on the need.
-- A default password complexity function is also provided.
-- This function makes the minimum complexity checks like
-- the minimum length of the password, password not same as the
-- username, etc. The user may enhance this function according to
-- the need.
-- This function must be created in SYS schema.
-- connect sys/<password> as sysdba before running the script
CREATE OR REPLACE FUNCTION verify_function_11G
(username varchar2,
password varchar2,
old_password varchar2)
RETURN boolean IS
n boolean;
m integer;
differ integer;
isdigit boolean;
ischar boolean;
ispunct boolean;
db_name varchar2(40);
digitarray varchar2(20);
punctarray varchar2(25);
chararray varchar2(52);
i_char varchar2(10);
simple_password varchar2(10);
reverse_user varchar2(32);
BEGIN
digitarray:= '0123456789';
chararray:= 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
-- Check for the minimum length of the password
IF length(password) < 8 THEN
raise_application_error(-20001, 'Password length less than 8');
END IF;
-- Check if the password is same as the username or username(1-100)
IF NLS_LOWER(password) = NLS_LOWER(username) THEN
raise_application_error(-20002, 'Password same as or similar to user');
END IF;
FOR i IN 1..100 LOOP
i_char := to_char(i);
if NLS_LOWER(username)|| i_char = NLS_LOWER(password) THEN
raise_application_error(-20005, 'Password same as or similar to user name ');
END IF;
END LOOP;
-- Check if the password contains at least one letter, one digit
-- 1. Check for the digit
isdigit:=FALSE;
m := length(password);
FOR i IN 1..10 LOOP
FOR j IN 1..m LOOP
IF substr(password,j,1) = substr(digitarray,i,1) THEN
isdigit:=TRUE;
GOTO findchar;
END IF;
END LOOP;
END LOOP;
IF isdigit = FALSE THEN
raise_application_error(-20008, 'Password must contain at least one digit, one character');
END IF;
-- 2. Check for the character
<<findchar>>
ischar:=FALSE;
FOR i IN 1..length(chararray) LOOP
FOR j IN 1..m LOOP
IF substr(password,j,1) = substr(chararray,i,1) THEN
ischar:=TRUE;
GOTO endsearch;
END IF;
END LOOP;
END LOOP;
IF ischar = FALSE THEN
raise_application_error(-20009, 'Password must contain at least one digit, and one character');
END IF;
<<endsearch>>
-- Check if the password differs from the previous password by at least
-- 3 letters
IF old_password IS NOT NULL THEN
differ := length(old_password) - length(password);
differ := abs(differ);
IF differ < 3 THEN
IF length(password) < length(old_password) THEN
m := length(password);
ELSE
m := length(old_password);
END IF;
FOR i IN 1..m LOOP
IF substr(password,i,1) != substr(old_password,i,1) THEN
differ := differ + 1;
END IF;
END LOOP;
IF differ < 3 THEN
raise_application_error(-20011, 'Password should differ from the old password by at least 3 characters');
END IF;
END IF;
END IF;
-- Everything is fine; return TRUE ;
RETURN(TRUE);
END;
alter profile ctru limit password_verify_function verify_function_11g;
alter profile default limit password_verify_function verify_function_11g;
alter profile web_and_it limit password_verify_function verify_function_11g;okay,... I just saw another website which shows I should put in the 'replace <oldpwd>' clause in.
This works in SQL Developer: alter user sutemp identified by carport999 replace garage999;
So why does the 'password' command fail? (Developers: it would also be helpful to have the ORA- error displayed as opposed to 'Failed to change password') -
Error ORA-00904 invalid identifier
There are so many different employee rates colums in the employee table .
e.g)
emp_rate_1 column has all different salaries(10,20,30)
emp_rate_2 column has all different salaries(20,30,40)
If I do pick up one rate , it works fine as below
select
SUM(emp_rate_1) as emp_rate_1
from employee_t
result $60
but i have to summarize all different rate amount using loop. before looping method,
I tried as simple like below
declare
V_emp_rate_1_ID number;
begin
V_emp_rate_1_ID :=1;
select
SUM(emp_rate_||trim(V_emp_rate_1_ID)) as emp_rate_1
from employee_t ;
end;
I have an error message;
PL/SQL: ORA-00904: "emp_rate_": invalid identifier
ORA-06550: line 5, column 1:
PL/SQL: SQL Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
how can I put dynamic column into Sum() in the query?
or would you give me your advice to solve the solution.Not clear whether you are trying to get two sums (one for each column) or one sum that totals both columns)
select
SUM(emp_rate_1) as emp_rate_1
from employee_t
result $60But you can do all three with one query
select
SUM(emp_rate_1) as emp_rate_1, sum(emp_rate_2) as emp_rate_2, sum (emp_rate_1 + emp_rate_2) as sum_both
from employee_t -
Sql developer 1.2.1 failed sys user login
Setting up a connection with the sys user in sql developer connections return invalid username/pw.
I have the role set to sysdba.
I can connect as non sys users with sql developer.
I can connect via sqlplus with the sys user and pw.
What would cause me not to be able to connect with the sys user with sql developer?
ThanksThis is the Oracle Designer forum. Not the SQL Developer forum.
Please repost in the proper forum. -
"XMLAGG": invalid identifier??
I have some SQL code that works fine in TOAD.. I run the query (wrapped in a to_clob) and it works, no problem. However I put the same code in a Procedure and I get compile errors:
PLS-00306: wrong number or types of arguments in call to 'XMLAGG'
PL/SQL: ORA-00904: "XMLAGG": invalid identifier
PLS-00364: loop index variable 'C1' use is invalid
I'm stumped, please help!
CREATE OR REPLACE PROCEDURE SEARCHLOCATIONSBYMANAGER ( xml OUT CLOB)
AS
BEGIN
xml := EMPTY_CLOB();
DBMS_LOB.CREATETEMPORARY(xml, true);
for c1 in
SELECT XMLELEMENT ( "node", XMLATTRIBUTES(label as "label"), daXML).getClobVal() myXML
FROM
SELECT name as label,
XMLAGG (XMLELEMENT ( "node",
XMLATTRIBUTES ( name as "mgrname",
location as "location",
location as "label",
locationcode as "locationCode",
city as "city",
stateid as "stateID",
state as "state")) ORDER BY name, state, city, locationcode ) as daXML
FROM
(SELECT Distinct li.state as stateid, li.city,
li.location as locationcode, li.descr as location,
(SELECT state FROM states WHERE abbreviation = li.state) as state,
p.name, p.posnbr, p.emplid
FROM location_info li, pspath p
WHERE Upper(substr(name, instr(name, ',')+1)) Like Upper('a%')
AND Upper(substr(p.name, 1,instr(name, ',')-1)) Like Upper('a%')
AND p.jobcode IN ( '10791', '10793','11678')
AND p.emplid = li.emplid )
GROUP BY name
ORDER BY name
loop
DBMS_LOB.APPEND(xml, c1.myXML);
end loop;
END;
/No access to an installation to check this one but can you try
CREATE OR REPLACE PROCEDURE SEARCHLOCATIONSBYMANAGER ( xml OUT CLOB) AS
myXML CLOB;
CURSOR getXML as
SELECT XMLAGG(XMLELEMENT ( "node", XMLATTRIBUTES(label as "label"), daXML))) myXML
FROM
BEGIN
for c1 in getXML loop
myXML := myXML.getCLobVal();
end loop;
END; -
I have this Oracle table:
CREATE TABLE USERGROUPS(
GROUPID INTEGER NOT NULL,
GROUPNAME VARCHAR2(40 ),
GROUPSTATUS VARCHAR2(30 ),
DATEGROUPADDED DATE,
DATEGROUPLOCKED DATE,
GROUPEXPIREDATE DATE,
DESCRIPTION CLOB
/I tried to run this SQL query:
SELECT c.*
FROM
(SELECT b.*,
rownum rn
FROM
(SELECT a.* FROM USERGROUPS a ORDER BY GROUPID ASC
) b
WHERE rownum <= 5
) c
WHERE rn > 10I get this error message in SQL developer when I run it:
ORA-00904: "GROUPID": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Error at Line: 5 Column: 25
I also tested this SQL query:
SELECT GROUPID FROM USERGROUPS I get this error:
ORA-00904: "GROUPID": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:
Error at Line: 1 Column: 7
Can you help me to fix the problem?Are you sure the create table statement executed successfully (with no error)?
Perhaps you use an older version of the table where the column groupid did not exists.
You can check the columns of your table with:
select * from all_tab_columns
where table_name='USERGROUPS'
and owner='<schema-name>'
order by column_id;Another reason could be, that exist two tables with the same name.
You could check that with
select *
from all_tables
where table_name ='USERGROUPS';hm
Maybe you are looking for
-
ITunes and Windows will not recognize iPod Nano 3rd Generation
I've been on this ALL day. Neither Windows or iTunes will recognize iPod. I have uninstalled and re-installed iTunes.... I don't know how many times. iPod is new. Was ok to sync music and photos last week.. but now nothing. Any ideas anybody... this
-
hi, I have just spoke to BT as my new bill has no discount for paperfree billing and Bt customer service have just informed me that online paperfree billing discount is no longer available,Was anyone else aware of this? Solved! Go to Solution.
-
Performance of SQL-Statements in Reports
Hi I have a very complex SQL-Statement in a Region-Report with Items in the where-clause: select .... where idt_1 like :P1_IDT and idt_2 like :P1_IDT2 ...it generates 100 Million records in the Temp Tablespace and produce either a timeout or an e
-
Matrix - SerializeAsXML method
Hi Pros, I used the SerializeAsXML method to parse the matrix to an XML. I also used the xsd.exe create a Matrix Class and deserialize the XML into a Matrix object (as Matrix Class). From there I can manipulate the data using the Matrix object (
-
I have just finished to write my web-application, I developed everything on Netbeans using Tomcat 5.0. As you should know I have a .war archive with my web application inside. I was wondering if I'd change the application-server (I mean the web engin