Select AR_LOOKUPS retrieved no record while in pl/sql plus record exist
I ran "select * from ar_lookups" no record retrieved while when I run the same script in TOAD or pl/sql plus there are records retrieve.
Sorry for the very late response, but the problem is probably related to AR_LOOKUPS being an eBusiness Suite language specific view, which means the conditions in the view include:
LV.LANGUAGE = userenv('LANG')SQL Developer defaults the NLS settings based on the Regional Settings (assuming you are on Windows) and not the Oracle registry entries (what is typically used by other tools), although you can change this by explicitly setting your NLS preferences via Tools > Preferences > Database > NLS Parameters.
If your only installed transaction for the eBusiness Suite is US (for example), but your SQL Developer NLS settings are such that userenv('LANG') doesn't return US, you will not get any records returned by the AR_LOOKUPS view (or any of the other many language specific views). To get SQL Developer to match the NLS behaviour of other tools, set your NLS parameters to match what you have set in the Oracle registry entries.
theFurryOne
Similar Messages
-
Getting error ORA-12705, while connecting through Sql*Plus?
Hi TOM,
While connecting ORACLE Database through Sql*Plus / via through Application. We getting error called "Error while trying to retrieve text for error ORA-12705".
How to re-solve this one?
Thanks & Regards,
Senthil K Kumar.Maran,
check the registry NLS_LANG in the registry rename it as suggested by burleson and add a new entryCurrently, it was more suggested by Maxim ;-)
Nicolas. -
Errors while submitting the SQL * Plus Report
I am getting th efollowing Error while submitting the Concurrent request to run a report.
FND_CANNOT FIND FILE
concurrent manager encountered an error while running sql * plus for yours concurrent request
Please respond ASAPHi,
Duplicate post see:
Please advise on the Error immediately
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
BUG: ORA-00600 in SQL Developer while good in SQL*Plus
Just run the following PL/SQL script:
SET SERVEROUTPUT ON
<< outer_block >>
DECLARE
v_test NUMBER := 123;
BEGIN
DBMS_OUTPUT.PUT_LINE ('Outer Block, v_test: '||v_test);
<< inner_block >>
DECLARE
v_test NUMBER := 456;
BEGIN
DBMS_OUTPUT.PUT_LINE ('Inner Block, v_test: '||v_test);
DBMS_OUTPUT.PUT_LINE ('Inner Block, outer_block.v_test: '|| outer_block.v_test);
END inner_block;
END outer_block;
In SQL*Plus, you get the correct result, while in SQL Developer 1.5.4, you get:
Error report:
ORA-00600: internal error code, arguments: [12259], [], [], [], [], [], [], []
00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
*Cause: This is the generic internal error number for Oracle program
exceptions. This indicates that a process has encountered an
exceptional condition.
*Action: Report as a bug - the first argument is the internal error numberMeanwhile a workaround is to enclose the whole lot in a BEGIN END;
-
Could not show multiple records while could show only one record
Hi, all
I have an oracle 10g db running on a Linux E3 server.
I have two tables:
CREATE TABLE "IMMUNODATA"."DEMOGRAPHICS" (
"SUBJECTID" INTEGER NOT NULL,
"WORKID" INTEGER,
"OMRFHISTORYNUMBER" INTEGER,
"OTHERID" INTEGER,
"BARCODE" INTEGER,
"GENDER" VARCHAR2(1),
"DOB" DATE,
"RACEAI" INTEGER,
"RACECAUCASIAN" INTEGER,
"RACEAA" INTEGER,
"RACEASIAN" INTEGER,
"RACEPAC" INTEGER,
"RACEHIS" INTEGER,
"RACEOTHER" VARCHAR2(50),
"SSN" VARCHAR2(11),
PRIMARY KEY("SUBJECTID") VALIDATE
CREATE TABLE "IMMUNODATA"."MEDICATION" (
"ID" INTEGER NOT NULL ,
"THEDATE" DATE ,
"SUBJECTID" INTEGER NOT NULL,
"MED_PAGENOTCOMPLETED" VARCHAR2(500) ,
"MEDICATION_NAME" VARCHAR2(100),
"MEDICATION_CLASSIFICATION" VARCHAR2(100),
"MEDICATION_DOSENUM" VARCHAR2(50),
"MEDICATION_DOSEMEASURE" VARCHAR2(100),
"MEDICATION_ROUTE" VARCHAR2(100),
"MEDICATION_FREQ" VARCHAR2(100),
"MEDICATION_BEGIN" DATE,
"MEDICATION_END" DATE,
"BARCODE" INTEGER,
"DATASOURCE" VARCHAR2(50),
"NOCHANGE" INTEGER,
PRIMARY KEY("ID") VALIDATE,
FOREIGN KEY("SUBJECTID") REFERENCES "IMMUNODATA"."DEMOGRAPHICS" ("SUBJECTID") VALIDATE
I want to show an output to combine all medication records of one person into one, and I created a function.
CREATE OR REPLACE FUNCTION COMMEDICATION(p_subjectid IN immunodata.medication.subjectid%TYPE ) RETURN VARCHAR2 IS
v_medication VARCHAR2(1000);
BEGIN
FOR c IN (SELECT THEDATE, MED_PAGENOTCOMPLETED, MEDICATION_NAME, MEDICATION_CLASSIFICATION, MEDICATION_DOSENUM, MEDICATION_DOSEMEASURE,MEDICATION_ROUTE,MEDICATION_FREQ,MEDICATION_BEGIN,MEDICATION_END,DATASOURCE,NOCHANGE FROM immunodata.medication WHERE subjectid = p_subjectid)
LOOP
IF v_medication IS NULL THEN
v_medication := c.THEDATE||' '||c.MED_PAGENOTCOMPLETED||' '||c.MEDICATION_NAME||' '||c.MEDICATION_CLASSIFICATION||' '||c.MEDICATION_DOSENUM||' '||c.MEDICATION_DOSEMEASURE||' '||c.MEDICATION_ROUTE||' '||c.MEDICATION_FREQ||' '||c.MEDICATION_BEGIN||' '||c.MEDICATION_END||' '||c.DATASOURCE||' '||c.NOCHANGE;
ELSE
v_medication := v_medication||','||c.THEDATE||' '||c.MED_PAGENOTCOMPLETED||' '||c.MEDICATION_NAME||' '||c.MEDICATION_CLASSIFICATION||' '||c.MEDICATION_DOSENUM||' '||c.MEDICATION_DOSEMEASURE||' '||c.MEDICATION_ROUTE||' '||c.MEDICATION_FREQ||' '||c.MEDICATION_BEGIN||' '||c.MEDICATION_END||' '||c.DATASOURCE||' '||c.NOCHANGE;
END IF;
END LOOP;
RETURN v_medication;
END;
and I performed this selection statement:
SQL> select subjectid, barcode, COMmedication(subjectid) from immunodata.demographics where barcode=500135;
SUBJECTID BARCODE
COMMEDICATION(SUBJECTID)
33 500135
15-SEP-00 Cyclophosphamide Immunosuppresant .7 MG IV MONTLY FORM1 ,15-SEP-00 Hydroxychloroquine (Plaquenil) Immunosuppresant 400 MG DAILY FORM1
It is exactly what I need, so I want to show all records in the tables.
SQL> select subjectid, barcode, COMmedication(subjectid) from immunodata.demographics;
ERROR:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at "SYS.COMMEDICATION", line 9
no rows selected
It seems that one record could be shown, but multiple could not.
Is there anything wrong with my code or other things?
Thanks!
QianIt seems that one record could be shown, but multiple could not.
Is there anything wrong with my code or other things?
It means that there is at least one subjectid in your table for which the value of v_medication in the function exceeds 1000 characters.
You may want to increase the size of v_medication to 4000, which would be the upper limit for the function's return value.
pratz -
ORA-6502 Value or Numeric Error while connecting to Sql-Plus - URGENT
Hello,
I am getting ORA-6502 error, "Error accessing Package Dbms_application_info" everytime I connect to Sqlplus. I tried running catproc and catalog but still getting the same message. I dont get this message when I connect to SVRMGR. I am not able to perform export also due to this error. Can anybody help me please??
Thanks,
R. Magesh.Hello,
I am getting ORA-6502 error, "Error accessing Package Dbms_application_info" everytime I connect to Sqlplus. I tried running catproc and catalog but still getting the same message. I dont get this message when I connect to SVRMGR. I am not able to perform export also due to this error. Can anybody help me please??
Thanks,
R. Magesh. Did you run catproc and catalog as SYS while the database was opened in RESTRICT mode? If not, then do that. Also, do SELECT * FROM dba_objects WHERE status='INVALID'; to see if there are other invalid objects that need to be compiled. -
ShutDown Issue while log in Sql plus
when i log in Sql plus with username and password. it says Oracle Intialization or shutdown in progress.let me know please .
when i go to Application Development -> sql plus -> and when i type username sys as sysdba .and type require password.window close automatically . but when i type username and press ok .button it ask for password .and it working fine .let me know please . any help would be highly appreciated.
Edited by: user1095036 on Sep 2, 2012 2:33 PM -
Endeca returns only 15 records, while TotalNumAggrERecs = 20
Hi,
If I execute an Endeca query with a particular N-value in C#, then the Navigation query of the ENEQueryResults contains TotalNumAggrERecs = 20 and AggrERecs.Count = 15. How is it possible that Endeca returns a list of only 15 aggregated records, while the number of aggregated records is 20?
According to the Endeca Basic Development Guide, you should use
• the Navigation.TotalNumAggrERecs to get the number of aggregated records that matched the navigation query
• the Navigation.AggrERecs to retrieve a list of aggregated records returned by the navigation query
I would therefore assume that the number of AggrERecs would match the TotalNumAggrERecs.
Extra info:
• other queries (the same code, but another N-value) return results with matching result.Navigation.TotalNumAggrERecs and result.Navigation.AggrERecs.Count. Also, the printscreen above shows an exception in SyncRoot. I thought this exception causes to only return 15 records instead of 20, but this exception also occurs on queries where the both Navigation.TotalNumAggrERecs and Navigation.AggrERecs.Count are the same.
• the same query in the "6.1 Oracle Endeca - JSP Reference Implementation" tool returns 20 aggregated records.
• So far, my conclusion is that there are 20 records, but Endeca returns only the first 15. I have however no clue how to solve this. Suggestions on how to investigate this issue are very welcome!
Regards, LeonardThis question is on the wrong forum - this forum is for the Endeca Information Discovery (EID) product - you are working with the Endeca Commerce product APIs. See Technical Questions .
-
I am running a USB board (in) and have a sound system into my head phone jack (out).
I would like to be able to record while listening to a previously recorded track.
ex. I have a drum track down and I would like to listen to it while recording guitar, direct into the USB board.I'm assuming you mean "sixty-cycle" hum. (60Hz house current in U.S.) Could be a ground loop, bad cable, impendance mismatch, "noisy" power source, too close to a high voltage transformer, etc. After the fact, if your recording level is sufficiently stronger than the hum, you could filter out the hum with a noise gate. If you have Creative WaveStudio (it's part of the package with newer sound cards), it has this function. SoundForge or other commercial applications also have this function.
-
How to create a condition based on a select that retrieve dynamically a LOV
Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
So, the condition have to be:
inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
Anybody has inplemented something similar ??
Thanks in advance
AlexHi alex,
SELECT incidents.INVENTORY_ITEM_ID,
pcodes.PROBLEM_NAME
FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
WHERE incidents.category_id IN (SELECT category_id
FROM mtl_categories_kfv
WHERE concatenated_segments = 'IPTV')
AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
But again your trying to select in the second query where you want "General_faults_iptv"
SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
SELECT incidents.INVENTORY_ITEM_ID,
pcodes.PROBLEM_NAME
FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
WHERE incidents.category_id IN (SELECT category_id
FROM mtl_categories_kfv
WHERE concatenated_segments = 'IPTV')
AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
FROM apps.mtl_system_items_kfv
WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
Regards,
Kranthi. -
Filtering XML records while bursting - processing only a subset of the data
Hi
I'm attempting to filter the records in my XML data while bursting, so that depending on the value of a data element, the entire record is either skipped or included in the burst output.
I only want a subset of the XML output to be included in the burst output.
I've tried applying a filter at the select stage -
<xapi:request select="/AR_INVOICE/LIST_EMAIL_HEAD/EMAIL_HEAD{EMAIL_IND!=''}">
This removes all the records where 'EMAIL_IND' is not null - i.e. there is an email address to send to,
but instead of giving me multiple emails, one for each /AR_INVOICE/LIST_EMAIL_HEAD/EMAIL_HEAD,
I get just one mail address that contains all of the data for the records that have email addresses.
I also tried putting a filter on the template
<xapi:template type="rtf" locale="" location="xdo://AR.XXARINVEMAILDUMMY.en.00/?getSource=true" translation="" filter="{EMAIL_IND!=''}" />
i.e. having only one template and filtering as shown, but this has no effect.
Note: I had to change the square brackets - '[' to curly brackets '{' to get the examples to show.
Any ideas?
Thanks in advance.
MikeHi
I worked out a way to conditionally use ony a number of the data records in the bursting process - discarding the others.
In EBS, I generate a set of data in a a data-definition template that contains entries for some people who require email delivery, and some who require printed output.
In the concurrent programme, I specify an output rtf template that has a filter in it to print only the records for those who don't need emails.
(don't you just love the way that the designers call both the data definition and the output definition - TEPLATES - not confusing at all.....)
This step generates a sinlge sorted pdf file that is printed)
Then came the tricky part to send emails only to those who need them- using the bursting engine - to the other set of people - but to "cleanly" dispose of the records for the people who do not want emails.
What is not clear in any of the documentation at all is that the XMLPublisher bursting engine MUST handle ALL the records that it receives in the XML input.
If you specify a filter on the output template in the bursting control file, that excludes some records (those not needing the email) the bursting engine doesn't know what do with the remaining records.
Enter stage left - multiple delivery methods.
I simply defined another delivery method sample template with a filter including only those records for people who do NOT need emails - type filesystem - and routed the output to the /tmp directory - the trash.
The lesson(s) to be learnt
1) The bursting engine needs to have instructions to handle ALL the XML data that is fed to it.
2) You can define as many output documents and delivery methods as you like - putting filters on each delivery method as you like - BUT ALL XML RECORDS MUST be provided for.
3) XML records that are not required in one output / bursting stream can be handled in another - and trashed in the /tmp - or other - area.
The full bursting control file is shown below
1) First define the two delivery methods
2) Then define the two "documents" - using filters - using the two delivery methods.
Hope this helps others wanting to do similary things
Mike
<?xml version="1.0" encoding="UTF-8"?>
<xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
<xapi:request select="/AR_INVOICE/LIST_EMAIL_HEAD/EMAIL_HEAD">
----- Define the two delivery methods - first the "email"---------
<xapi:delivery>
<xapi:email server="10.1.1.2" port="25"
from="${EM_DOC_EMAIL_ADDRESS}" reply-to ="${EM_COLLECTOR_EMAIL_ADDRESS}">
<xapi:message id="email" to="[email protected]"
attachment="true" subject="${EM_OPERATING_UNIT} invoice for ${EM_CUSTOMER_NAME}">
Please review the attached invoice - terms are ${EM_TERMS}
This will be sent to collector email ${EM_COLLECTOR_EMAIL_ADDRESS} and customer email ${EM_DOC_EMAIL_ADDRESS}
</xapi:message>
</xapi:email>
------ Second - the "null" - type filesystem ----------------
<xapi:filesystem id="null" output="/tmp/xmlp_null_${EM_CUSTOMER_NAME}" />
</xapi:delivery>
------Then define the first document using the"email" delivery -------------
<xapi:document output-type="pdf" delivery="email">
<xapi:template type="rtf" locale=""
location="xdo://AR.XXARINVEMAILDUMMY.en.00/?getSource=true" translation="" filter=".//EMAIL_HEAD[EM_DOC_EMAIL_ADDRESS!='NO_EMAIL']">
</xapi:template>
</xapi:document>
------ Then define the other document using the "null" delivery --------------
<xapi:document output-type="pdf" delivery="null">
<xapi:template type="rtf" locale=""
location="xdo://AR.XXARINVEMAILDUMMY.en.00/?getSource=true" translation="" filter=".//EMAIL_HEAD[EM_DOC_EMAIL_ADDRESS='NO_EMAIL']">
</xapi:template>
</xapi:document>
</xapi:request>
</xapi:requestset> -
Avoiding duplicate records while inserting into the table
Hi
I tried the following insert statement , where i want to avoid the duplicate records while inserting itself
but giving me the errror like invalid identifier, though the column exists in the table
Please let me know Where i'm doing the mistake.
INSERT INTO t_map tm(sn_id,o_id,txt,typ,sn_time)
SELECT 100,
sk.obj_id,
sk.key_txt,
sk.obj_typ,
sysdate,
FROM S_KEY sk
WHERE sk.obj_typ = 'AY'
AND SYSDATE BETWEEN sk.start_date AND sk.end_date
AND sk.obj_id IN (100170,1001054)
and not exists (select 1
FROM t_map tm1 where tm1.O_ID=tm.o_id
and tm1.sn_id=tm.sn_id
and tm1.txt=tm.txt
and tm1.typ=tm.typ
and tm1.sn_time=tm.sn_time )Then
you have to join the table with alias tml where is that ?do you want like this?
INSERT INTO t_map tm(sn_id,o_id,txt,typ,sn_time)
SELECT 100,
sk.obj_id,
sk.key_txt,
sk.obj_typ,
sysdate,
FROM S_KEY sk
WHERE sk.obj_typ = 'AY'
AND SYSDATE BETWEEN sk.start_date AND sk.end_date
AND sk.obj_id IN (100170,1001054)
and not exists (select 1
FROM t_map tm where sk.obj_ID=tm.o_id
and 100=tm.sn_id
and sk.key_txt=tm.txt
and sk.obj_typ=tm.typ
and sysdate=tm.sn_time ) -
I'm attempting to sync several albums from itunes to iphoto. When select to sync all albums it copies over the previous recorded album. I tried to sync the Albums individually and the same thing happens. Any ideas on how to sync my albums?
Hi NWL1,
Thanks for the question. If I understand correctly, the iPhone won't update and is stuck. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
Thanks for using Apple Support Communities.
Have a great day,
Mario -
Getting Error while trying to enter multiple records using PA70
Hi all,
While trying to enter multiple records for a custom infotype using transaction PA70,
the system asked to provide details of the custom infotype in T588Q and T588r tables after giving the details i'm able to enter into the custom infotype screen but the Personnel number is defaultly taken as
zero and im not able to change the value and if i click save after entering the other details it is throwing an error telling that Infotype doesnt exist.
Please Help..
Thanks & Regards,
Kumar MadduruHi,
Let us know the detailed error text. Probably you haven't included the infotype to maintain in Fast Entry or doesn't have the authorization.
Good Luck
Om -
Hi wondering if anyone might be able to help me out. I am an audio engineer and my wife is a voiceover artist. We just got the ipad thinking she could record her voiceover auditions on the go, but we can't for the life of us figure out how to record audio while reading a script off of her email.
Looking for an app that:
Either can record audio while in the background (garageband cannot)
OR Import text (copy paste I guess?) to read while recording
The app needs to be able to edit audio and export or email out an MP3 - by edit audio I mean trim, fades, and move around sections.
Anyone have any thoughts on how to do this? I have been looking around the web for answers for hours and can't find any. Thanks in advance for your help.Hi- I've done a lot of research in this area and actually am just finishing a book on this subject which will soon be in the iBookstore.
The best app is TwistedWave. It allows easy editing and recording, and also allows you record while you are in another app (such as a script your agent sent in your email)
I recommend MiC by Apogee as your microphone, available at the Apple store.
My book which goes in depth in how to get the best sound as well as how to edit is called:
iVoiceover
Super. Simple. Recording.
I'll post here when it's live in the iBookstore!
Maybe you are looking for
-
Currency Conversion based on condition in BW
Hello, I have gone through the cople weblogs/links/doc whatever information I found on currency conversion. However I am not able to figure out what could be done in below scenario. Please guide. Scenario --> I have STATUS and POSTING_DATE in my Cube
-
Global display variant authorisations
Morning Anyone know the authorisation to use to ensure that I can create global display variants for QM reports such as QA32? I thought it may be SD_VARIANT_MAINTAIN but this does not seem to make any difference. Cheers Ian
-
Question about hard drives older xraid
We have an "older" XRaid stocked with 14 250 GB drives, connected to an xserve with fiber channel. Our premium Applecare agreement for the XRaid expired a few months ago. Prior to that, when a drive would fail, I would simply get a replacement from A
-
Can't open file "~Library/Application Support/iWeb/Domain.sites2" from a backup
I've done my home work on this one. I'm trying to recover the Domain.sites2 files from a backup on to an OS 10.6.8 with iWeb 3.0.4. It allows me to create a new site perfectly but I followed these instructions at iwebformusicians including deleting t
-
AP1252 - questions on setting this up
Sorry, i havent touched an AP for 5 years already so i forgot some of the ideas. If you have any comments or suggestions, that is greatly appreciated. Below is my setup. 1. Will need 3 access points at a 3000+ sq ft home. How can all 3 access points