Invalid identifier.. while using select statemetn
Hello guys,
i have installed oracle 11g data guard with a primary and 2 standby databases (physical and logical)
when i issue these statements against the standby database i get an error as shown below:
SELECT DBMS_LOGSTDBY.MAP_PRIMARY_SCN (PRIMARY_SCN=>FLASHBACK_SCN) as TARGET_SCN FROM DUAL;
SELECT DBMS_LOGSTDBY.MAP_PRIMARY_SCN (PRIMARY_SCN => APPLIED_SCN) as TARGET_SCN from DUAL;
SELECT DBMS_LOGSTDBY.MAP_PRIMARY_SCN (PRIMARY_SCN=>FLASHBACK_SCN) as TARGET_SCN FROM DUAL
ERROR at line 1:
ORA-00904: "FLASHBACK_SCN": invalid identifier
SQL> SELECT DBMS_LOGSTDBY.MAP_PRIMARY_SCN (PRIMARY_SCN => APPLIED_SCN) AS TARGET_SCN FROM DUAL;
SELECT DBMS_LOGSTDBY.MAP_PRIMARY_SCN (PRIMARY_SCN => APPLIED_SCN) AS TARGET_SCN FROM DUAL
ERROR at line 1:
ORA-00904: "APPLIED_SCN": invalid identifier
help me please guys..
sorry guys should have substituted APPLIED_SCN, FLASHBACK_SCN with values i got the result...
these are the queries i issued.
SELECT DBMS_LOGSTDBY.MAP_PRIMARY_SCN (PRIMARY_SCN=>8400000) as TARGET_SCN FROM DUAL;
;
Similar Messages
-
Error while using selection option variable in the selection screen
Hi All,
I am facing an issue while using selection option variable in the selection screen for one of my reports.
Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
But when the report is executed we get the following error:
"System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
(ETVRGNFR is technical name of the info object Region From)
Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
Please give suggestions / alternate solutions to crack this issue.
Thanks in advance
Regards
Priyanka.Hi,
Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
This is just my view, i am not sure if u are already using this or Char. Variable.
Cheers.
Ranga. -
I am getting "Invalid Identifier" while running the below query
Iam getting the error "Invalid Identifier, c_rank" while running the below query. Please help.
select a.*, b.pog_description pog_description, b.start_date,
row_number() over(partition by b.pog_description order by b.start_date) c_rank
from temp_codi_dept_35 a, pog_master_msi b, pog_skus_msi c
where a.sku = c.pog_sku
and b.pog_id = c.pog_id
and b.pog_dept = c.pog_dept
and b.pog_number = c.pog_number
and b.pog_level = c.pog_level
and a.sku = 10263477
and c_rank = 1;>
Iam getting the error "Invalid Identifier, c_rank" while running the below query. Please help.
select a.*, b.pog_description pog_description, b.start_date,
row_number() over(partition by b.pog_description order by b.start_date) c_rank
from temp_codi_dept_35 a, pog_master_msi b, pog_skus_msi c
where a.sku = c.pog_sku
and b.pog_id = c.pog_id
and b.pog_dept = c.pog_dept
and b.pog_number = c.pog_number
and b.pog_level = c.pog_level
and a.sku = 10263477
and c_rank = 1;
>
You can't use 'c_rank' in the where clause because it doesn't exist; you are computing it in the SELECT clause.
Remove the last condition and wrap your query in another one to select by 'c_rank'. -
I trying to select 31 column in my table using select query but an exception is thrown
java.sql.SQLException: ORA-00904: "US"."BRANCH_ID": invalid identifier
i am able to select the 30 column but not the 31st or 32nd colum.
help needed, i have tried using Statment and prepared Statement both but its not working.This is an Oracle Error, not JDBC. I have a feeling that your SQL statement is invalid. Check this first.
-
Search help is not coming while using select-options?
Hi All,
I am using select options in my selection screen, i used wdr_select_options, also i coded some parameter values also
( non select-options ). For that field i am not getting search help. If i create as normal i am getting? Suggestions pelase?
Thanks,
Venkat.HI
what kind of search help is associated with the field.
ADD_SELECTION_FIELD method has some specific parametrs for value_help
give the input there and try again.
these parameters are
I_VALUE_HELP_TYPE
I_VALUE_HELP_ID
I_VALUE_HELP_MODE
I_VALUE_HELP_STRUCTURE
thanks
sarbjeet dingh -
ORA-01722: invalid number while using TO_CHAR function.
Hi All,
I was using this query from around past 1 year and everything was working fine.
select to_char ( '2012/12/23','YYYY/MM/DD') from dual;
how ever from monday onwards , this is returning me with the following error.
ORA-01722: invalid number
The NLS_DATE_FORMAT is DD-MON-RR in my oracle 11g version.
Please help me regarding this.Your date is in literal & your intended format so no need to format it again.
select to_char ( '2012/12/23','YYYY/MM/DD') from dual;
same as
select '2012/12/23' from dual;I don't know your need so same code to work!!!
select to_char(to_date('2012/12/23','YYYY/MM/DD'),'DD/MM/YYYY') from dualsunnymoon wrote:
where vale for ? is coming as '2011/12/23' from java.
the whole application has to be changed and retested.
>
It it comes as a text convert it to date TO_DATE('2011/12/23','YYYY/MM/DD') to use in comparison operators like =, != , > , < etc. Comparison operators used taking date as literal will give you wrong result.
Better to do it right even it takes huge effort.
Edited by: Lokanath Giri on ३ जनवरी, २०१२ १२:०६ अपराह्न -
Invalid server: while using wlan after upgraded to...
After upgraded to the new firmware (520007). While connect using wlan my phone shows that Invalid server and some times not replying. I goggled my problem and found that most are facing the same problem; is there any solution for it? Advance thaks.
Try deleting your wlan settings and key in a new setting after rebooting the phone. It may help...
blitZkid
Nokia C7: Running on Nokia Belle
"If I'm helpful in anyway, a click of appreciation on the star would be nice" -
Problem while using SELECT Operation in DB Adapter
Hi,
I am trying to use the DB Adapter with SELECT operation on one of the tables in our database. The query looks some thing like,
SELECT ORDER_HEADER_ID, SHIPPING_GRP_ID, ATG_SHIPPING_GROUP_ID, SO_HEADER_ID, ORDER_NUMBER, SHIP_ITEM_ID FROM <TABLE_NAME> WHERE (<CNAME> = #orderID)
I have selected order_header_id as the primary key during the creation of my process. And the rest are selected as part of the query.
The problem that I having is that I am getting the same data for all the rows, the output is as follows
<root>
<XxacOrderStatusDetail>
<orderHeaderId>265</orderHeaderId>
<shippingGrpId>262</shippingGrpId>
<ShippingGroupId>sg832798</ShippingGroupId>
<soHeaderId>4016992</soHeaderId>
<orderNumber>82555268</orderNumber>
<ShipItemId>r421379</ShipItemId>
</XxacOrderStatusDetail>
<XxacOrderStatusDetail>
<orderHeaderId>265</orderHeaderId>
<shippingGrpId>262</shippingGrpId>
<ShippingGroupId>sg832798</ShippingGroupId>
<soHeaderId>4016992</soHeaderId>
<orderNumber>82555268</orderNumber>
<ShipItemId>r421379</ShipItemId>
</XxacOrderStatusDetail>
<XxacOrderStatusDetail>
<orderHeaderId>265</orderHeaderId>
<shippingGrpId>262</shippingGrpId>
<ShippingGroupId>sg832798</ShippingGroupId>
<soHeaderId>4016992</soHeaderId>
<orderNumber>82555268</orderNumber>
<ShipItemId>r421379</ShipItemId>
</XxacOrderStatusDetail>
</root>
For the output above the "ShipItemId" should return different values but it is returning the same for all the results that are returned. As in the first entry should have r421379 then r421380 and then r421381 for the last one.
When I try including the "ShipItemId" as a primary key I am able to get the correct value but my process will fault in case if there is a null value for the column.
I wanted to know if there is a way that I can resolve this problem?
JDeveloper Version: Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1
SOA Version is also 11.1.1.6.0
Database Driver(Selected during data source creation on WLS) : Oracle's Driver(Thin XA) for Instance connection
Can anyone please help me with this?
Thanks.Hi,
You are in a catch 22 situation, it won't work without a proper primary key defined, and a primary key is not suppose to contain nulls...
This type of case is one of the reasons I always tend to prefer to have surrogate keys on the database... If you had a surrogate key defined your problem just wouldn't exist.
Some references bellow...
http://pic.dhe.ibm.com/infocenter/cbi/v10r1m1/index.jsp?topic=%2Fcom.ibm.swg.ba.cognos.ug_ds.10.1.1.doc%2Fc_surrogatekeys.html
http://en.wikipedia.org/wiki/Surrogate_key
Cheers,
Vlad -
Problem while using select single
Hii,
I am using a select single command, My code is
Select single * from zbe_gpfd_comment into wa_gpfd_comment where program_name = program
and box_type = box_type
and box_name = box_name.
even though the required data is in the database still nothing is retrived in wa_gpfd_comment.No problem with datatype, I have checked them all..but still I am not able to get where the problem is?
PS : program_name,box_type,box_name are primary key of the table zbe_gpfd_comment.Hi Priya,
Did u checked what values are u passing in where condition for program , box_type , box_name .
are there any values in the above the fields ,
or just try to check once by hardcoding the values of the above 3 like
Select single * from zbe_gpfd_comment into wa_gpfd_comment where program_name = 'ZABC'
and box_type = 'CUBE'
and box_name = 'NOKIA'.
give the 3 values which are existing in your zbe_gpfd_comment table .
if it works then nothing wrong with select query ,
and check the values in debugging whether the values are coming in : program , box_type , box_name .
I guess in ur query all the values are null or space , so it is not retriving values.
check subrc also for the query.
Regards,
Aby -
I am using the <select>[ tag to display a pull down in my jsp.. I have a menu bar which has another pull down...When i try to select something from the menu if there is a select pull down below it then the select pull down overlaps the menu pull down.How can i remove this problem..
move the select field.
I think there's a trick to doing drop-down menus with an iframe in a div as the drop-down part that would cover that up. -
DBMS_MONITOR - invalid identifier when used in the body of a package
NLSRTL 11.2.0.3.0 Production
Oracle Database 11g Enterprise Edition 11.2.0.3.0 64bit Production
PL/SQL 11.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: 11.2.0.3.0 Production
I have a database user U1 and the user has been granted the role DBA
connect u1/<password>@db
SELECT * FROM user_role_privs;
The output is:
U1 CONNECT NO YES NO
U1 DBA NO YES NO
U1 EXECUTE_CATALOG_ROLE NO YES NO
U1 EXEC_SYS_PACKAGES_ROLE NO YES NOIf I execute with the same user U1 call to the package DBMS_MONITOR it works fine:
begin
DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => TRUE, binds => TRUE);
end;
/If I try to make a call to the package DBMS_MONITOR within the body of a function/procedure/package owned by the same user U1, it fails to compile with the error:
create or replace procedure trace_proc
is
begin
DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => FALSE, binds => TRUE);
end trace_proc;
The compilation fails with error: [Error] PLS-00201 (4: 3): PLS-00201: identifier 'DBMS_MONITOR' must be declaredI tried the same by prefixing the package with "SYS" but it still fails to compile.
Can you please give some clues why is it happening?
Thank youVerdi wrote:
NLSRTL 11.2.0.3.0 Production
Oracle Database 11g Enterprise Edition 11.2.0.3.0 64bit Production
PL/SQL 11.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: 11.2.0.3.0 Production
I have a database user U1 and the user has been granted the role DBA
connect u1/<password>@db
SELECT * FROM user_role_privs;
The output is:
U1 CONNECT NO YES NO
U1 DBA NO YES NO
U1 EXECUTE_CATALOG_ROLE NO YES NO
U1 EXEC_SYS_PACKAGES_ROLE NO YES NOIf I execute with the same user U1 call to the package DBMS_MONITOR it works fine:
begin
DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => TRUE, binds => TRUE);
end;
/If I try to make a call to the package DBMS_MONITOR within the body of a function/procedure/package owned by the same user U1, it fails to compile with the error:
create or replace procedure trace_proc
is
begin
DBMS_MONITOR.SESSION_TRACE_ENABLE(waits => FALSE, binds => TRUE);
end trace_proc;
The compilation fails with error: [Error] PLS-00201 (4: 3): PLS-00201: identifier 'DBMS_MONITOR' must be declaredI tried the same by prefixing the package with "SYS" but it still fails to compile.
Can you please give some clues why is it happening?
Thank youBecause access must be granted to objects explicitly, and not via a role, if those objects are to be accessed in a package or procedure. -
Error while using select in decode
i am trying following which is giving me error , can anybody suggest.
select 1
from emp e
where e.qty > decode(e.code,'70',(select x.qty
from QUANT q, EMP e
where q.qty=e.qty)
,'40',(select 100 from dual));
error Encountered the symbol "x" when expecting one of the following...once you find out what table alias that you will replace to your x.qty it's either q or e. you also migth want to consider replacing the subquery for '(select 100 from dual)' to simply 100.
-
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 -
Java.sql.SQLException: Invalid column index Query: while using ROWNUM
hi ,
i am getting the invalid column index query error while executing following query .i m able to run it properly without using rownum but when i append rownum i m getting error.i m using apache queryrunner for execution of query.
java.sql.SQLException: Invalid column index Query: select * from (
SELECT
TO_CHAR(A.REQ_FOR_RATING_ID) RFQID,
TO_CHAR(F.COV_PLAN_ID) COVPLANID,
B.FIRM_NAME FIRMNAME,
B.PRIMARY_ZIP_CD ZIP,
A.PRODUCR_CD PRODUCERCD,
A.PRODUCR_NAME PRODUCER,
H.COV_NAME COVDESP,
C.SALE_OFFC_CD SALEOFFCCD,
C.USR_OFFC_NAME USROFFC,
C.USR_NAME USR,
C.USR_REP_CD USRREPCD,
to_char((SELECT TO_CHAR(COUNT(EMP_NBR)) COUNT FROM ROSTR_DATA WHERE ROSTR_ID = F.ROSTR_ID)) AS count,
TO_CHAR(B.SIC_CD) SICCD,
F.INDSTRY_TYPE_IND INDTYPEIND,
TO_CHAR(F.MANL_SIC_FCTR_NBR) MANSICFACTOR,
TO_CHAR(F.UW_OVERD_SIC_FCTR_NBR) UWOVERDSICFACTOR,
TO_CHAR(G.AREA_FCTR_NBR) STRAREAFACTOR,
G.COV_ID COVID,
F.PLAN_APPRVL_STATUS_CD PLANAPPRVLCD,
F.PLAN_PROGRS_STATUS_CD PLANPROGRESSSTATUSCD ,
F.PLAN_SALE_ASSMNT_CD PLANSALEASSMTCD,
F.CREATD_DT CREATEDDT,
NVL(to_char(F.PLAN_RELSED_DT),' ') PLANRELSEDDT,
TO_CHAR(F.PLAN_RELSED_BY_ID) PLANRELSEDBYID,
TO_CHAR(F.PROPOSD_EFF_DT) PROPOSDEFFECTIVEDT,
TO_CHAR(A.GRACE_PERIOD_NBR) GRACEPERIOD,
A.RNWL_15_MONTH_IND FIFTEENMONTHRNWLIND ,
I.CO_DESC_TXT COMPANYNAME ,
NVL(to_char(F.PLAN_APPRVL_DT),' ') approvedDt,
(Select U.USR_NAME from USR_DETL U WHERE U.USR_ID = F.PLAN_RELSED_BY_ID) as planRelsedByName,
(Select U.USR_NAME from USR_DETL U WHERE U.USR_ID = F.PLAN_APPRVR_ID) as approvedByName,
'' createdByName,
ROWNUM rnum
FROM
REQ_FOR_RATING A,
FIRM B,
USR_DETL C,
SALE_OFFICE D,
QUOTE_SCENRIO E,
QUOTE_COV G,
COV_PLAN F,
COV_LKUP H,
CO_LKUP I
WHERE
A.FIRM_ID = B.FIRM_ID AND
A.SALE_REP_ID = C.USR_ID AND
C.SALE_OFFC_CD = D.SALE_OFFC_CD AND
A.REQ_FOR_RATING_ID=E.REQ_FOR_RATING_ID AND
E.QUOTE_SCENRIO_ID=G.QUOTE_SCENRIO_ID AND
G.QUOTE_COV_ID=F.QUOTE_COV_ID AND
G.COV_ID=H.COV_ID AND
I.CO_CD = F.CO_CD AND
TO_CHAR(F.CREATD_DT,'YYYYMMDD') > TO_CHAR(TO_DATE('07/16/2007', 'MM/DD/YYYY HH24:MI:SS'),'YYYYMMDD') AND
TO_CHAR(F.CREATD_DT,'YYYYMMDD') < TO_CHAR(TO_DATE('10/16/2007', 'MM/DD/YYYY HH24:MI:SS'),'YYYYMMDD')
and rownum <=?) where rnum >=? Parameters: [07/15/2007 00:00:00, 10/15/2007 23:59:59, 1117, 1]That's a SQL fault, not a JDBC/Java fault.
-
Invalide identifier error, when use subselect
Hi all,
I got "ORA-0094: sp.spriden_pidm invalid identifier "error when runing the following query.
select (select t.name from
(select rownum row_number, s.spriden_last_name name
from spriden s
where s.spriden_pidm = sp.spriden_pidm) t
where t.row_number = 1) last_name
from spriden sp
where sp.spriden_pidm = 70105;
Any one has an idea why this is happening?
ThanksUnless I am missing something here, this looks like a straight pivot query to me.
SQL> with my_test AS (SELECT 1 id, 'June' contact_name FROM dual UNION ALL
2 SELECT 1, 'Email' FROM dual UNION ALL
3 SELECT 1, 'Mark' FROM dual UNION ALL
4 SELECT 2, 'Tom' FROM dual),
5 my_test_2 AS (SELECT 1 id, trunc(sysdate) act_date FROM dual UNION ALL
6 SELECT 1, trunc(sysdate-1) FROM dual UNION ALL
7 SELECT 2, trunc(sysdate-1) FROM dual)
8 SELECT id, act_date,
9 MAX(DECODE(rn, 1, contact_name)) nc1,
10 MAX(DECODE(rn, 2, contact_name)) nc2,
11 MAX(DECODE(rn, 3, contact_name)) nc3
12 FROM (SELECT m.id, contact_name, act_date,
13 ROW_NUMBER() OVER (PARTITION BY m.id
14 ORDER BY contact_name) rn
15 FROM my_test m, my_test_2 m2
16 WHERE m.id = m2.id and
17 m2.act_date = trunc(sysdate-1))
18 GROUP BY id, act_date;
ID ACT_DATE NC1 NC2 NC3
1 11-Sep-2008 Email June Mark
2 11-Sep-2008 TomAssuming that you have a known maximum number of possible values in my_test for a given id this should work. You may need to use something other than the contact_name in the order by in the row_number function if you require the values in specific columns, but given your sample data, I have no idea what that might be.
John
Maybe you are looking for
-
Need a report for actual cost by WBS element by month
Hello all, I am looking for a report that will give me the total costs charged to a series of of WBS elements by month. Does anybody know if such a report can be run and what the transaction number of this report would be? Thanks
-
List View (filter) based on multiple fields
Hello. I've created an infopath form where a Project Manager is able to name 12 project members in various departments using a people picker field for each project member field. Is there a way to filter the list so that it shows only the projects the
-
Expand not working ...
Hi all. I'm developing a simple scenario where I read employee data and later if expanding, I get the absences it has. For this purpose, I've implemented the GET_ENTITY_SET for both entities and made an association between them. I tested them separat
-
I am trying to obtain the PXI resource name "PXI1Slot2" programatically. How to obtain object handle whch viGetAttribute() requires? viOpenDefaultRM (&rsrcHandle); returns ViSession. Is there a attribute to obtain the Slot number? int CVICALLBACK Fin
-
KERN-EXEC ERRON IN MY NOKIA 9500
I JUST RECENTLY BOUGHT NEW NOKIA 9500. I LOVE THIS MOBILE TO USE. BUT I GOT VEY BIG PROBLEMS IN MY COMUNICATOR. I AM NOT ABLE TO CALL ANY ONE FROM MY CONTECT LIST FROM OUT SIDE OF THE PHONE. AND ALSO NOT ABLE TO CHECK MISSED CALL, RECENT CALL, AND DI