|
|
|
Re: Deleting a Service , ORA-44305 Error [message #285852 is a reply to message #285848] |
Wed, 05 December 2007 22:02 |
Arju
Messages: 1554 Registered: June 2007 Location: Dhaka,Bangladesh. Mobile:...
|
Senior Member |
|
|
Quote: | it is a case where privs acquired via ROLE do not apply within PL/SQL procedures.
|
No Anacedent it is not a case like that. Suppose when I execute,
SQL> exec dbms_service.delete_service('arju.net');
PL/SQL procedure successfully completed.
arju service can't be deleted. I tried through different way. Such as,
SQL> !lsnrctl stop
LSNRCTL for Solaris: Version 10.2.0.2.0 - Production on 06-DEC-2007 09:54:06
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
SQL> exec dbms_service.stop_service('arju');
PL/SQL procedure successfully completed.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 2069712 bytes
Variable Size 125831984 bytes
Database Buffers 37748736 bytes
Redo Buffers 6316032 bytes
Database mounted.
Database opened.
SQL> exec dbms_service.delete_service('arju');
BEGIN dbms_service.delete_service('arju'); END;
*
ERROR at line 1:
ORA-44305: service arju is running
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_SERVICE", line 434
ORA-06512: at "SYS.DBMS_SERVICE", line 323
ORA-06512: at line 1
SQL> show parameter service
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
service_names string arju
SQL> exec dbms_service.create_service('amarnew', 'amarnew');
PL/SQL procedure successfully completed.
SQL> select name from service$;
NAME
----------------------------------------------------------------
SYS$BACKGROUND
SYS$USERS
seeddataXDB
seeddata
arjuXDB
amarnew
arju
7 rows selected.
SQL> exec dbms_service.delete_service('arju');
BEGIN dbms_service.delete_service('arju'); END;
*
ERROR at line 1:
ORA-44305: service arju is running
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_SERVICE", line 434
ORA-06512: at "SYS.DBMS_SERVICE", line 323
ORA-06512: at line 1
SQL> exec dbms_service.stop_service('arju');
PL/SQL procedure successfully completed.
SQL> exec dbms_service.delete_service('arju');
BEGIN dbms_service.delete_service('arju'); END;
*
ERROR at line 1:
ORA-44305: service arju is running
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_SERVICE", line 434
ORA-06512: at "SYS.DBMS_SERVICE", line 323
ORA-06512: at line 1
SQL> show parameter service
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
service_names string
SQL> alter system set service_names='amarnew';
System altered.
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 171966464 bytes
Fixed Size 2069712 bytes
Variable Size 125831984 bytes
Database Buffers 37748736 bytes
Redo Buffers 6316032 bytes
Database mounted.
Database opened.
SQL> exec dbms_service.delete_service('arju');
BEGIN dbms_service.delete_service('arju'); END;
*
ERROR at line 1:
ORA-44305: service arju is running
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_SERVICE", line 434
ORA-06512: at "SYS.DBMS_SERVICE", line 323
ORA-06512: at line 1
SQL> show parameter service
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
service_names string amarnew
SQL> exec dbms_service.stop_service('arju');
PL/SQL procedure successfully completed.
SQL> exec dbms_service.delete_service('arju');
BEGIN dbms_service.delete_service('arju'); END;
*
ERROR at line 1:
ORA-44305: service arju is running
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
ORA-06512: at "SYS.DBMS_SERVICE", line 434
ORA-06512: at "SYS.DBMS_SERVICE", line 323
ORA-06512: at line 1
SQL> show user
USER is "SYS"
Any suggestion.
|
|
|
|
|
|
|
|
|
|
|