Brbackup - ORA-01017








BR0051I BRBACKUP 7.40 (22)

BR0055I Start of database backup: betuhkhq.anf 2016-08-08 14:52:38

BR0484I BRBACKUP log file: /oracle/TST/sapbackup/betuhkhq.anf

BR0280I BRBACKUP time stamp: 2016-08-08 14:52:39

BR0301E SQL error -1017 at location BrDbConnect-3, SQL statement:

'CONNECT /'

ORA-01017: invalid username/password; logon denied

BR0310E Connect to database instance TST failed

BR0280I BRBACKUP time stamp: 2016-08-08 14:52:39

BR0301E SQL error -1017 at location BrDbConnect-3, SQL statement:

'CONNECT /'

ORA-01017: invalid username/password; logon denied

BR0310E Connect to database instance TST failed

ORA-00059: maximum number of DB_FILES exceeded



Problema
BR0280I BRSPACE time stamp: 2015-06-01 11:15:55
BR1088I Extending tablespace PSAPBTABI ...
BR0280I BRSPACE time stamp: 2015-06-01 11:16:34
BR0301E SQL error -59 at location BrSqlExecute-1, SQL statement:
'/* BRSPACE */ alter tablespace PSAPBTABI add datafile '/oracle/TST/sapdata4/btabi_28/btabi.data28' size 5000M autoextend on next 20M maxsize 6000M'
ORA-00059: maximum number of DB_FILES exceeded
BR1017E Execution of SQL statement '/* BRSPACE */ alter tablespace PSAPBTABI add datafile '/oracle/TST/sapdata4/btabi_28/btabi.data28' size 5000M autoextend on next 20M maxsize 6000M' failed

BR0280I BRSPACE time stamp: 2015-06-01 11:16:34
BR0669I Cannot continue due to previous warnings or errors - you can go back and repeat the last action
BR0671I Enter 'b[ack]' to go back, 's[top]' to abort:


Referencia

Solução
You do not need to recreate control file. See below:

SQL> sho user
SYS
SQL> select * from v$version;


BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production


SQL> sho parameter db_files

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_files integer 200
SQL> alter system set db_files = 512 scope = spfile;

SQL> shutdown immediate
SQL> startup
SQL> sho parameter db_files

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_files integer 512




BR0301E SQL error -14063 at location tab_onl_reorg-10


Problema

BR0301E SQL error -14063 at location tab_onl_reorg-10, SQL statement:
'ALTER TABLE "SAPR3"."CDCLS" ADD PRIMARY KEY ("MANDANT", "OBJECTCLAS", "OBJECTID", "CHANGENR", "PAGENO")'
ORA-14063: Unusable index exists on unique/primary constraint key
BR0280I BRSPACE time stamp: 2013-12-06 13.54.55
BR1106E Reorganization of table SAPR3.CDCLS failed


Solução
- Identificando o nome do index.
select index_name,index_type,status,table_owner from dba_indexes
where  table_name='RFBLG' and table_owner='SAPR3';


INDEX_NAME                     INDEX_TYPE                  STATUS
------------------------------ --------------------------- --------
TABLE_OWNER
------------------------------
SYS_IL0000437505C00008$$       LOB                         VALID
SAPR3

RFBLG~0                        NORMAL                      UNUSABLE
SAPR3


- Faça um rebuild no index com status UNUSABLE.

SQL> connect sapr3
Enter password:
Connected.
SQL> alter index SAPR3."RFBLG~0" rebuild online;

Index altered.


- Repita o comando da brspace para reorganização da tabela.

ORA-20002: Version of statistics table is too old

Problema 
BR0280I BRSPACE thread 2: time stamp: 2013-11-21 12.12.07
BR0301W SQL error -20002 in thread 2 at location tab_onl_reorg-12, SQL statement:
'BEGIN DBMS_STATS.EXPORT_TABLE_STATS (OWNNAME => '"SAPR3"', TABNAME => '"WWWDATA"', STATTAB => '"STATTAB"', STATID => '"20131121114343-81481"', CASCADE => TRUE, STATOWN => '"SYSTEM"'); END;'
ORA-20002: Version of statistics table SYSTEM.STATTAB is too old.  Please try upgrading it with dbms_stats.upgrade_stat_table
ORA-06512: at "SYS.DBMS_STATS", line 11229
ORA-06512: at "SYS.DBMS_STATS", line 12429
ORA-06512: at line 1

BR0280I BRSPACE thread 1: time stamp: 2013-11-21 12.12.11

Solução
- No sqlplus, execute:

