Finding the mode of server.......! [message #117215] |
Mon, 25 April 2005 15:53 |
balavignesh
Messages: 180 Registered: March 2005
|
Senior Member |
|
|
hai,
i want to find the mode of the server either shared/exclusive by executing the procedure below
begin
2 if dbms_utility.is_parallel_server then
3 dbms_output.put_line('Running in parallel mode.');
4 else
5 dbms_output.put_line('Running in exclusive mode.');
6 end if;
7 end;
8 /
if dbms_utility.is_parallel_server then
*
ERROR at line 2:
ORA-06550: line 2, column 17:
PLS-00302: component 'IS_PARALLEL_SERVER' must be declared
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
but still i am getting the errors in this regard.
plz help me out.
regards
bala
|
|
|
|
Re: Finding the mode of server.......! [message #117319 is a reply to message #117215] |
Tue, 26 April 2005 08:44 |
balavignesh
Messages: 180 Registered: March 2005
|
Senior Member |
|
|
hai ,
thanks for ur response.but the problem is we could n't execute the procedure starting with dbms like dbms_utility , dbms_stats in the sql prompt which blows the error that the procedure is not declared which had been given in the previous mail.help out in this issue.
regards
bala
|
|
|
|
|
Re: Finding the mode of server.......! [message #117624 is a reply to message #117481] |
Thu, 28 April 2005 09:56 |
Frank Naude
Messages: 4581 Registered: April 1998
|
Senior Member |
|
|
Hi,
Not sure if this would be helpful, but the code is working fine on my DB:
SQL> CONNECT / AS SYSDBA
Connected.
SQL>
SQL> SET SERVEROUTPUT ON
SQL>
SQL> BEGIN
2 IF dbms_utility.is_cluster_database THEN
3 dbms_output.put_line('Running in parallel mode.');
4 ELSE
5 dbms_output.put_line('Running in exclusive mode.');
6 END IF;
7 END;
8 /
Running in parallel mode.
PL/SQL procedure successfully completed.
Best regards.
Frank
|
|
|
|
|