SQL Plus REport Error

Hi,
There is an SQL Plus REport which was developed by someone else a couple of years ago. And now i pulled the code to make a few changes in the columns and put it back.
Before i made the change i ran the report from the Oracle applications and there was no error.
But for some reason when i changed it and ran it from applications, there is an error that shows up:
EXEC FND_CONC_STAT.COLLECT
ERROR at line 163:
ORA-00933: SQL command not properly ended
And so i reverted back to the original code and the same error shows up.
Can someone tell me why this is error is showing up?
This is the sql code for the report:
SET ECHO OFF
SET SHOW OFF
SET FEEDBACK OFF
SET VERIFY OFF
SET HEADING OFF
SET PAGESIZE 0
SET LINESIZE 450
--WHENEVER SQLERROR EXIT;
DEFINE vfrmdte = '&&1';
DEFINE vtodte = '&&2';
DEFINE vjobnum = '&&3';
DEFINE vorgid = '&&4';
select substr(we.wip_entity_name,1,10)||';'||
substr(msi.segment1,1,10)||';'||
rc.customer_number||';'||
rsu.location||';'||
substr(sl.cust_po_number,1,25)||';'|| --changed sh to sl
--sh.ordered_date||';'||
sl.creation_date||';'||----extra colmn added
sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
sl.request_date||';'||
substr(dcgv.segment2,1,15)||';'||
substr(dgv.SEGMENT1,1,20)||';'||
sh.order_number||';'||
substr(dcgv.segment3,1,15)||';'||
substr(dcgv.segment4,1,25)||';'||
substr(dscv.segment2,1,20)||';'||
substr(dscv.segment3,1,10)||';'||
wdj.start_quantity||';'||
wdj.quantity_completed||';'||
sl.order_quantity_uom||';'||
wdj.completion_subinventory||';'||
wdj.completion_locator_id||';'||
wdj.primary_item_id||';'||
wdj.wip_entity_id||';'||
wdj.scheduled_start_date||';'||
wdj.status_type||';'||
substr(ml.meaning,1,30)||';'||
ml.lookup_code||';'||
md.demand_source_header_id||';'||
substr(md.demand_source_line,1,15)||';'||
mso.sales_order_id||';'||
substr(mso.segment1,1,15)||';'||
substr(mso.segment2,1,25)||';'||
substr(mso.segment3,1,20)||';'||
mic.category_set_id||';'||
mic2.category_set_id||';'||
dgv.category_id||';'||
dcgv.category_id||';'||
sh.header_id||';'||
sh.order_type_id||';'||
sl.line_number||';'||
sl.line_id||';'||
sl.inventory_item_id||';'||
substr(sl.attribute11,1,20)||';'||
msi.fixed_lot_multiplier||';'||
substr(dscv.segment1,1,20)||';'||
wdj.organization_id||';'||
rc.customer_id||';'||
rsu.site_use_id||';'||
sl.LAST_UPDATE_DATE------extra colmn added
from
apps.wip_entities we ,
apps.wip_discrete_jobs wdj ,
apps.mfg_lookups ml ,
--apps.wip_so_allocations wsa ,                                                     
apps.mtl_demand md, --inv.mtl_demand md ,                                                     
apps.mtl_sales_orders mso ,
apps.mtl_system_items_b msi,--inv.mtl_system_items_b msi ,
apps.mtl_item_categories mic ,
apps.mtl_item_categories mic2 ,
apps.mtl_item_categories mic3 ,
apps.mtl_category_sets mcs ,
apps.mtl_category_sets mcs2 ,
apps.mtl_category_sets mcs3 ,
apps.MTL_CATEGORIES_B dgv,--INV.MTL_CATEGORIES_B dgv ,
apps.MTL_CATEGORIES_B dcgv ,
apps.MTL_CATEGORIES_B dscv ,
apps.oe_order_headers_all sh, --so_headers_all sh ,                                                              
apps.oe_order_lines_all sl, --so_lines_all sl ,                                                                
apps.oe_transaction_types_tl sot, --so_order_types_all sot ,                                                         
apps.ra_customers rc ,
apps.ra_site_uses_all rsu
where
we.wip_entity_id = wdj.wip_entity_id
and wdj.firm_planned_flag in (1,2)
and wdj.status_type = ml.lookup_code
and ml.lookup_type = 'WIP_JOB_STATUS'
and md.supply_source_header_id = we.wip_entity_id
-- and sh.header_id = mso.sales_order_id
and mso.segment1 = sh.order_number
and mso.segment2 = sot.name
and sot.transaction_type_id = sh.order_type_id
and sh.sold_to_org_id = rc.customer_id
and sh.ship_to_org_id = rsu.site_use_id
--DUPLICATE and sh.order_type_id = sot.order_type_id                                     
and sl.header_id = sh.header_id
and sl.line_id = md.demand_source_line
and sl.inventory_item_id = msi.inventory_item_id
and msi.organization_id = wdj.organization_id
and msi.inventory_item_id = mic.inventory_item_id
and msi.organization_id = mic.organization_id
and mic.category_set_id = mcs.category_set_id
and mcs.category_set_name = 'DWC Groups'
and dgv.category_id = mic.category_id
AND dgv.STRUCTURE_ID = 50109
and msi.inventory_item_id = mic2.inventory_item_id
and msi.organization_id = mic2.organization_id
and mic2.category_set_id = mcs2.category_set_id
and mcs2.category_set_name = 'DWC COLORS'
and dcgv.category_id = mic2.category_id
AND dcgv.STRUCTURE_ID = 50111
and msi.inventory_item_id = mic3.inventory_item_id
and msi.organization_id = mic3.organization_id
and mic3.category_set_id = mcs3.category_set_id
and mcs3.category_set_name = 'DWC Ship'
and dscv.category_id = mic3.category_id
AND dscv.STRUCTURE_ID = 50112
AND to_date(to_char(sl.request_date,'DD-MON-YYYY'),'DD-MON-YYYY') between
nvl(to_date(to_char('&vfrmdte','DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
and nvl(to_date(to_char('&vtodte' ,'DD-MON-YYYY'),'DD-MON-YYYY'),sl.request_date)
AND we.wip_entity_name = NVL('&vjobnum', we.wip_entity_name)
AND we.organization_id = NVL('&&4',we.organization_id)
AND wdj.status_type IN (1,3)
GROUP BY
substr(we.wip_entity_name,1,10)||';'||
substr(msi.segment1,1,10)||';'||
rc.customer_number||';'||
rsu.location||';'||
substr(sl.cust_po_number,1,25)||';'|| --changed from sh to sl
--sh.ordered_date||';'||
sl.creation_date||';'||
sl.ordered_item||';'|| substr(sl.attribute8,1,30)||';'||
REPLACE(sl.ordered_item,'?',' ')||';'|| --substr(sl.attribute8,1,30)||';'||
sl.request_date||';'||
substr(dcgv.segment2,1,15)||';'||
substr(dgv.SEGMENT1,1,20)||';'||
sh.order_number||';'||
substr(dcgv.segment3,1,15)||';'||
substr(dcgv.segment4,1,25)||';'||
substr(dscv.segment2,1,20)||';'||
substr(dscv.segment3,1,10)||';'||
wdj.start_quantity||';'||
wdj.quantity_completed||';'||
sl.order_quantity_uom||';'||
wdj.completion_subinventory||';'||
wdj.completion_locator_id||';'||
wdj.primary_item_id||';'||
wdj.wip_entity_id||';'||
wdj.scheduled_start_date||';'||
wdj.status_type||';'||
substr(ml.meaning,1,30)||';'||
ml.lookup_code||';'||
md.demand_source_header_id||';'||
substr(md.demand_source_line,1,15)||';'||
mso.sales_order_id||';'||
substr(mso.segment1,1,15)||';'||
substr(mso.segment2,1,25)||';'||
substr(mso.segment3,1,20)||';'||
mic.category_set_id||';'||
mic2.category_set_id||';'||
dgv.category_id||';'||
dcgv.category_id||';'||
sh.header_id||';'||
sh.order_type_id||';'||
sl.line_number||';'||
sl.line_id||';'||
sl.inventory_item_id||';'||
substr(sl.attribute11,1,20)||';'||
msi.fixed_lot_multiplier||';'||
substr(dscv.segment1,1,20)||';'||
wdj.organization_id||';'||
rc.customer_id||';'||
rsu.site_use_id||';'||
sl.LAST_UPDATE_DATE ----extra colmn added

Then we reverted back to the original and there it was the same error.This doesn't seem possible to me. Maybe you just didn't use the exact original script. Other Charset, other linebreaks, UNIX2DOS conversion, etc.
So debugging the error seems useful to me. At least you got an error message and could start working up on that.
On the other hand maybe it would be better to ask this question in the Applications Forum. I think this is this one: Business Intelligence Applications
Regards
Sven

Similar Messages

  • Using Bind variables in SQL PLUS Report

    using Bind variables in SQL PLUS Report. This report gets the arguments from the application concurrent program. Now my need is to convert the start_date and end_date to bind Variables to improve the performance. I have commented the original code in 'prompt List of Unapproved Adjustments' and used my Bind Variable but it is giving an error
    error: Bind Variable "ENDING_DATE" not declared
    Report Date and Time:
    26-OCT-2010 15:44:13
    List of Unapproved Adjustments
    Bind Variable 'ENDING_DATE" not declared
    Please see below the code for the sql plus report:
    define p_org_id           = '&1'
    define p_fy_begin_date = '&2'
    define p_start_date = '&3'
    define p_end_date = '&4'
    define p_conversion = '&5'
    declare
    variable begin_date date;
    exec :begin_date := p_start_date;
    variable ending_date date;
    exec :ending_date := p_end_date;
    /* Begin
    :begin_date := to_date('&p_start_date','YYYY/MM/DD HH24:MI:SS');
    :ending_date := to_date('&p_end_date','YYYY/MM/DD HH24:MI:SS');
    End; */
    set newpage none
    set termout off
    set pagesize 55
    set linesize 180
    set heading on
    set feedback off
    set wrap off
    set space 1
    set heading on
    begin
    dbms_application_info.set_client_info('&p_org_id');
    end;
    prompt
    prompt Report Date and Time:
    prompt ----------------------
    select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS')
    from dual ;
    prompt
    prompt List of Unapproved Adjustments
    prompt -------------------------------
    select b.trx_number,
    a.adjustment_number,
    f.user_name created_by
    from apps.ar_adjustments a,
    apps.ra_customer_trx b,
    apps.fnd_user f
    where a.customer_trx_id = b.customer_trx_id
    and a.status <> 'A'
    and a.created_by = f.user_id
    and a.creation_date between :begin_date
    and :ending_date
    -- and a.creation_Date between to_date('&p_start_date','YYYY/MM/DD HH24:MI:SS')
    -- and to_date('&p_end_date','YYYY/MM/DD HH24:MI:SS')
    order by
    b.trx_number ;

    Hi
    Please go to customization part of the report and verify..You have set a default value out there ..And also verify your lov and look at the values ..If it is again giving you the problem ..pl delete the report and develop it again from the scratch it will be solved...
    vishnu
    null

  • SP2-0642: SQL*Plus internal error state 2133, context

    Hi Everybody
    I am getting the below wired error msg in SQL Plus when trying to execute a select statment on a external table
    SP2-0642: SQL*Plus internal error state 2133, context 0:0:0
    Unsafe to proceed
    SP2-0642: SQL*Plus internal error state 2221, context 4294967295:4:0
    Unsafe to proceed
    Kindly help me out to solve this issue.
    Thanks & Regards
    Chandra Sekar A.
    [email protected]

    Hi Guys
    Thanks for both of you for your replies.
    The problem is still pertaining.
    Below is the structure I have used to create the external table
    CREATE TABLE "Z_TBN_JXPKIREC"
    "ORG" NUMBER ,
    "ACCT" VARCHAR2(19) ,
    "XD_REC_NBR" NUMBER ,
    "XD_REC_TYPE_KEY" NUMBER ,
    "LOGO" Number ,
    "XD_DATE_LAST_MAINT" NUMBER ,
    "XD_PLAN_NBR" NUMBER ,
    "XD_FILLER_1" VARCHAR2(21) ,
    "XD_DATE_ADDED" NUMBER ,
    "XD_PRIN_BNP" NUMBER ,
    "XD_INT_BNP" NUMBER ,
    "XD_INS_BNP" NUMBER ,
    "XD_NSF_BNP" NUMBER ,
    "XD_SVC_CHG_BNP" NUMBER ,
    "XD_LATE_CHG_BNP" NUMBER ,
    "XD_MEMBER_BNP" NUMBER ,
    "XD_OVLM_BNP" NUMBER ,
    "XD_RECV_BNP" NUMBER ,
    "XD_COLL_BNP" NUMBER ,
    "XD_USER_FEE_1_BNP" NUMBER ,
    "XD_USER_FEE_2_BNP" NUMBER ,
    "XD_USER_FEE_3_BNP" NUMBER ,
    "XD_USER_FEE_4_BNP" NUMBER ,
    "XD_USER_FEE_5_BNP" NUMBER ,
    "XD_USER_FEE_6_BNP" NUMBER ,
    "XD_FILLER_2" NUMBER ,
    "XD_FILLER_3" VARCHAR2(85)
    ORGANIZATION EXTERNAL (
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY LOC_TARGET
    ACCESS PARAMETERS (
         RECORDS FIXED 2500
    CHARACTERSET JA16EBCDIC930
    STRING SIZES ARE IN BYTES
    NOBADFILE
    NODISCARDFILE
    LOGFILE 'XXXX_9.LOG'
    FIELDS
    NOTRIM
    "ORG" POSITION (1:3) INTEGER EXTERNAL ,
    "ACCT" POSITION (4:22) CHAR(19) ,
    "XD_REC_NBR" POSITION (23:25) INTEGER EXTERNAL ,
    "XD_REC_TYPE_KEY" POSITION (26:27) INTEGER EXTERNAL ,
    "LOGO" POSITION (28:30) INTEGER EXTERNAL ,
    "XD_DATE_LAST_MAINT" POSITION (31:34) DECIMAL(7,0) ,
    "XD_PLAN_NBR" POSITION (35:37) INTEGER EXTERNAL ,
    "XD_FILLER_1" POSITION (42:62) CHAR(21) ,
    "XD_DATE_ADDED" POSITION (38:41) DECIMAL(7,0) ,
    "XD_PRIN_BNP" POSITION (63:71) DECIMAL(17,0) ,
    "XD_INT_BNP" POSITION (72:80) DECIMAL(17,0) ,
    "XD_INS_BNP" POSITION (81:89) DECIMAL(17,0) ,
    "XD_NSF_BNP" POSITION (90:98) DECIMAL(17,0) ,
    "XD_SVC_CHG_BNP" POSITION (99:107) DECIMAL(17,0) ,
    "XD_LATE_CHG_BNP" POSITION (108:116) DECIMAL(17,0) ,
    "XD_MEMBER_BNP" POSITION (117:125) DECIMAL(17,0) ,
    "XD_OVLM_BNP" POSITION (126:134) DECIMAL(17,0) ,
    "XD_RECV_BNP" POSITION (135:143) DECIMAL(17,0) ,
    "XD_COLL_BNP" POSITION (144:152) DECIMAL(17,0) ,
    "XD_USER_FEE_1_BNP" POSITION (153:161) DECIMAL(17,0) ,
    "XD_USER_FEE_2_BNP" POSITION (162:170) DECIMAL(17,0) ,
    "XD_USER_FEE_3_BNP" POSITION (171:179) DECIMAL(17,0) ,
    "XD_USER_FEE_4_BNP" POSITION (180:188) DECIMAL(17,0) ,
    "XD_USER_FEE_5_BNP" POSITION (189:197) DECIMAL(17,0) ,
    "XD_USER_FEE_6_BNP" POSITION (198:206) DECIMAL(17,0) ,
    "XD_FILLER_2" POSITION (207:215) DECIMAL(17,0) ,
    "XD_FILLER_3" POSITION (216:300) CHAR(85)
    LOCATION (LOC_TARGET: 'XXXX.DAT')
    REJECT LIMIT UNLIMITED
    NOPARALLEL
    and w.r.t. SQL Plus version itz 9.2 and the database server is also 9.2
    Your replies are highly appreciated and thanks for your valuable time.
    Thanks & Regards
    Chandra Sekar A.
    [email protected]

  • Error : SP2-0642: SQL*Plus internal error state 2286, context 0:0:0

    Hi all
    I got the following error while starting a database.please help me
    SP2-0642: SQL*Plus internal error state 2286, context 0:0:0 Unsafe to proceed

    Hi,
    Please look at the notes.
    SP2-0642: SQL*Plus Internal Error State 2130 ORA-24315: Illegal Attribute Type [ID 1060880.1]
    "SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
    SP2-0642: SQL*Plus internal error state 2090, context 0:0:0" Error Encountered While Running Select Statement [ID 555757.1]
    They are either Windows related or general.
    Regards,

  • Automate SQL*Plus Report?

    Can SQL*Plus reports be automated to run at certain days/times?
    Thx

    call sqlreport in .ksh file then put ksh file in jobfile as follows.
    0 1 * * 1-5 sqlrep.ksh
    crontab jobfile
    now crontab run jobfile job every Monday-Friday at 1am.

  • SQL*Plus report and R11 AOL

    I have a sqlplus report that I want to invoke from the AOL. I registered the executable, defined the program, added the report to a request group. The report takes 2 parameters.
    However I can not get it to work. Has anybody an example on how to register a SQL*plus report in the Oracle Applications R11?
    Dirk

    Geef me een belletje, los ik direkt voor je op.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dirk van Vreeswijk ([email protected]):
    I have a sqlplus report that I want to invoke from the AOL. I registered the executable, defined the program, added the report to a request group. The report takes 2 parameters.
    However I can not get it to work. Has anybody an example on how to register a SQL*plus report in the Oracle Applications R11?
    Dirk<HR></BLOCKQUOTE>
    null

  • 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 ASAP

    Hi,
    Duplicate post see:
    Please advise on the Error immediately
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • Signal 11 error in SQL Plus report

    Hi,
    While running the sql plus type of report in oracle apps environment, i'm getting below error in the log after generating half of the o/p.
    stat_low = 8B
    stat_high = 0
    emsg:was terminated by signal 11
    Please help if anyone have idea on this.
    Thanks in advance,
    Devaraj.K

    Please post the details of the application release, database version and OS.
    While running the sql plus type of report in oracle apps environment, i'm getting below error in the log after generating half of the o/p.
    stat_low = 8B
    stat_high = 0
    emsg:was terminated by signal 11
    Please help if anyone have idea on this.Is this a custom or seeded concurrent program?
    Please post the contents of the concurrent request log file here.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Signal+AND+11&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • SQL*Plus report running through concurrent managers

    I Created a report in sql*plus from a view table and running it through the concurrent manager in 11.5.10.2. I'm using 4 paramaters, but I made the awards paramaters as required parameters and the from and to creation dates as not required. However, I noticed when trying to run the report with just the awards numbers no data is populated, but when i run the report with awards and dates then the reports shows data. Is there a way to get this report to run with awards only and make dates as an option from the query below?
    parameters#
    ##1 from award number
    ##2 to award number
    ##3 from creation date
    ##4 to creation date
    set termout off
    set head off
    set pages 0
    set feedback off
    set verify off
    set define #
    col sort_col noprint
    SELECT 'Revenue Report for Date ##3 - ##4, Awards ##1 - ##2', 0 sort_col
    FROM DUAL
    UNION
    SELECT 'AWARD NUMBER^EVENT DATE^DESCRIPTION^REVENUE AMOUNT^CREATION DATE',
    1
    FROM DUAL
    UNION
    SELECT project_number
    || '^'
    || event_date
    || '^'
    || description
    || '^'
    || revenue_amount
    || '^'
    || creation_date,
    2
    FROM apps.pa_events_v
    WHERE project_number BETWEEN NVL ('##1', project_number)
    AND NVL ('##2', project_number)
    AND creation_date BETWEEN TO_DATE (SUBSTR ('##3', 1, 10), 'YYYY/MM/DD')
    AND TO_DATE (SUBSTR ('##4', 1, 10), 'YYYY/MM/DD')
    ORDER BY 2;
    Thanks

    Hi;
    Please see below note which could be helpful for your issue:
    Unconstrained Msonwa64 Memory Based Planner 64 bit AIX Errors Signal 9 [ID 1274606.1]
    JTM Master Program Failing With ORA-1403 on afpgrs [ID 752065.1]
    Regard
    Helios

  • Sql*plus worksheet error

    Hi there,
    I'm using Windows 2000 SP3 with Oracle 9i Database Server release 92010
    The sql*pl worksheet work fine several time until now, when I'm clicking on SQL*PL worksheet I'm getting an error message that says:
    SQL*Plus executable may not have been installed in C:\oracle\ora92\bin.
    CreateProcess: C:\oracle\ora92\bin\sqlplus -r 3/nolog
    @c:\oracle\ora92\sysman\config\sqlplusworksheetInit.
    sql error = 193
    Thanks,
    Oded Dror
    Email: [email protected]

    changing the env variable at dos prompt will not change it for other processes. It will be changed
    only while the dos prompt window is running. to change it permanently, you need to right click on
    My Computer" icon and go to properties -> Advance Options. and change the environment values there.

  • SQL Plus access Errors

    Hi All;
    First off if this is a misplaced post, sorry about that and please let me know where it should be posted.
    I have an Oracle 11.g server that WAS functioning fine up to as of late. For some reason users cannot use SQL Developer (on the server) anymore and are now getting the ever so common error when trying to connect:
    ORA-12514 TNS:Listener does not current know of the service.
    Nothing has changed with regards to the user ID and passwords, nor have the service names changed or any other config to the Listener.
    ALSO:
    If I try to come in via a CLI with sqlplus commands, no dice here either. I'll try this path:
    @prompt: sqlplus /nolog
    @prompt: SQL*PLUS: Release 11.1.0.6.0 Product...etc. etc.
    @prompt: connect /as sysdba
    @prompt: ERROR:
    ORA-12560 TNS: protocol adapter error
    Yes I have did some "google" searches, but they just seem to hint about new installs and configurations. Not said error issues with prior functioning systems.
    Any help would be greatly appreciated. Thanks in advance, Steve
    Edited by: user10773923 on Apr 1, 2010 3:45 PM
    Edited by: user10773923 on Apr 1, 2010 3:46 PM

    Hi,
    If on windows, did you change the name of you machine?
    It will fail your DB from starting up.
    Often
    Nothing has changedis our perspective, but something has in fact changed, else there is no reason for it not to work.
    Happy Trouble Shooting :)
    Regards,
    Bhushan

  • Procedure works in sql plus, shows error in sql dev

    I create a package spec and body via a script in sql plus. Following is part of script:
         procedure updateMetricValue(p_metricValueId_in IN number,
         p_username_in IN metricvalue.entryBy%TYPE,
         p_value_in IN VARCHAR2)
         is
         BEGIN
              UPDATE MetricValue
              SET modifiedBy = p_username_in,
                   value = CAST(p_value_in as NUMBER(17,4))
              WHERE id = p_metricValueId_in;
         END updateMetricValue;
    No errors in sqlplus. Runs fine. When I look at the package in SQL Developer 1.0, it shows an error: "expecting identifier" just before the 4 in the line:
    value = CAST(p_value_in as NUMBER(17,4))
    What am I missing?
    Using 9.2.0.1.0 on windows XP as development database.

    I create a package spec and body via a script in sql plus. Following is part of script:
         procedure updateMetricValue(p_metricValueId_in IN number,
         p_username_in IN metricvalue.entryBy%TYPE,
         p_value_in IN VARCHAR2)
         is
         BEGIN
              UPDATE MetricValue
              SET modifiedBy = p_username_in,
                   value = CAST(p_value_in as NUMBER(17,4))
              WHERE id = p_metricValueId_in;
         END updateMetricValue;
    No errors in sqlplus. Runs fine. When I look at the package in SQL Developer 1.0, it shows an error: "expecting identifier" just before the 4 in the line:
    value = CAST(p_value_in as NUMBER(17,4))
    What am I missing?
    Using 9.2.0.1.0 on windows XP as development database.

  • How to convert SQL*Plus reports to SQLDeveloper?

    Hello,
    I installed Oracle 11g and found that SQLPLUSW.EXE was not there.
    I have many scripts, reports, developed in SQLPLUS.
    How can I convert my reports to run in SQL Developer and produce the same nice output?
    It seems that SQLDev does not support columns formatting, TTITLE, BTITLE, BREAK, all the nice SQLPLUS stuff.
    Any ideas other than installing Oracle10g and running good old SQLPLUS?
    Thank you,
    YG

    Hi YG,
    Based on your comments, you have either experimented a bit or read some forum posts like these:
    Re: sqlplusw.exe not found
    SQLPLUS commands in SQL Developer
    Perhaps you could use the command line version of SQL*Plus (sqlplus.exe) which is still available in 11g and just spool the output?
    Regards,
    Gary Graham
    SQLDeveloper Team

  • When connecting to database in SQL* plus giving Error

    hi,
    I am using Oracle 10g. My problem is when i connecting to database in Server through SQL * Plus giving the Error:
    ORA-12514: TNS:listerner does not currently know of service requested in connect descriptor.
    Why this is happening i don't know. I created listener also. But no use. How to solve this can any tell me pls... ! .
    Thank u...!

    hi,
    Thank u bang for u r reply. It is not working sir. I added the listener as follows:
    # listener.ora Network Configuration File: D:\oracle10g\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = HA14)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle10g)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = OVSL06)
    (ORACLE_HOME = D:\oracle10g)
    (SID_NAME = OVSL06)
    (SID_DESC =
    (GLOBAL_DBNAME = OVSL06)
    (ORACLE_HOME = D:\oracle10g)
    (SID_NAME = OVSL06)
    I typed the following commands in command prompts
    C:\>lsnrctl
    LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 30-MAY-2007 16:29
    :14
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> stop
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
    The command completed successfully
    LSNRCTL> start
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
    System parameter file is D:\oracle10g\network\admin\listener.ora
    Log messages written to D:\oracle10g\network\log\listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=HA14)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Produ
    ction
    Start Date 30-MAY-2007 16:29:28
    Uptime 0 days 0 hr. 0 min. 2 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File D:\oracle10g\network\admin\listener.ora
    Listener Log File D:\oracle10g\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=HA14)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    same error is getting as i am getting previously. Tell me solution pls....!
    Thank u...!

  • SQL*Plus report: hide accept value in report

    HI all,
    I have created an SQL Report of an APEX-Application. The output is stored in a HTML file.
    All works fine but one think I want to hide in the HTML report.
    I try to describe what the problem is.
    I prompt the user to put in the application_id of the apex application:
                           accept v_application_Id char prompt 'Appliaction-ID:'
    In the HTML file the following output is shown:
    Report created on:
    25-Jun-2013, 10:06:04
    alt 8: where application_id = &&v_application_id
    neu 8: where application_id = 680
    Workspace
    WORKSPACE
    APPLICATION_ID
    APPLICATION_NAME
    ALIAS
    OWNER
    Q0Q0AUFTRAGSVERWALTUNG
    680
    Q0Q0AUFTRAGSVERWALTUNG
    F680317
    Q0Q0AUFTRAGSVERWALTUNG_ADMIN
    How can I hide the two lines
    alt 8: where application_id = &&v_application_id
    neu 8: where application_id = 680
    from the report?
    I have searched  this forum and toke a look into the documentation but I have nothing found.
    Could anyone please help me?
    Oracle 11g R2
    This is the SQL script what I run in SQL*Plus.
    -- start script
    accept v_application_Id char prompt 'Appliaction-ID:'
    spool C:\a\APEX.html
    set termout off
    SET MARKUP HTML ON SPOOL ON HEAD "<TITLE>SQL*Plus APEX-Report</title> -
    <STYLE TYPE=’TEXT/CSS’><!--BODY {bgcolor: ffffaa background: ffffc6} --></STYLE>"
    clear break
    clear buffer
    clear compute
    clear column
    clear sql
    set feedback off
    set serveroutput on
    -- Report Header
    ttitle left ' ' skip 1
    select TO_CHAR(sysdate,'dd-Mon-yyyy, hh24:mm:ss')  "Report created on:"
    from dual;
    -- Workspace
    ttitle left col 15 '<font face="Arial" size="+2" color="#0000FF">Workspace</font>' skip 1
    set linesize 300
    set pagesize 500
    set serveroutput on
    column workspace format a35
    column application_id format 99999999
    column application_name format a35
    column alias format a35
    column owner format a35
         select
             WORKSPACE,
             APPLICATION_ID ,
             APPLICATION_NAME,
             ALIAS,
             OWNER
         from apex_applications
         where application_id = &&v_application_id;
    ttitle off
         select
             APPLICATION_GROUP,
             APPLICATION_GROUP_ID,
             HOME_LINK,
             PAGE_TEMPLATE,
             ERROR_PAGE_TEMPLATE
         from apex_applications
         where application_id = &&v_application_id;
    set termout on
    set markup html off head '' body '' entmap off spool off pre off
    set feedback on
    set linesize 80
    set pagesize 50
    ttitle off
    set termout on
    set serveroutput off
    spool off
    set echo on
    -- End Script
    best regards
    ben
    Oracle 11g R2

    Hi, Ben,
    The SQL*Plus command to stop those messages is
    SET VERIFY OFF
    Put this command anywhere before the first use of a substitution variable, e.g. before the SPOOL command.
    Those "OLD" and "NEW" messages will stay suppressed until you either end the SQL*Plus session, or issue a SET VERIFY ON command.
    If you use SQL*Plus often, then, when you have a few minutes, look up the SET command in the SQL*Plus manual,
    SET System Variable Summary
    and read a little about each option.  You probably won't remember everything, but you probably will remember what kinds of things can be controlled by the SET command, and have a better idea of where to start looking in the future when you have a different problem.

Maybe you are looking for

  • End-of-page in OOABAP Reports

    Hi, I'm displaying a list in a grid using OOABAP Global classes. 1)Could anyone post how to handle the end-of-page events in this case. 2) Also in this case I've to code for Interactive Reporting, So also please say how to handle this parallelly for

  • FVC issue in OIM 11g

    Hi, I have configured correspoding information in the fvc.properties and when i ran, it was taking all configuration but in logs it shows upto the message. DEBUG Shrinking the lists/maps to include only the fields to be updated 16:44:13 DEBUG Getting

  • Get vs set

    Hi guys, wondering about the title heh? Well, I have been wondering about what would be the best way to access global variable. Let's take for instance the case of a multi editor IDE like Eclipse. an action occurs which is supposed to do some work on

  • Sync ical help

    is there a way I can sync my iCal to my gmail. I got gmail to sync to iCal. i just don't want to have to go online to update my calender.

  • Info tab does not show in iTunes 11.1.2 in iPad sync window

    I have OS 10.9 on my iMac, iOS 7.0.3 on my iPad, and I'm using iTunes 11.1.2 . I had only one problem syncing my iPad with the iTunes--the info tab does not show in the sync window. Has the method of syncing calendars changed? How can I do this