This forum is currently locked. You can't register or post questions at this time. (read more)

DBSNMP User drop and creation

All posts relating to Oracle database administration.

Moderator: Tim...

Raaj A
Senior Member
Posts: 51
Joined: Wed Mar 07, 2012 7:08 am

DBSNMP User drop and creation

Postby Raaj A » Mon Apr 30, 2012 5:57 am

Hi Tim,
On my production db which is 11g(11.1.0.6) getting below error in alert log file.

ORA-12012: error on auto execute of job 11689
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at "DBSNMP.BSLN_INTERNAL", line 2073
ORA-06512: at line 1

As per the forum, I did below steps but got the error.

1) @D:\app\Administrator\product\11.1.0\db_1\RDBMS\ADMIN\catnsnmp.sql; ---- drop user

SQL> @D:\app\Administrator\product\11.1.0\db_1\RDBMS\ADMIN\catnsnmp.sql;
drop user DBSNMP cascade
*
ERROR at line 1:
ORA-01940: cannot drop a user that is currently connected
drop role SNMPAGENT
*ERROR at line 1:
ORA-01919: role 'SNMPAGENT' does not exist
Role dropped.
Role dropped.

2) @D:\app\Administrator\product\11.1.0\db_1\RDBMS\ADMIN\catsnmp.sql; ----- create user

ERROR at line 1:
ORA-00955: name is already used by an existing object


CREATE TABLE dbsnmp.mgmt_latest_sql(
*
ERROR at line 1:
ORA-00955: name is already used by an existing object


CREATE TABLE dbsnmp.mgmt_history(
*
ERROR at line 1:
ORA-00955: name is already used by an existing object


CREATE TABLE dbsnmp.mgmt_history_sql(
*
ERROR at line 1:
ORA-00955: name is already used by an existing object


CREATE GLOBAL TEMPORARY TABLE dbsnmp.mgmt_tempt_sql(
*
ERROR at line 1:
ORA-00955: name is already used by an existing object


CREATE sequence dbsnmp.mgmt_response_capture_id
*
ERROR at line 1:
ORA-00955: name is already used by an existing object


CREATE sequence dbsnmp.mgmt_response_snapshot_id
*
ERROR at line 1:
ORA-00955: name is already used by an existing object


pls suggest..

Tim...
Site Admin
Posts: 18437
Joined: Mon Nov 01, 2004 5:56 pm
Location: England, UK
Contact:

Re: DBSNMP User drop and creation

Postby Tim... » Mon Apr 30, 2012 8:04 am

Hi.

There is a session connected to the user you are trying to drop. Kill the session and drop the user.

http://www.oracle-base.com/articles/mis ... ssions.php

Cheers

Tim...
Tim...
Oracle ACE Director
Oracle ACE of the Year 2006 - Oracle Magazine Editors Choice Awards
OakTable Member
OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
OCP Advanced PL/SQL Developer
Oracle Database: SQL Certified Expert
My website: http://www.oracle-base.com
My blog: http://www.oracle-base.com/blog


Return to “Oracle Database Administration”

Who is online

Users browsing this forum: No registered users and 5 guests