Check ORACLE data has a CS trigger compilation error, the problem is that the trigger state is invalid (invalid), but complie and can not pass, to drop and will report object invalid can not drop, so need to register him in sys.objerror$, in order to drop
Do you have this kind of error message ?
SQL> drop user MYUSER cascade;
drop user MYUSER cascade
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [kqd-objerror$], [U], [0], [101],
[MYTRIGGER_MYCALCULATION], [], [], [], [], [], [], []
It means that one or more object is invalid. And in the error message you have the object name causing this error and then you can find the ids of instances of this object causing errors.
SQL> select object_id from dba_objects where object_name=‘MYTRIGGER_MYCALCULATION’;
OBJECT_ID
867767
840888
Now you can have logs about these objects.
SQL> select name, type , line, position, text from all_errors where name like ‘MYTRIGGER_MYCALCULATION’;
NAME TYPE LINE POSITION
TEXT
MYTRIGGER_MYCALCULATION TRIGGER 2 6
PLS-00049: bad bind variable ‘NEW.SYSVERSION’
MYTRIGGER_MYCALCULATION TRIGGER 3 4
PLS-00049: bad bind variable ‘NEW.SYSVERSION’
MYTRIGGER_MYCALCULATION TRIGGER 6 4
PLS-00049: bad bind variable ‘NEW.SYSVERSION’
Here we understand the errors are caused by compilation errors on a trigger. As we just want to drop the user object that contains this trigger, we can ignore these errors :
SQL> insert into sys.objerror$ values(867767);
insert into sys.objerror$ values(840888);
1 row created.
SQL> insert into sys.objerror$ values(840888);
insert into sys.objerror$ values(840888);insert into sys.objerror$ values(840888)
1 row created.
Then we can drop the user successfully.
SQL> drop user MYUSER cascade;
User dropped.
Read More:
- Oracle creates a job and executes the stored procedure with parameters regularly
- How to release Oracle PLSQL data lock table
- Oracle-OrcleInstanctClient Install ODBC Error: Oracle ODBC Driver with same name already exists
- Mybatis Error setting non null for parameter #15 with JdbcType null Could not set parameters for
- [Mybatis] How to Solve the problem of Oracle query processing more than 1000 in conditions
- Oracle Database AWR error: ORA-06502 [How to Solve]
- The attributes of Oracle batch modification sequence (such as cache)_size, increment_(by et al.)
- [Solved] mysqli::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers in
- Oracle11g Startup Database Error: ORA-27154: post/wait create failed
- Error 1406 (22001) in MySQL: data too long for column (Fixed)
- MYSQL Insert Data Error: check the manual that corresponds to your MySQL server version for the right syntax
- [Solved] SQLSTATE[HY000] [2002] Connection refused to report an error when PHP connects to mysql in the docker container
- How to Solve Mysql8 load data error
- The setobject() method reports an error. The parameter index out of range and MySQL syntax error exception report an error
- [Solved] Running in 64 bit mode with the 32 bit Oracle client installed
- ERROR 1261 (01000): Row 1 doesn‘t contain data for all columns
- Linux Error: [ERROR] –initialize specified but the data directory has files in it. Aborting.
- Elasticsearch imports MySQL data Error when executing the bin/logstash – f command
- ERROR 1265 (01000): Data truncated for column ‘ENABLED’ at row 7
- scm_prepare_database.sh CDH initial data script execute error