dbTalk Databases Forums  

DBMS_OUTPUT.PUT_LINE problem.

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss DBMS_OUTPUT.PUT_LINE problem. in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Vidya
 
Posts: n/a

Default DBMS_OUTPUT.PUT_LINE problem. - 01-07-2008 , 01:26 PM






Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. Can
someone look into the block below and tell me what the problem
is...? Below is the version, code and error msg. Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL>
SQL> declare
2 iid number;
3 PRSS number;
4 RETMES varchar2(200);
5 begin
6 WEB_GMX_MANAGEMENT.Login(
7 'vms',
8 '4111',
9 iid,
10 PRSS,
11 RETMES);
12 end;
13 DBMS_OUTPUT.PUT_LINE(iid);
14 DBMS_OUTPUT.PUT_LINE(PRSS);
15 DBMS_OUTPUT.PUT_LINE(RETMES);
16 /
DBMS_OUTPUT.PUT_LINE(iid);
*
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
.. ( , * % & - + / at mod rem <an identifier>
<a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya

Reply With Quote
  #2  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-07-2008 , 03:48 PM






On Jan 7, 1:26*pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. *Can
someone look into the block below and tell me what the problem
is...? * Below is the version, code and error msg. *Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
* 2 * iid number;
* 3 * PRSS number;
* 4 * *RETMES varchar2(200);
* 5 * * begin
* 6 * *WEB_GMX_MANAGEMENT.Login(
* 7 * *'vms',
* 8 * '4111',
* 9 * *iid,
*10 * *PRSS,
*11 * *RETMES);
*12 * * end;
*13 * DBMS_OUTPUT.PUT_LINE(iid);
*14 * DBMS_OUTPUT.PUT_LINE(PRSS);
*15 * DBMS_OUTPUT.PUT_LINE(RETMES);
*16 */
*DBMS_OUTPUT.PUT_LINE(iid);
**
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
You've placed the DBMS_OUTUT code AFTER the end; for the block. It
should be before:

declare
iid number;
PRSS number;
RETMES varchar2(200);
begin
WEB_GMX_MANAGEMENT.Login(
'vms',
'4111',
iid,
PRSS,
RETMES);
DBMS_OUTPUT.PUT_LINE(iid);
DBMS_OUTPUT.PUT_LINE(PRSS);
DBMS_OUTPUT.PUT_LINE(RETMES);
end;
/


David Fitzjarrell


Reply With Quote
  #3  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-07-2008 , 03:48 PM



On Jan 7, 1:26*pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. *Can
someone look into the block below and tell me what the problem
is...? * Below is the version, code and error msg. *Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
* 2 * iid number;
* 3 * PRSS number;
* 4 * *RETMES varchar2(200);
* 5 * * begin
* 6 * *WEB_GMX_MANAGEMENT.Login(
* 7 * *'vms',
* 8 * '4111',
* 9 * *iid,
*10 * *PRSS,
*11 * *RETMES);
*12 * * end;
*13 * DBMS_OUTPUT.PUT_LINE(iid);
*14 * DBMS_OUTPUT.PUT_LINE(PRSS);
*15 * DBMS_OUTPUT.PUT_LINE(RETMES);
*16 */
*DBMS_OUTPUT.PUT_LINE(iid);
**
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
You've placed the DBMS_OUTUT code AFTER the end; for the block. It
should be before:

declare
iid number;
PRSS number;
RETMES varchar2(200);
begin
WEB_GMX_MANAGEMENT.Login(
'vms',
'4111',
iid,
PRSS,
RETMES);
DBMS_OUTPUT.PUT_LINE(iid);
DBMS_OUTPUT.PUT_LINE(PRSS);
DBMS_OUTPUT.PUT_LINE(RETMES);
end;
/


David Fitzjarrell


Reply With Quote
  #4  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-07-2008 , 03:48 PM



On Jan 7, 1:26*pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. *Can
someone look into the block below and tell me what the problem
is...? * Below is the version, code and error msg. *Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
* 2 * iid number;
* 3 * PRSS number;
* 4 * *RETMES varchar2(200);
* 5 * * begin
* 6 * *WEB_GMX_MANAGEMENT.Login(
* 7 * *'vms',
* 8 * '4111',
* 9 * *iid,
*10 * *PRSS,
*11 * *RETMES);
*12 * * end;
*13 * DBMS_OUTPUT.PUT_LINE(iid);
*14 * DBMS_OUTPUT.PUT_LINE(PRSS);
*15 * DBMS_OUTPUT.PUT_LINE(RETMES);
*16 */
*DBMS_OUTPUT.PUT_LINE(iid);
**
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
You've placed the DBMS_OUTUT code AFTER the end; for the block. It
should be before:

declare
iid number;
PRSS number;
RETMES varchar2(200);
begin
WEB_GMX_MANAGEMENT.Login(
'vms',
'4111',
iid,
PRSS,
RETMES);
DBMS_OUTPUT.PUT_LINE(iid);
DBMS_OUTPUT.PUT_LINE(PRSS);
DBMS_OUTPUT.PUT_LINE(RETMES);
end;
/


David Fitzjarrell


Reply With Quote
  #5  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-07-2008 , 03:48 PM



On Jan 7, 1:26*pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. *Can
someone look into the block below and tell me what the problem
is...? * Below is the version, code and error msg. *Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
* 2 * iid number;
* 3 * PRSS number;
* 4 * *RETMES varchar2(200);
* 5 * * begin
* 6 * *WEB_GMX_MANAGEMENT.Login(
* 7 * *'vms',
* 8 * '4111',
* 9 * *iid,
*10 * *PRSS,
*11 * *RETMES);
*12 * * end;
*13 * DBMS_OUTPUT.PUT_LINE(iid);
*14 * DBMS_OUTPUT.PUT_LINE(PRSS);
*15 * DBMS_OUTPUT.PUT_LINE(RETMES);
*16 */
*DBMS_OUTPUT.PUT_LINE(iid);
**
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
You've placed the DBMS_OUTUT code AFTER the end; for the block. It
should be before:

declare
iid number;
PRSS number;
RETMES varchar2(200);
begin
WEB_GMX_MANAGEMENT.Login(
'vms',
'4111',
iid,
PRSS,
RETMES);
DBMS_OUTPUT.PUT_LINE(iid);
DBMS_OUTPUT.PUT_LINE(PRSS);
DBMS_OUTPUT.PUT_LINE(RETMES);
end;
/


David Fitzjarrell


Reply With Quote
  #6  
Old   
William Robertson
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-08-2008 , 02:27 AM



On Jan 7, 7:26 pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. Can
someone look into the block below and tell me what the problem
is...? Below is the version, code and error msg. Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
2 iid number;
3 PRSS number;
4 RETMES varchar2(200);
5 begin
6 WEB_GMX_MANAGEMENT.Login(
7 'vms',
8 '4111',
9 iid,
10 PRSS,
11 RETMES);
12 end;
13 DBMS_OUTPUT.PUT_LINE(iid);
14 DBMS_OUTPUT.PUT_LINE(PRSS);
15 DBMS_OUTPUT.PUT_LINE(RETMES);
16 /
DBMS_OUTPUT.PUT_LINE(iid);
*
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
btw this is one of the advantages of formatting your code - this type
of thing would leap out at you. It's much harder to spot in a random
jumble.


Reply With Quote
  #7  
Old   
William Robertson
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-08-2008 , 02:27 AM



On Jan 7, 7:26 pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. Can
someone look into the block below and tell me what the problem
is...? Below is the version, code and error msg. Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
2 iid number;
3 PRSS number;
4 RETMES varchar2(200);
5 begin
6 WEB_GMX_MANAGEMENT.Login(
7 'vms',
8 '4111',
9 iid,
10 PRSS,
11 RETMES);
12 end;
13 DBMS_OUTPUT.PUT_LINE(iid);
14 DBMS_OUTPUT.PUT_LINE(PRSS);
15 DBMS_OUTPUT.PUT_LINE(RETMES);
16 /
DBMS_OUTPUT.PUT_LINE(iid);
*
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
btw this is one of the advantages of formatting your code - this type
of thing would leap out at you. It's much harder to spot in a random
jumble.


Reply With Quote
  #8  
Old   
William Robertson
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-08-2008 , 02:27 AM



On Jan 7, 7:26 pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. Can
someone look into the block below and tell me what the problem
is...? Below is the version, code and error msg. Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
2 iid number;
3 PRSS number;
4 RETMES varchar2(200);
5 begin
6 WEB_GMX_MANAGEMENT.Login(
7 'vms',
8 '4111',
9 iid,
10 PRSS,
11 RETMES);
12 end;
13 DBMS_OUTPUT.PUT_LINE(iid);
14 DBMS_OUTPUT.PUT_LINE(PRSS);
15 DBMS_OUTPUT.PUT_LINE(RETMES);
16 /
DBMS_OUTPUT.PUT_LINE(iid);
*
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
btw this is one of the advantages of formatting your code - this type
of thing would leap out at you. It's much harder to spot in a random
jumble.


Reply With Quote
  #9  
Old   
William Robertson
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-08-2008 , 02:27 AM



On Jan 7, 7:26 pm, Vidya <vmsw... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,
I am trying to execute my newly created 'Login' stored procedure.
For some reasons I get error on dbms_outout.put_line line code. Can
someone look into the block below and tell me what the problem
is...? Below is the version, code and error msg. Any help is
greatly appreciated.

---beginin of the code -----
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production

SQL> SET SERVEROUTPUT ON
SQL
SQL> declare
2 iid number;
3 PRSS number;
4 RETMES varchar2(200);
5 begin
6 WEB_GMX_MANAGEMENT.Login(
7 'vms',
8 '4111',
9 iid,
10 PRSS,
11 RETMES);
12 end;
13 DBMS_OUTPUT.PUT_LINE(iid);
14 DBMS_OUTPUT.PUT_LINE(PRSS);
15 DBMS_OUTPUT.PUT_LINE(RETMES);
16 /
DBMS_OUTPUT.PUT_LINE(iid);
*
ERROR at line 13:
ORA-06550: line 13, column 2:
PLS-00103: Encountered the symbol "DBMS_OUTPUT"
ORA-06550: line 13, column 27:
PLS-00103: Encountered the symbol ";" when expecting one of the
following:
. ( , * % & - + / at mod rem <an identifier
a double-quoted delimited-identifier> <an exponent (**)> as
from into || bulk
ORA-06550: line 15, column 30:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of
the
following:
begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
an identifier> <a double-quoted

-- end of code-----

Best Regards,
Vidya
btw this is one of the advantages of formatting your code - this type
of thing would leap out at you. It's much harder to spot in a random
jumble.


Reply With Quote
  #10  
Old   
Robert Klemme
 
Posts: n/a

Default Re: DBMS_OUTPUT.PUT_LINE problem. - 01-10-2008 , 09:31 AM



On 8 Jan., 09:27, William Robertson <williamr2... (AT) googlemail (DOT) com>
wrote:
Quote:
btw this is one of the advantages of formatting your code - this type
of thing would leap out at you. It's much harder to spot in a random
jumble.
And it's pretty easy, there are even formatters on the web that work
well for small amounts of code:

http://www.wangz.net/gsqlparser/sqlpp/sqlformat.htm
http://www.orafaq.com/utilities/sqlformatter.htm

Cheers

robert


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.