cancel
Showing results for 
Search instead for 
Did you mean: 

Check database with error "ORA-01031: insufficient privileges"

Former Member

Dear Gurus,

I ran "Check database" in DB13 but I got error "ORA-01031: insufficient privileges"

BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00

BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:

'PREPARE stmt_5 STATEMENT FROM'

'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'

ORA-01031: insufficient privileges

BR0806I End of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.37.00

Note I try to execute sapdba_role.sql (with command "sqlplus /nolog @sapdba_role.sql SR3") as Note 134592 both login 'oradev' and 'devadm' but it seem to do nothing (not found sapdba_role.log)

Please advice.

Best regards,

Choosak B.

Ps.

detailed log of /oracle/DEV/sapcheck/cecxekdh.chk

BR0801I BRCONNECT 7.00 (40)

BR0477I Oracle pfile /oracle/DEV/102_64/dbs/initDEV.ora created from spfile /oracle/DEV/102_64/dbs/spfileDEV.ora

BR0805I Start of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.30.53

BR0484I BRCONNECT log file: /oracle/DEV/sapcheck/cecxekdh.chk

BR0101I Parameters

Name Value

oracle_sid DEV

oracle_home /oracle/DEV/102_64

oracle_profile /oracle/DEV/102_64/dbs/initDEV.ora

sapdata_home /oracle/DEV

sap_profile /oracle/DEV/102_64/dbs/initDEV.sap

system_info devadm/oradev sapdev SunOS 5.10 Generic_142900-03 sun4v

oracle_info DEV 10.2.0.4.0 8192 7465 94896497 sapdev UTF8 UTF8

sap_info 701 SAPSR3 0002LK0003DEV0011N11827599290015Maintenance_ORA

make_info sun_64 OCI_102 Feb 21 2009

command_line brconnect -u / -jid CHECK20100331123000 -c -f check

alert_log /oracle/DEV/saptrace/background/alert_DEV.log

BR0280I BRCONNECT time stamp: 2010-03-31 12.30.56

BR0813I Schema owners found in database DEV:

DBSNMP, DIP, OPS$DEVADM, OPS$ORADEV, OPS$SAPSERVICEDEV, ORACLE_OCM, OUTLN, SAPSR3*, SYS, SYSTEM,

TSMSYS

BR0118I Tablespaces and data files

Tablespace Status File Status Id. Size MaxSize IncrSize BlkSize Device Type Link

PSAPSR3 ONLINE+ /oracle/DEV/sapdata2/sr3_1/sr3.data1 ONLINE+ 4 2411732992 10485760000 20971520 8192 16777219 FILE NOLINK

...

...

...

SYSTEM ONLINE+ /oracle/DEV/sapdata1/system_1/system.data1 SYSTEM+ 1 1017126912 10485760000 20971520 8192 16777219 FILE NOLINK

BR0119I Redo log files

File Status Group Size Device Type Link

/oracle/DEV/origlogA/log_g11m1.dbf INUSE 1 52429312 16777218 FILE NOLINK

/oracle/DEV/mirrlogA/log_g11m2.dbf INUSE 1 52429312 16777218 FILE NOLINK

/oracle/DEV/origlogB/log_g12m1.dbf INUSE 2 52429312 16777218 FILE NOLINK

/oracle/DEV/mirrlogB/log_g12m2.dbf INUSE 2 52429312 16777218 FILE NOLINK

/oracle/DEV/origlogA/log_g13m1.dbf INUSE 3 52429312 16777218 FILE NOLINK

/oracle/DEV/mirrlogA/log_g13m2.dbf INUSE 3 52429312 16777218 FILE NOLINK

/oracle/DEV/origlogB/log_g14m1.dbf INUSE 4 52429312 16777218 FILE NOLINK

/oracle/DEV/mirrlogB/log_g14m2.dbf INUSE 4 52429312 16777218 FILE NOLINK

BR0120I Control files

File Size Device Type Link

/oracle/DEV/origlogA/cntrl/cntrlDEV.dbf 15024128 16777218 FILE NOLINK

/oracle/DEV/origlogB/cntrl/cntrlDEV.dbf 15024128 16777218 FILE NOLINK

/oracle/DEV/sapdata1/cntrl/cntrlDEV.dbf 15024128 16777219 FILE NOLINK

BR0982I Database disk volumes

Directory / Raw disk Device Total[KB] Free[KB] Used[%] MaxNeed[KB] MaxMiss[KB]

/oracle/DEV/102_64 16777218 480700086 404332206 15.89 0 0

/oracle/DEV 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/mirrlogA 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/mirrlogB 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/origlogA 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/origlogB 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/sapdata1 16777219 591212116 404332206 31.61 240019884 0

/oracle/DEV/sapdata2 16777219 591212116 404332206 31.61 240019884 0

/oracle/DEV/sapdata3 16777219 591212116 404332206 31.61 240019884 0

/oracle/DEV/sapdata4 16777219 591212116 404332206 31.61 240019884 0

