Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: stored procedure errors

Re: stored procedure errors

From: <nlzanen1_at_EY.NL>
Date: Fri, 10 Aug 2001 00:39:02 -0700
Message-ID: <F001.00366D5B.20010810002029@fatcity.com>

Hi,

You are missing an underscore at home_zone_duration (it now says home_zone duration) Oracle now thinks that's where your list of columns should end and finds no parenthesis

Good luck

Jack

                                                                                       
                             
                    "Ranganath K"                                                      
                             
                    <ranganathk_at_subex       To:     Multiple recipients of list 
ORACLE-L <ORACLE-L_at_fatcity.com>     
                    group.com>              cc:     (bcc: Jack van 
Zanen/nlzanen1/External/MEY/NL)                  
                    Sent by:                Subject:     stored procedure errors       
                             
                    root_at_fatcity.com                                                   
                             
                                                                                       
                             
                                                                                       
                             
                    09-08-2001 18:54                                                   
                             
                    Please respond to                                                  
                             
                    ORACLE-L                                                           
                             
                                                                                       
                             
                                                                                       
                             



Hi Gurus,

I am creating a stored procedure using the below code. The procedure gets created successfully. But while executing the procedure I am getting below errors:
ERROR at line 1:

ORA-00907: missing right parenthesis
ORA-06512: at "SCOTT.CREATE_RATEDOUTPUT", line 5
ORA-06512: at line 1

CREATE OR REPLACE procedure create_ratedOutput(tablename IN varchar2) authid current_user
IS
BEGIN
EXECUTE IMMEDIATE 'create table '|| tablename ||'( version char(1) not null,

ne_id number(5) not null,
ne_sequence number(9) not null,
ne_date date not null,

device_id_indictor char(1) not null,
device_id varchar2(40) not null,
service_type_1_rule char(1) not null,
raw_service_type1_id varchar2(20) not null, override1_id varchar2(20),
service_type_2_rule char(1) not null,
raw_service_type2_id varchar2(20),
override2_id varchar2(20),
call_date date not null,
call_completion number(3) not null,
call_termination number(3) not null,
call_direction char(1) not null,

mobile_to_mobile_indicator char(1) not null, electronic_serial_number varchar2(11),
initial_cell_site varchar2(10),
second_number varchar2(20) not null,
dest_address varchar2(64),
special_cases varchar2(5) not null,
call_start_time_1 date not null,
call_duration_1 number(6) not null,
call_start_time_2 date,
call_duration_2 number(6),
home_zone duration number(6),
roaming_indicator char(1) not null,
roaming_direction char(1),
service_provider number(9),

service_provider_batch number(9),
service_provider_location varchar2(12),
ip_address varchar2(15),
data_size number(9),
user_defined1 varchar2(40),
user_defined2 varchar2(40),
user_defined3 varchar2(40),
user_defined4 varchar2(40),
user_defined5 varchar2(40),
user_defined6 varchar2(40),
user_defined7 varchar2(40),
user_defined8 varchar2(40),

us_call_type number(2),
day_type number(2),

origin_city varchar2(15),
origin_state char(2),
origin_country_abbr char(4),
destination_city varchar2(15),
destination_state char(2),
destination_country_abbr char(4),
destination_lata char(4),
destination_ocn char(4),

destination_rocn char(4),
destination_ioc_boc char(1),
distance_dialed number(9),
billed_duration number(6),
rate_periods_used number(1),
rate_period_description varchar2(30),
st1_rate_period_1 number(2),
st1_billed_duration_1 number(6),
st1_charge_1 number(18, 4),
st1_rate_period_id_2 number(2),
st1_billed_duration_2 number(6),
st1_charge_2 number(18, 4),
st1_billed_duration_rest number(6),
st1_charge_rest number(18, 4),
st2_rate_period_1 number(2),
st2_billed_duration_1 number(6),
st2_charge_1 number(18, 4),
st2_rate_period_id_2 number(2),
st2_billed_duration_2 number(6),
st2_charge_2 number(18, 4),
st2_billed_duration_rest number(6),
st2_charge_rest number(18, 4),

state_taxes number(18, 4),
local_taxes number(18, 4),

status char(1),
status_date date,
billed_id varchar2(20) not null,
customer char(6) not null,
billed_start_date date not null,
duplicate_key_sequence char(1) not null, company char(3),
actual_service_type1 varchar2(20),
actual_service_type2 varchar2(20),
customer_cycle number(2),
usage_file_end_day number(2),

sort_method char(1),
rate_plan varchar2(20),
rate_plan_effective_date date,
revenue_code_by_plan char(4),
revenue_code_by_service1 char(4),
revenue_code_by_service2 char(4),
billing_item char(4),
billing_seq char(2),

billing_po char(2),
billing_cancel_date date,
free_usage_method char(1),
volume_discount_method char(1),
invoice_summary1 char(1),
invoice_summary2 char(1),
free_usage_amount1 number(18, 4),
free_usage_amount2 number(18, 4),
free_usage_details varchar2(40),
vol_disc_amount_applied1 number(18, 4),

vol_disc_amount_applied2 number(18, 4),
vol_disc_details varchar2(40),
carrier1 varchar2(20),
action_type1 char(1),
carrier2 varchar2(20),
action_type2 char(1),
actual_st1_charge_total number(18, 4),

actual_st2_charge_total number(18, 4),
alternate_amounts_calculated char(1),
alternate_amount_1 number(18, 4),
alternate_amount_2 number(18, 4),

CONSTRAINT RatedCDROut_PK
PRIMARY KEY (billed_id, customer, billed_start_date, duplicate_key_sequence))';
execute immediate 'insert into outputstatus values('||chr(39)||tablename||chr(39)||','||chr(39)||1||chr(39)||')'; commit;
end;
/

Can anyone help me in this regard?

Regards,

Ranganath

DISCLAIMER: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in
reliance on it and you should delete it from your system and notify the sender immediately. Unless otherwise stated, any views or opinions expressed
are solely those of the author and do not represent those of Subex Systems Limited.

www.subexgroup.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Ranganath K
  INET: ranganathk_at_subexgroup.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

De informatie verzonden in dit e-mailbericht is vertrouwelijk en is uitsluitend bestemd voor de geadresseerde. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is, behoudens voorafgaande schriftelijke toestemming van Ernst & Young, niet toegestaan. Ernst & Young staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mailbericht, noch voor tijdige ontvangst daarvan. Ernst & Young kan niet garanderen dat een verzonden e-mailbericht vrij is van virussen, noch dat e-mailberichten worden overgebracht zonder inbreuk of tussenkomst van onbevoegde derden.

Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieŽn te verwijderen en te vernietigen.

Ernst & Young hanteert bij de uitoefening van haar werkzaamheden algemene voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. De algemene voorwaarden worden u op verzoek kosteloos toegezonden.



The information contained in this communication is confidential and is intended solely for the use of the individual or entity to whom it is addressed. You should not copy, disclose or distribute this communication without the authority of Ernst & Young. Ernst & Young is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt. Ernst & Young does not guarantee that the integrity of this communication has been maintained nor that the communication is free of viruses, interceptions or interference.

If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies.

In carrying out its engagements, Ernst & Young applies general terms and conditions, which contain a clause that limits its liability. A copy of these terms and conditions is available on request free of charge.


--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: nlzanen1_at_EY.NL

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists

--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Aug 10 2001 - 02:39:02 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US