Hello. At the moment I am trying to create a new database over the existing one. I heard about the limitations of the XE version more than once, but still it was a sin not to try to create a new database under a different instance name (oracle_sid = ORCL) as a training. What I actually did. Then I decided to try to query the system database tables of the ORCL instance, but here’s the error that this table does not exist and I don’t understand why:
select * from DBA_TABLESPACES; select * from DBA_TABLESPACES * ERROR at line 1: ORA-00942: table or view does not exist So I thought that if you restart the Oracle service, which runs an instance of ORCL. I did, but the problem did not disappear. Therefore, then I tried to run a script that, as I understand it, creates all the standard system objects, tables, views, etc. It is called catproc.sql. I launched it. But some database objects were invalid for recording. Again, for some reason, some objects were created with errors. Therefore, in the hope that all objects will be overwritten, I decided to re-launch this script, but the following happened:
SQL> @C:\oraclexe\app\oracle\product\11.2.0\server\rdbms\admin\catproc.sql DOC>###################################################################### DOC>###################################################################### DOC> The following PL/SQL block will cause an ORA-20000 error and DOC> terminate the current SQLPLUS session if the user is not SYS. DOC> Disconnect and reconnect with AS SYSDBA. DOC>###################################################################### DOC>###################################################################### DOC># And I need, as it were, to remove everything that was created by the catproc.sql script, so that when it is restarted, it will overwrite all the system objects. How to do it ? And what should I do to ensure that all system objects, views, tables are recorded without errors? Please tell me, otherwise I don’t know where to dig.