/oracle/DEV/saparch 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/sapbackup 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/sapcheck 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/sapreorg 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/saptrace 16777218 480700086 404332206 15.89 0 0

/oracle/DEV/oraarch 16777218 480700086 404332206 15.89 0 0

BR0280I BRCONNECT time stamp: 2010-03-31 12.31.29

BR0814I Number of tables in schema of owner SAPSR3: 74582

BR0836I Number of info cube tables found for owner SAPSR3: 49

BR0814I Number of tables/partitions in schema of owner SYS: 625/189

BR0814I Number of tables/partitions in schema of owner SYSTEM: 134/27

BR0280I BRCONNECT time stamp: 2010-03-31 12.32.28

BR0815I Number of indexes in schema of owner SAPSR3: 89159

BR0815I Number of indexes/partitions in schema of owner SYS: 678/199

BR0815I Number of indexes/partitions in schema of owner SYSTEM: 175/32

BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00

BR0816I Number of segments in schema of owner DBSNMP: 25

BR0816I Number of segments in schema of owner OPS$DEVADM: 1

BR0816I Number of segments in schema of owner OUTLN: 9

BR0816I Number of segments/LOBs in schema of owner SAPSR3: 168369/2314

BR0816I Number of segments/LOBs in schema of owner SYS: 1831/87

BR0816I Number of segments/LOBs in schema of owner SYSTEM: 353/22

BR0816I Number of segments in schema of owner TSMSYS: 4

BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00

BR0961I Number of conditions found in DBCHECKORA: 118

BR0983I Tablespace fragmentation

Tablespace Files Tables Indexes Extents Total[KB] Used[%] Free[KB] FreeExt. MaxSize[KB] MaxAlloc[KB] Used[%] Free[KB] Largest[KB]

PSAPSR3 16 74248 88689 209864 54138880 94.51 2970752 240 163840000+ 109701120+ 31.23+ 112671872+ 9246720:7966720:7946240:7905280:7905280+

PSAPSR3701 14 0 0 0 54466560 0.00 54465664 20 143360000+ 88893440+ 0.00+ 143359104+ 9021440:8192000:8192000:8192000:8192000+

PSAPSR3701X 4 310 445 12190 68342784 94.20 3962240 7 68342784 0 94.20 3962240 1298432:1191936:979968:163776:163776

PSAPSR3USR 1 24 25 51 51200 6.50 47872 1 10240000+ 10188800+ 0.03+ 10236672+ 10188800+:47872:0:0:0

PSAPTEMP 1 0 0 0 1433600 0.00 1433600 0 10240000+ 8806400+ 0.00+ 10240000+ 8806400+:0:0:0:0

PSAPUNDO 1 0 0 0 7823360 0.00 7823296 406 10240000+ 2416640+ 0.00+ 10239936+ 2416640+:2041792:1814464:1433536:603072

SYSAUX 1 254 284 2059 307200 93.35 20416 16 10240000+ 9932800+ 2.80+ 9953216+ 9932800+:13248:3072:1024:640

SYSTEM 1 505 569 2926 993280 98.91 10816 2 10240000+ 9246720+ 9.59+ 9257536+ 9246720+:10176:640:0:0

Total: 39 75341 90012 227090 187556864 62.29 70734656 692 426742784 239185920 27.38 309920576 60157952:19463744:18936384:17695616:16864768

BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00

BR0301E SQL error -1031 at location BrDbdiffRead-1, SQL statement:

'PREPARE stmt_5 STATEMENT FROM'

'SELECT OBJNAME FROM "SAPSR3".DBDIFF WHERE DBSYS IN ('ORACLE', ' ') AND OBJTYPE = 'TABL' AND DIFFKIND IN ('02', '61', '99') ORDER BY OBJNAME'

ORA-01031: insufficient privileges

BR0806I End of BRCONNECT processing: cecxekdh.chk 2010-03-31 12.37.00

BR0280I BRCONNECT time stamp: 2010-03-31 12.37.00

BR0804I BRCONNECT terminated with errors

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi, are you see (download) the file sapdba_role.sql, give 777 and ownership for oradev user , relogin and locate to directory where this scripte are, and execute same comand, you will see log after ....

Regards.

Former Member
0 Kudos

Hi Sergo,

I ran 'chmod 777 sapdba_role.sql' and logout & login both <sid>adm and ora<sid>.

and ran 'sqlplus /nolog @sapdba_role.sql SR3' but it still can't see sapdba_role.log.

Any recommend?

Best regards,

Choosak B.

Former Member
0 Kudos

are you able to execute under oradev user -->

sqlplus /nolog

connect /as sysdba ?

Former Member
0 Kudos

Hi,

It solved after change permission of directory that sapdba_role.sql kept to oradev:dba after that it can write sapdba_role.log.

Thank you for your guideline.

Now, I can ran 'Check database' via DB13 without that error.

Best regards,

Choosak B.

Answers (0)