exec DBMS_STATS.UPGRADE_STAT_TABLE('SYSTEM','STATTAB');

Exception CX_DBA_ADBC, CX_SQL_EXCEPTION - ORA-00942






Referencia

Transações Afetadas
- DB02
- ST04

Problema
ORA-00942: table or view does not exist

Exception CX_DBA_ADBC in function unit READ_TEXT_FILE line 12 ( function group S_ORA_COCKPIT_5 include  )
        Kernel Error ID:     
        WP ID:       2 
        WP PID:      13303910
        SYSID:       DEV
        SY-SUBRC:    0 
        SQL statement: SELECT line FROM sys.ext_tab_dbac_alert
        Database: DEFAULT
 caused by
 Exception CX_SQL_EXCEPTION in class CL_SQL_RESULT_SET 
        Kernel Error ID:     
        DB Error:           Yes
        SQL Code:           942 
        SQL Message:        ORA-00942: table or view does not exist
        DB Object Exists:  No
        Duplicated Key:     No
        Internal Error:     5 
        Invalid Cursor:     No
        Unknown Connection:        No
        Connection Closed:         No

  







Solução

- Crie o script sappost3.sql, copie e cole o script abaixo.
- Troque o SID TMP para o SID do seu sistema.
- Execute no sqlplus e verifique se o problema foi resolvido.

spool sappost3.log
connect / as sysdba
drop directory ext_dir_dbac_client;
create directory ext_dir_dbac_client as '/usr/sap/TMP/SYS/profile/oracle';

drop table ext_tab_dbac_tnsnames;
create table ext_tab_dbac_tnsnames
  (line varchar2(2000))
  ORGANIZATION EXTERNAL
  (type oracle_loader
  default directory ext_dir_dbac_client
    access parameters
      (RECORDS DELIMITED BY NEWLINE
      NOLOGFILE)
    location ('tnsnames.ora'));
drop table ext_tab_dbac_sqlnet;
create table ext_tab_dbac_sqlnet
  (line varchar2(2000))
  ORGANIZATION EXTERNAL
  (type oracle_loader
  default directory ext_dir_dbac_client
    access parameters
      (RECORDS DELIMITED BY NEWLINE
      NOLOGFILE)
    location ('sqlnet.ora'));
GRANT READ ON DIRECTORY ext_dir_dbac_client TO SAPR3 WITH GRANT OPTION;
GRANT WRITE ON DIRECTORY ext_dir_dbac_client TO SAPR3 WITH GRANT OPTION;
GRANT SELECT ON ext_tab_dbac_tnsnames TO SAPR3;
GRANT SELECT ON ext_tab_dbac_sqlnet TO SAPR3;
drop directory ext_dir_dbac_server;
create directory ext_dir_dbac_server as '/oracle/TMP/102_64/network/admin';


drop table ext_tab_dbac_listener;
create table ext_tab_dbac_listener
  (line varchar2(2000))
  ORGANIZATION EXTERNAL
  (type oracle_loader
  default directory ext_dir_dbac_server
    access parameters
      (RECORDS DELIMITED BY NEWLINE
      NOLOGFILE)
    location ('listener.ora'));
GRANT READ ON DIRECTORY ext_dir_dbac_server TO SAPR3 WITH GRANT OPTION;
GRANT WRITE ON DIRECTORY ext_dir_dbac_server TO SAPR3 WITH GRANT OPTION;
GRANT SELECT ON ext_tab_dbac_listener TO SAPR3;
drop directory ext_dir_dbac_alert;
create directory ext_dir_dbac_alert as '/oracle/TMP/saptrace/background';

drop table ext_tab_dbac_alert;
create table ext_tab_dbac_alert
  (line varchar2(2000))
  ORGANIZATION EXTERNAL
  (type oracle_loader
  default directory ext_dir_dbac_alert
    access parameters
      (RECORDS DELIMITED BY NEWLINE
      NOLOGFILE)
    location ('alert_TMP.log'));

GRANT READ ON DIRECTORY ext_dir_dbac_alert TO SAPR3 WITH GRANT OPTION;
GRANT WRITE ON DIRECTORY ext_dir_dbac_alert TO SAPR3 WITH GRANT OPTION;
GRANT SELECT ON ext_tab_dbac_alert TO SAPR3;
spool off

exit

Abraços

ORA-28000: the account is locked

Problema
You cannot log on to the Oracle database and the program returns the message:

ORA-28000: the account is locked


Erro ORA-03113


Problema
- Depois de um shutdown abort.

ORA-03113: end-of-file on communication channel
Process ID: 6750302
Session ID: 85 Serial number: 3