SQL query was failed in my report after migrating to Oracle 10gR2

We have a aplication running under Oracle 9.2.0.4 DB. we migrated our DB to Oracle 10gR2. While running the report, we got an error:
ORA-00904: "A3"."FACILITY_SYSTEM_ID": invalid identifier
ORA-06512: at "CEAS_MK_RPT.GET_LIST", line 12
The SQL query which causes this error is:
INSERT INTO gtt_facility_seq_generator
(date_range)
SELECT get_list
(CURSOR (SELECT auf.facility_system_id
FROM authorized_facility auf
WHERE auf.facility_system_id = afs.facility_system_id
AND auf.credit_application_system_id = :p_cred_appln_id
FROM authorized_facility afs,
(SELECT af.facility_system_id facility_system_id
FROM facility_obligor fo, authorized_facility af, party p
WHERE fo.facility_system_id = af.facility_system_id
AND fo.party_system_id = p.party_system_id
AND NOT EXISTS (
SELECT NULL
FROM facility_third_party_subst iftps
WHERE iftps.facility_system_id =
fo.facility_system_id)
) tab1
WHERE afs.credit_application_system_id = :p_cred_appln_id
AND tab1.facility_system_id = afs.facility_system_id
ORDER BY afs.creation_date;
The content of function get_list() is:
CREATE OR REPLACE FUNCTION CEAS_MK_RPT.Get_List
p_cursor IN sys_refcursor
RETURN VARCHAR2
IS
l_sep VARCHAR2(4);
l_text VARCHAR2(30000);
l_text_return VARCHAR2(30000);
BEGIN
LOOP
FETCH p_cursor INTO l_text;
EXIT WHEN p_cursor%NOTFOUND;
l_text_return := l_text_return || l_sep || l_text;
l_sep := CHR(10);
END LOOP;
CLOSE p_cursor;
RETURN l_text_return;
dbms_output.put_line ('a');
END Get_List;
The same report was executed perfectly in Oracle 9i. Kindly help us to short out this issue. Thanks in advance.
Regards,
Sengol S

Hi Nirav,
Many thanks for your response. I verified the same, but the same query was executed successfully after removing the INSERT INTO part(executed the SELECT part only). What might be the cause for this error?
For your kind information :
I have 2 schema in my DB( ceas_mk_app and ceas_mk_rpt ).
All the source tables are present in ceas_mk_app schema - These tables are used by ceas_mk_rpt schema(using synonym) to generate the report.
I'm executing the above said query from ceas_mk_rpt to insert the necessary data in to report temp. table.
Thanks,
Sengol S
Edited by: seng1256 on Dec 22, 2008 12:31 PM

Similar Messages

  • SQL Query involved to Generate the reports

    Hi,
    I have created Vendor report which internally refers two tables from the vendor and store table (Both the tables are not directly Joined each other)
    i want to see the SQL Query involved to generate the report.
    where can i see that?
    Regards,
    Prasanthi

    in nqquery.log file:
    10g -> $BI_ORACLE_HOME/server/Log
    11g -> $ORACLE_INSTANCE/diagnostics/logs/OracleBIServerComponent/coreapplication_obis1

  • Physical SQL Query of the BI Publisher Report

    Hi,
    Where can we see the Physical SQL Query of the BI Publisher Report with OBIEE as a Data Source? As you people might be knowing, when we chose OBIEE - a logical SQL will/need to be placed.
    Thanks,
    Vency

    I don't see it in NQQuery log:(
    Ideally, it should be because it will hit BI Server. Moreover, I can see it (report's logical SQL) in BI Server Cache.
    Any other thoughts?

  • When I use Preview,Photo Mechanic and Pages, all JPEG or RAW images appear corrupted. I thought my hard drive was failing and replaced it and migrated everything over but the problem still exists. Any idea what is going on?

    When I use Preview,Photo Mechanic and Pages, all JPEG or RAW images appear corrupted.
    I thought my hard drive was failing and replaced it and migrated everything over but the problem still exists.
    It felt as if maybe a virus was at work but I ran Sophos and found nothing.
    I store images on my Drobo Raid system but when I work from my Macbook Pro I have no issues, just on the tower.
    Any idea what is going on?

    First of all, why did you say yes to Nero Back up before researching what it does with files already on the HDD? When I install Nero, the Back Up is the first thing I disable, it is a nagging pain, there are much better backup programs available. There are several file recovery programs out there to recover deleted files, that is, if that is what happened. Also, if you haven't overwritten the files, so you should be able to find them.

  • Testing the Reports after Migration

    Post Author: vreddy
    CA Forum: Migration to XI R2
    Hi all,
    Can any one tell me how can we test the reports after migration from BO 6.5 to BOXIR2?
    Thanks,
    Reddy

    Hi Sripathy
    Together with the guy informing me of the problem we reproduced the error situation.
    The errormessage displayed at the screen is: "RWRBE60.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is created." We looked at the local hard drive of the PC to find some extra error information. The only things we found were a crash dump file user.dmp and and another file with dump information. From the dump-info I can see that the proces rwrbe60 caused an access violation and crashed. To me it seems now that there is no Oracle error log, but it is a Windows error message.
    I fear now that the question is becoming more a windows question than an Oracle question. Still it is an Oracle process causing the access violation. So any tips how to continue are welcome. I do not have experience to read windows crash dump files. What could cause the access violation? Could it be a missing font file, or is it necessary to set write access to some specific directories, or other?
    regards,
    Henk

  • Extract Sql Query with Actual Parameters from Report

    Hi
    I am able to extract query from Crystal Report using the following code :
    ReportDocument.ReportClientDocument.RowSetController.GetSqlStatement(new GroupPath, out tmp);
    But the sql query retrieve comes in the following format :
    select name , trans_code, account_code from command_query.accounts
    where account_code = {?Command_query_Prompt0}  and effective_date < '{?Command_query_prompt1 }'
    The parameters which I m using in the reports are :
    Account_Code and Effective_Date .
    Why does my extracted sql translates it into {?Command_query_Prompt0} and '{?Command_query_prompt1 }' .
    Is there any way to map this to the actual parameter values ?
    OR
    Can we extract the query after assigning the values ?
    Any help is appreciated ... 
    Thanks
    Sanchet

    hi,
    You can create nested sql query with conditional parameters,
    For example
    Select Code From OITT Where Code IN (Select ItemCode From OITM
    Where ItemName LIKE '[%0]' + '%%')
    Edited by: Jeyakanthan A on Jun 9, 2009 12:31 PM

  • Sql query problem which causes crystal reports in visual studio to freeze

    Anyone know why this query posted here freezes up? if i remove  s.enddate IS NULL from the query is when it freezes up. This is used on an infinite campus database for which i only have read only access so no posting anything that requires write access please!
    IT may just be a flaw in my query which it has been before but it only stops responding if i remove the above query and it only started this after i added the comments subreport if i remove it then the action above doesn't cause it to freeze in visual studio.
    I do have a subreport for comments that is in the report too. Heres the main query:
    SELECT Distinct sc.name,sc.address,sc.city,sc.state,sc.zip,sc.phone,gt.name AS Task, ca.StartDate,
    ca.EndDate, s.lastname','s.firstname AS Student, s.studentnumber,e.grade,t.name AS Term,
    gs.score AS [Current Grade],cg.Cumgpa AS GPA,c.name '-'c.number As Course, se.teacherdisplay,gs.personid,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline1 END) AS AddressLine1,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline2 END) AS [City/State],gs.personid
    FROM GradingScore gs
    LEFT JOIN dbo.student s ON s.personid = gs.personid
    JOIN v_CensusContactSummary ccs ON ccs.personid = s.personid
    JOIN dbo.enrollment e ON e.enrollmentid = s.enrollmentid AND e.calendarid = gs.calendarid
    LEFT JOIN dbo.Term t ON t.termid = gs.termid
    JOIN dbo.section se ON se.sectionid = gs.sectionid
    JOIN v_CumGPA cg on cg.personID = s.personID aND cg.calendarID = s.calendarID
    JOIN gradingtask gt ON gt.taskid = gs.taskID
    JOIN dbo.course c ON c.courseid = se.courseid
    JOIN dbo.roster r ON r.sectionid = se.sectionid
    JOIN calendar ca ON ca.calendarID = gs.calendarID
    JOIN School sc ON sc.schoolID = ca.schoolid
    LEFT JOIN householdlocation hl ON hl.householdid = ccs.householdid
    --Change Term Name to match term name needed or if in a report turn it into a Parameter
    WHERE s.enddate IS NULL AND gs.calendarID IN
    (select calendarid
    from dbo.calendar c
    JOIN dbo.schoolyear sy on sy.endyear = c.endyear
    WHERE  c.schoolID = 2)
    GROUP BY s.studentnumber,s.lastname, s.firstname,e.grade, t.name, gt.name, gs.score, cg.cumgpa, c.name, c.number, se.teacherdisplay, ca.startDate, ca.enddate,
    sc.name, sc.address, sc.city, sc.state, sc.zip, sc.phone,gs.personid
    order by [student],[Term],[Course]
    Edited by: jeffman2 on Oct 6, 2011 3:40 PM
    Edited by: jeffman2 on Oct 6, 2011 3:41 PM
    Edited by: jeffman2 on Oct 6, 2011 3:53 PM
    Edited by: jeffman2 on Oct 6, 2011 3:56 PM
    Edited by: jeffman2 on Oct 6, 2011 3:56 PM

    What happens if you try
    SELECT Distinct sc.name,sc.address,sc.city,sc.state,sc.zip,sc.phone,gt.name AS Task, ca.StartDate,
    ca.EndDate, s.lastname+','+s.firstname AS Student, s.studentnumber,e.grade,t.name AS Term,
    gs.score AS Current Grade,cg.Cumgpa AS GPA,c.name +'-'+c.number As Course, se.teacherdisplay,gs.personid,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline1 END) AS AddressLine1,
    MAX(CASE WHEN hl.enddate IS NULL AND ccs.guardian = 1 AND ccs.relatedBy = 'Household' AND ccs.mailing = 1 THEN ccs.addressline2 END) AS City/State,gs.personid
    FROM GradingScore gs
    LEFT JOIN dbo.student s ON s.personid = gs.personid
    JOIN v_CensusContactSummary ccs ON ccs.personid = s.personid
    JOIN dbo.enrollment e ON e.enrollmentid = s.enrollmentid AND e.calendarid = gs.calendarid
    LEFT JOIN dbo.Term t ON t.termid = gs.termid
    JOIN dbo.section se ON se.sectionid = gs.sectionid
    JOIN v_CumGPA cg on cg.personID = s.personID aND cg.calendarID = s.calendarID
    JOIN gradingtask gt ON gt.taskid = gs.taskID
    JOIN dbo.course c ON c.courseid = se.courseid
    JOIN dbo.roster r ON r.sectionid = se.sectionid
    JOIN calendar ca ON ca.calendarID = gs.calendarID
    JOIN School sc ON sc.schoolID = ca.schoolid
    join (select calendarid
           from dbo.calendar c
           JOIN dbo.schoolyear sy on sy.endyear = c.endyear
           WHERE c.schoolID = 2) ci
           on  gs.calendarID  = ci.calendarid
    LEFT JOIN householdlocation hl ON hl.householdid = ccs.householdid
    --Change Term Name to match term name needed or if in a report turn it into a Parameter
    --WHERE s.enddate IS NULL
    GROUP BY s.studentnumber,s.lastname, s.firstname,e.grade, t.name, gt.name, gs.score, cg.cumgpa, c.name, c.number, se.teacherdisplay, ca.startDate, ca.enddate,
    sc.name, sc.address, sc.city, sc.state, sc.zip, sc.phone,gs.personid
    order by student,Term,Course
    Ian

  • Enable SQL Query logging while generating a report

    I am a newbie to BI Publisher. We are using Oracle BI Publisher 11.1.1.5.0 for reports generation.
    I am trying to get the actual SQL query executed when a report is generated.
    It would be great if any one can share some tips to enable SQL query logging and how to verify it.
    Thanks,
    Satya

    Thanks for your response.
    It seems the NQQuery.log is for OBIEE not for BI Publisher. I could see the admin guide refers to Oracle Fusion Middleware System Administrator's Guide for Oracle Business Intelligence Enterprise Edition.
    I raised an SR at myoraclesupport (MOS), I got a response saying enable SQL query log option is not available in BIP.
    Best regards,
    Satya

  • I want to know when a sql-query was excuted in DBA_HIST_SQL_PLAN !!

    Hi, all.
    I want to know when a sql query wqas excuted in past 3 month.
    select * from DBA_HIST_SQL_PLAN
    where plan_hash_value='1844343569'
    is working?
    The plan_hash_value is from v$sql_plan of current instance.
    There ware 3times database shutdown/startup.
    When a oracle instance is initiated, is the plan_hash_value of the same query changing?
    Thanks in advance.

    You can't go back 3 months unless your retention period is set to that length of time.
    select retention from DBA_HIST_WR_CONTROL;
    If you want to retain data for longer then you need to modify you snapshots settings, but this can impact your DB if it grows too large.
    BEGIN
    DBMS_WORKLOAD_REPOSITORY.MODIFY_SNAPSHOT_SETTINGS( retention => 100800);
    END;
    Then you could get the details out by using something like
    select a.SNAP_ID, begin_interval_time, end_interval_time, SQL_ID, PLAN_HASH_VALUE,VERSION_COUNT, FETCHES_TOTAL, EXECUTIONS_DELTA , EXECUTIONS_TOTAL
    from DBA_HIST_SQLSTAT a, DBA_HIST_SNAPSHOT b
    where b.snap_id=a.snap_id
    and b.instance_number=a.instance_number
    and sql_id='&sql_id'
    ;

  • Date issue in webi report after migration to XI 3.1

    Hello All,
    We had designed a webi report in BOXIR2 with run date present in report header section. This report was working fine in XIR2 environment.
    However after migrating this report to XI 3.1 with sp2 and fp2.2, we have observed that date part is getting eliminated from the report header. If date is 13/01/2010, then only 13 is visible and rest of the date is getting out of report. This happens when we export report to PDF (We need final output in PDF).
    The same thing was working fine in XIR2. From 'properties' section of report,  we have verified that report format has not changed. Also we are using latest version of Adobe (9.2).
    Can you suggest us the steps to resolve this issue?
    Sincerely,
    Chinmay

    Hi,
    When you view the Report in WebI Format is the Date shown correct ?
    When you export the Report in xls. is the Date shown correct ?
    Could you please re- validate your formular in XI 3.1 for the date
    Compare the Format of the Object in the Universe between Rel.2 and XI 3.1 (if the Date informations in an object in your Universe)
    Only Adobe Reader 8.1.2 and 9.0 are supported. Can you please install one of these versions and retry ?
    Regards
    -Seb.

  • Missing Discoverer reports after migrating the EUL to new Database.

    Our Environment is Discoverer Relational- OLTP
    We have recently migrated the source database from Oracle 9.2.0.6 to 10.2.00.0 RAC, this made us to migrate the Discoverer to new database in production.
    Below are the database objects we migrated to new database.
    1. EUL schema
    2. Schemas referred by the Objects in the EUL (schemas containing functions, tables, views etc)
    3. Based on trigger we created to filter active discoverer database accounts, migrated only active database users to new database.
    Note: we had almost 4000 Discoverer users from 2005, since many of these users moved out of company or not using discoverer permanently, and there are users who used discoverer once in year or once in 6 months.
    Finally we come up with 300 Active Discoverer users to be migrated to new database.
    Issues: After migration
    Some of the migrated users did not get their reports migrated which are shared by other users? [Since we didn’t migrate these users schemas as they are not active].
    We have queried the EUL5_DOCUMENTS table in new database for a particular inactive users account (account which is not migrated) is not showing any reports owned by him.
    Since we have migrated EUL schema and active users new database, is this will effect the EUL, [Information related to non active users gets deleted from the EUL in New Database]
    Some users who are not figured in the active migrated list are requesting to get access to discoverer on new database. Can you please suggest the correct way to migrate these accounts.
    Exporting the accounts will work?
    Thanks in advance.
    Sunil

    Kanchana Devasurendra wrote:
    Hi ARS,
    Please check the following item in your new database.
    1. log_archive_max_processes Most properbly value set for this parameter is low ( may be it's set to 1.) Please increase up ( 4)I am curious to know what makes you think 4 is the right magic number for log_archive_max_processes - after all, he's only got one archive destination.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
    If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
    It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful.

  • Multi Value error observed in one report after migration from BO 3.1 to BO 4.0

    Hi,
    Can someone help me resolving the #multivalue error after migration of report from BO 3.1 to 4.0 environment
    I have compared all the formulas and they are same in both the
    I have observed, if I create a new  tab with the report, The multivalue error is not observed
    Can somebody please help me regarding this issue
    Thanks
    Javeed

    Hi Javed,
    MultiValue error appears if you have multiple result values for the same row values combination.
    Try including an object from object panel which can differentiate the values for that row.
    For Example,
    Lets say you have an item & you have a keyfigure Invoiced amount where it has 2 different values at schedule line level.
    So the values in webi BOBJ depends your BW architecture like how the infoprovider is designed. If your infoprovider has the invoiced amount values based on item and schedule line level then if you dont add the schedule line in webi report, you ll get the "#MULTIVALUE" Error.
    If you are using any Variables in the webi Report, try using
    =[keyfigure] in [Dimension]
    Hope this helps.
    Regards,
    Naveen

  • Problem in displaying reports after migrating 6i to 9i

    Hi,
    I have migrated the Oracle Reports 6i on NT to 9i running on Solaris. While I don't have any problems in accessing some reports on the web in PDF format, for certain reports it gave me a small dialogue box to install Thai text support. After clicking cancel, it shows 'Terminated with error: REP-300: invalid column name SELECT ....'
    Is it due to the incompatibility of 6i and 9i ?
    or do I need to recompile the .rdf files ?
    Your fast response is apprecciated.
    Thanks.
    Jikur

    according to your description you did two things at once, changed platform and upgraded product version.
    although reports 6i and 9i are compatible and you should be able to run 6i reports without any changes in 9i, we always suggest that you re-compile your RDFs on the new version.
    also the change from NT to unix could have something with your behaviour. i would check if the re-compile of your reports helps. if not, please contact oracle support services for further investigation.
    regards,
    philipp

  • Server failed to join cluster after migration.

    Hi
              <p>
              After migration of weblogic server (wls1) from machine A (fwls1) to B (fwls2), wls1 logged the following: <br>
              <i>Failed to join cluster wlscluster at address 239.192.2.1 due to: <br> java.net.SocketException: Cannot assign
              requested address.
              java.net.SocketException: Cannot assign requested address. </i><br><br>
              Wls2 is part of wlscluster and it is working, so I think that multicast address must be fine. Does anyone know what can be reason for that exception ?
              <br>
              <br>
              Details:
              <ol>
              <li> Weblogic Server 9.2
              <li> wls1 is running at the fwls1 machine; wls2 is running at the fwls2 machine; wls1 and wls2 belong to cluster wlscluster
              <li> migrate wls1 to machine fwls2
              <li> in fwls2:/opt/.../wls1/logs/server.log I got an exception
              <li> fwls1 automatically stands up in fwls1
              </ol>
              Any help appreciated
              </p>
              regards
              <br>Lukas<br>
              <br>WLS 9.2

    hi
              the cluster adress includes ur manged servers listing adress and port number example
              10.192.11.12:6399 is managed1
              10.192.11.12:6400 is managed2
              then these servers under cluster the cluster adress is
              10.192.11.12:6399,10.192.11.12:6400
              multicast adress start from 237.0.0.0 if this used by some another user change this adress

  • Problem of Data Import/Export after migration of Oracle DB 9i to 10g

    We have encountered the following problem after the migration of Oracle DB 9i to 10g R1 and ESRI ArcSDE 8.3 to 9.1.
    In our development server, a view was created by joining of one feature class (point feature), two attribute tables and one F table. We have to perform a process to export all the features in that particular view from the development server and then import them to the production server. In total, there should be about 60,000 points.
    Form our past experience (using Oracle DB 9i and ESRI ArcSDE 8.3); we spent about 15-20 minutes to complete the import-export procedure. However, after the system migration, the speed of the import-export procedures is extremely slow, which is talking about 2 hours for ONLY EXPORTING 5MB data.
    We would like to seek advice in solving the above problems. THANKS!

    Try to delete old stats, then gather new stats on the schema and try the export again.

Maybe you are looking for

  • Itunes 7 Application error - the memory could not be "read"

    Hi guys. I just bought my first ipod and i upgrated itunes. but now itune just doesn't work!!! i getting this message: the instruction at "0x1000257a" referenced memory at "0x00000000". The memory could not be "read". I tried to uninstalled but it di

  • WIFI DO NOT WORK

    My wifi is not working after I have installed the new version 6.1.3. The color is grey and I've tried already several possible solutions, restore, download again, fridger,, reset everything. Nothing works...

  • GL balance  profitcenter wise

    I want  GL balance  profitcenter wise for balance sheet purpose  is there any report get proper data or T-code.

  • Function where PO output determination is decided

    Hi, Does anyone know the name of the function or equivalent where the PO output determination logic can be found in SRM 5.0? Our system started resending POs to vendors if the output medium is XML when the PO is completed. Thanks, Jerry

  • Cannot find pic shown on main "Photo Albums" page''

    Going into "Photos" brings up the "Photo Albums" main page. Along the Left side, there is a small picture for each of the Albums (Typically the first picture in that album). For "Camera Roll" a picture is shown that does not exist in "Camera Roll" or