Quantcast
Channel: SCN : All Content - SAP on Oracle
Viewing all 2104 articles
Browse latest View live

Featured Content for SAP on Oracle

$
0
0

SAP on Oracle Development Update New!

Check our development update for what's up and coming for SAP on Oracle database - platform news, Oracle 11.2, RAC, ASM, Oracle Linux, BR*Tools....
Stay up-to-date by following us on Twitter.

 

Oracle Clusterware 11g Release 2 Integration with SAP NetWeaver Certified!

The integration of Oracle Clusterware 11g Release 2 running on the Solaris and Linux operating system with SAP NetWeaver 7.30 via the SAP integration scenario NW-HA-CLU 730 has been officially certified by SAP AG (certification reports 20284533 and 20284617). The integration is implemented with SAPCTL V7.
For more information, see SAP Note 1496927.

 

Oracle VM Certified by SAP

The latest release of Oracle's server virtualization solution Oracle VM 3.2.1 has now been certified by SAP for x86_64 platforms. SAP products can now be deployed in Oracle VM virtualized environments using Linux and Solaris guests. Oracle VM provides SAP customers with a fully supported and certified virtualization environment for the Oracle database.
For more information on Oracle VM, see SAP Note 1808268.

 

Oracle Database Appliance Now Certified by SAP

All SAP products based on SAP NetWeaver 7.x that are also certified for Oracle Database 11g Release 2 can now be used with the Oracle Database Appliance. Only the Oracle database can run on the Oracle Database Appliance. No SAP instance can be deployed on the Oracle Database Appliance. SAP instances have to run on different middle-tier machines of any hardware architecture and operating system.
For more information on the Oracle Database Appliance, see SAP Note 1760737 and the Oracle White Paper.

 

New Secure Connect Method 

There is now a new method for the connection between SAP processes and the Oracle database. Instead of storing the encrypted password in the database, it is stored in the file system. This means that the Oracle remote OPS$ connect, which has been used up till now, is no longer needed. For more information, see SAP Notes 1622837 and 1639578.

 

Secure storage is now supported in BR*Tools. For more information, see SAP Note 1764043.

SAP Library Docu for SAP on Oracle with BR*Tools

We now have a new updated version of the SAP Library documentation for SAP on Oracle, including BR*Tools.
For more information, see SAP Database Guide: Oracle. 18 Sep 2012

 

Oracle Linux 6 (including Unbreakable Enterprise Kernel Release 2) certified by SAP

Oracle Linux 6 is the newest Linux version of Oracle for your SAP infrastructure computing needs. Unbreakable Enterprise Kernel Release 2 is based on the mainline Linux kernel and boasts a wide range of new features and improvements relevant for enterprise workloads. It includes performance and scalability enhancements that enable Oracle to achieve excellent performance.
For more information, see SAP Note 1635808. May 16, 2012

 

SAP on Oracle Presentations

Here are some presentations from the recent conference of the German Oracle Users Group (DOAG): July 18, 2013New!

 

Recently Featured Content

Here you can find entries that were previously shown here but have since been removed to make way for new content.

ORA-00926: missing VALUES keyword

$
0
0

Hi,

 

can someone please help me out here...

 

I try to insert my Variable Definition into a table so with every run it gets stored...

 

I tried different ways of the SQL insert statement

 

sql('TARGET_TABLE', 'INSERT INTO TARGET_TABLE VALUES ({job_name()})'); - failed

 

sql('TARGET_TABLE', 'INSERT INTO TARGET_TABLE (jobname) VALUES ({job_name()})');  - failed

 

sql('TARGET_TABLE', 'INSERT INTO TARGET_TABLE (number) VALUES (1)');  - failed

 

I keep getting the same error message again and again ... I checked the documentation but its the same there as I did tried several times.. also inputs from other reports mentioned I tried too...

 

Component Version of Designer ist 12.2.2

 

Thanks for your help,


BR

Roland

BRConnect reports BRTools is an unknown program

$
0
0

Greetings,

 

I am having a curious problem on two of five systems.  We are using Netbackup to execute our nightly backups which in turn calls BRBackup and BRArchive.  As far as we can tell, the backups are working well with no problems save for one warning message which only appears on our SolMan system and our Development system.

 

BR0280I BRBACKUP time stamp: 2008-08-12 20.19.51                                

BR0232I 113 of 113 files saved by backup utility                                

BR0230I Backup utility called successfully                                      

 

BR0278I Command output of 'brconnect':                                          

'brtools' is not recognized as an internal or external command,                 

operable program or batch file.                                                 

BR0074W BRCONNECT call failed                                                   

 

BR0280I BRBACKUP time stamp: 2008-08-12 20.19.55                                

BR0317I 'Alter database end backup' successful                                  

BR0280I BRBACKUP time stamp: 2008-08-12 20.19.55                                

BR0340I Switching to next online redo log file for database instance DV1 ...    

BR0321I Switch to next online redo log file for database instance DV1 successful

 

What makes this odd, is that BRTools is in the same directory as BRConnect (and all the other tools) so there should be no issue in finding it.  Also, this doesn't happen on our Sandbox server which is essentially a duplicate environment from Development.

 

Anyone run into this problem or have any thoughts where I might start looking for a solution?  I have found nothing useful on SAP Notes or on the web thus far.

 

Thanks in advance,

Conrad Thonger

TEXTENV_KEY_INVALID on SAP GUI logon at import phase 24

$
0
0

Dear all,

   

I have succesfully done the OS migration for all systems in the SAP landscape (DEV, QUA and PROD). Source system is HP-UX 11.31 , Oracle
11.2.0.3 and ECC 6.0. Target system is RedHat 6.4 , Oracle 11.2.0.3 and ECC 6.0.

For the first migration test I used the SWPM tool version SP02_1.

    

Due to some additional developments needed for the ongoing projects, I need to re-import the  DEV and QUA systems to include the latest SAP customizations.

I did export of DEV system and deleted the file system data
in the target for DEV :

  - /oracle/DEV/sapdata1-6

  - /oracle/DEV/mirrlogA,B

- /oracle/DEV/origlogA,B

- /oracle/DEV/saparch

 

And then started the import.

 

On the phase 24 Check DDIC password I've got the information message :

  " Test logon to SAP system DEV failed.

  SOLUTION: Make sure that the system is started, that the
user DDIC exists and that the password of user DDIC is correct.”

    

For the second migration test, now I used the SWPM tool version SP03_1.

 

I tried the SAP GUI and get the message “ Invalld key when accessing SAP text environment table TCP0C.”

In the dev_w* logs also there are error messages TEXTENV_KEY_INVALID  and A Invalld key when accessing SAP text environment table TCP0C

From the SAP note 375182 even it’s not appropriate for my case I tried :

 

  1. Stop SAP
    instance
  2. Edit the
    instance profile in /usr/sap/<SID>/SYS/profile by adding the following
    two lines:

       a) abap/set_text_env_at_new_mode = 0

       b) install/collate/active = 0

3. startsap

The error messages still appeared.

 

Do you know how to solve the error and to finish the installation on taget for import.

I have already prepared all LINUX locales for the previos OS migration ana I don't know what should be the problem now because the TCP0C missing entries in the first migration test I solved after starting the instance . Now I cannot connect with SAP GUI due to this error message.

 

Thank you in advance.

 

Best regards,

Ruzica

Trying to understand why brconnect is analyzing the same table partitions every day?

$
0
0

In checking my analyze log, I have noticed that brconnect is collecting stats on the same table partitions every day. 

I just want to know why this is happening as these partitions should not be changing.

I would also like to get an understanding of what the numbers represent at the end of the "BR0883I" lines below.
I am running the command: brconnect -u / -c -f stats -t all -p 4  which is running BRCONNECT 7.20 (25) on Oracle Enterprise Edition 11.2.0.3.0 

Analyze is not collecting stats on the rest of the partitions every day (this is the normal behaviour that I would expect).


from yesterday's log...
...
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2001_CAN1_1 (0/0:566794:147029)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2001_USA1_1 (0/0:566794:2506609)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2002_CAN1_1 (2/0:5566794:1761639)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2002_USA1_1 (1179/0:566794:13240581)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2003_CAN1_1 (4/0:566794:3945735)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2003_USA1_1 (1076/0:566794:21784099)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2004_CAN1_1 (0/0:566794:4598810)
BR0280I BRCONNECT thread 4 time stamp: 2013-08-26 05.45.57
BR0881I Collecting statistics for table partition SAPSR3.BSEG.BSEG_2001_CAN1_1 with method/sample E/P.200 ...
...

 

from today's log...
...
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2001_CAN1_1 (0/0:573144:146968)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2001_USA1_1 (0/0:573144:2498494)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2002_CAN1_1 (2/0:573144:1763049)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2002_USA1_1 (1179/0:573144:13177883)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2003_CAN1_1 (4/0:573144:3945735)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2003_USA1_1 (1076/0:573144:21882186)
BR0883I Table partition selected to collect statistics after check: SAPSR3.BSEG.BSEG_2004_CAN1_1 (0/0:573144:4642968)
BR0280I BRCONNECT thread 3 time stamp: 2013-08-27 05.46.01
BR0881I Collecting statistics for table partition SAPSR3.BSEG.BSEG_2001_CAN1_1 with method/sample E/P.200 ...
... 

 

Any help or knowledge would be greatly appreciated.

 

Thanks,
Paul

brbackup (util_vol_online) fails with BR0344E No tablespace has been put in backup status by backup utility

$
0
0

Here are the details of two different brbackup executions:

 

  1. Backup_mode=all; backup_type=online; backup_dev_type=util_vol_online (according to BC-BRI spec this has similar behavior to util_file_online)
  2. ‘brbackup’ successfully invoked the ‘backint’ program.
  3. ‘backint’ reported set of files to be backed up in .switch.lis file with “#BEGIN”, created .switch.sem file and waited for the semaphore file to be deleted
  4. ‘brbackup’ created .switch.log file with “#SUCCESS” and deleted .switch.sem file
  5. ‘backint’ then took a backup and reported the end of backup by reporting files in .switch.lis file with #END before file names.
  6. ‘brbackup’ again reported “#SUCCESS” in .switch.log file and deleted .switch.sem file
  7. ‘backint’ reported the successful backup for all files to output in format: “#SAVED  <BID> <filename>”
  8. ‘brbackup’ recognized the “#SAVED” messaged and reported the completion back
  9. ‘brbackup’ failed with error: BR0344E No tablespace has been put in backup status by backup utility

Question:

  1. According to spec, ‘brbackup’ takes care of putting DB/tablespace in backup status; but we don’t see any ‘Alter database…’ command executed with util_vol_online (or util_file_online) option. And the error at the end indicates that it expected backup utility to move tablespaces into backup status. What is expected from ‘backint’ after it reports back “#SAVED” messages?

 

  1. Backup_mode=all; backup_type=online; backup_dev_type=util_vol (according to BC-BRI spec this has similar behavior to util_file)
  2. ‘brbackup’ put the DB in backup mode: ‘Alter database begin backup’
  3. ‘brbackup’ successfully invoked the ‘backint’ program.
  4. ‘backint’ reported set of files to be backed up in .switch.lis file with “#BEGIN”, created .switch.sem file and waited for the semaphore file to be deleted
  5. ‘brbackup’ does not delete the .switch.sem file at all and ‘backint’ keeps on waiting (this continued for almost couple of hours after which I exited the ‘backint’ process)

Question:

  1. According to BC-BRI spec, ‘brbackup’ is actually putting tablespaces into backup status and once done with that, it deletes the .switch.sem file. How much time should it take usually? Spec says it’s around 20 mins but here it went on forever.
  2. Is there a requirement such that only specific user should execute ‘brbackup’? If yes, which user should that be?

 

(Above executions are done using BR*TOOLS 7.20 installed on RHEL6.3)

 

I have attached the log files for both of these operations here; can you please have a look and provide some help/insight into what exactly might be wrong here?

checkdb fail in DB13 : BR0301E SQL error -942 at location db_connect-5, SQL statement

$
0
0

Windows Server 2008

Oracle 10.2.0.4

Netweaver 7.0 EHP1

 

Hi,

 

I got the following error when I run checkdb on DB13  in an environment PID :

 

BR0801I BRCONNECT 7.00 (40)

BR0805I Start of BRCONNECT processing: celyvkqi.chk 2013-08-28 11.59.04

BR0484I BRCONNECT log file: E:\oracle\PID\sapcheck\celyvkqi.chk

BR0280I BRCONNECT time stamp: 2013-08-28 11.59.17

BR0301E SQL error -942 at location db_connect-5, SQL statement:

'SELECT NAME FROM V$DATABASE WHERE ROWNUM = 1'

ORA-00942: table or view does not exist

BR0310E Connect to database instance PID failed

BR0280I BRCONNECT time stamp: 2013-08-28 11.59.17

BR0301W SQL error -942 at location brc_dblog_open-1, SQL statement:

'INSERT INTO SAP_SDBAH (BEG, FUNCT, SYSID, OBJ, RC, ENDE, ACTID, LINE) VALUES ('20130828115904', 'chk', 'PID', 'DATABASE', '9999', ' ', 'celyvkqi', '7.00 (40) JID=CHECK20130828115858')'

ORA-00942: table or view does not exist

BR0324W Insertion of database log header failed

 

BR0806I End of BRCONNECT processing: celyvkqi.chk 2013-08-28 11.59.17

BR0280I BRCONNECT time stamp: 2013-08-28 11.59.17

BR0804I BRCONNECT terminated with errors

 

I checked initPID.sap, initPID.ora, sapnotes 400241, 562863, 662644.

I performed the General checks  in note 400241, successfully.

I have another environment with the same settings and checkdb is running successfully.

 

I thought I'd run sapdba_role again, but not sure if it's a good idea.

 

best regards

Brarchive fails with ORA-01031: insufficient privileges

$
0
0

Hi Gurus,

 

I have a system on which brarchive is failing with the message

 

BR0301E SQL error -1031 at location BrInitOraCreate-2, SQL statement:

'CONNECT / AT PROF_CONN IN SYSOPER MODE'

ORA-01031: insufficient privileges

BR0303E Determination of Oracle version failed

 

The oracle version is 11.2.0.2 and we are running on Linux 2.6.18

 

The SAP<SID> and ora<sid> are included in the dba and oper group .

 

i have recreated the sapconn role as per the relevant SAP notes and ran the sapdba_role.sql for oracle 11 but still the same issue .

the permissions for brarchive is set correctly .

 

I have checked the notes 480266 and 1028220 but those didnt help.

 

What am i missing here ?

 

sqlplus "/nolog"

SQL*Plus: Release 11.2.0.2.0 Production on Thu Aug 29 21:50:46 2013

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

SQL> connect as sysoper
Enter user-name: sap<sid>
Enter password:
ERROR:
ORA-01031: insufficient privileges


Activating default index on table VBFA

$
0
0

Hi,

 

Currently there is an index on table VBFA

But it is not active. See the attached screenshot

"Index does not exist in database system ORACLE"

 

The index is on these fields - MANDT,VBELN,POSNN

 

How to activate standard this index?

 

Can we simply activate this standard index from the toolbar.

(If so , any special thing needs to be allows? ...either in SCC4 or SE06 etc...)

or else

Is it required to drop the current standard index (M01) and recreate new custom z-index on the same fields.

(Once the standard index is there it not allows to create another index with the same fields.)

 

 

When trying to activate directly, it gives this error.... Any Idea !!!

  =========================================================================

  Activation of worklist (ZERANDIB / 29.07.2013 / 16:17:12 /)

  =========================================================================

 

  Technical log for mass activation

     See log zerandib20130729161711:ACT

 

  XINX VBFA-M01activated

  Check index VBFA-M01(zerandib/29.07.13/16:17)

  Index VBFA-M01is not in the customer namespace

  Index VBFA-M01is consistent

 

  =========================================================================

  End of activation of worklist

  =========================================================================

 

 

 

Looking forward for you, response...

 

 

regards,

zerandib

How to Unlock SAPSR3/SAPR3 user.

$
0
0

Note: Whenever the SAPR3/SAPSR3 user gets locked, the following ABAP dumps occurs in SAP System.

 

1.jpg

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Steps to Unlock SAPSR3/SAPR3user in database level (Oracle).

 

  

     Login to database using sqlplus / as sysdba

 

    Execute the query   select username, account_status from dba_users;

2.jpg

    Here the status of the user SAPSR3 is "Locked".

    To Unlock the user, exeute the query   alter user SAPSR3 account unlock;

3.jpg

6.jpg

    The User altered.

 

    Now execute the query   select username, account_status from dba_users;

4.jpg

    The Account_Status of user SAPSR3 has been altered (open).

 

    Hence the user SAPSR3 has been unlocked.

 

Note: Make sure that while login into Oracle DB, the  SQLNET.AUTHENTICATION_SERVICES = (NTS)  is not quoted (#) in sqlnet.ora file.

           If it is quoted (#) you are not authorized to log in as sysdba.

5.jpg

     Sqlnet.ora file is available in the location ORACLE _HOME \NETWORK\ADMIN.

==================================================================

IHRDBMS: Undefined variable.

$
0
0

Hi,

 

1) I am upgrading oracle from 10.2.0.4 to 11.2.0.3 installed successfully.

When trying to update SAP Bundle patch with command below:

/bin/sh $ORACLE_HOME/MOPatch/mopatch.sh \ -v -s SAP_112036_201306_AIX.zip its showing the error as below:

touch: ./mopatch-27592-8847370 cannot create

Invalid or inaccessible patch base directory "." specified.

Usage: mopatch [-hvdin] [-c cleanup-freq] [-f conflict-rules]

[-o opatch-param] [-j jre] [-p inv-ptr-loc]

[-m make-utility] [-z unzip-utility] [-C creds]

[-s patch-source-path] [patch-base]

 

 

2) When checked the MOpatch version with command : $ORACLE_HOME/MOPatch/mopatch.sh -h

Output of last 3 three lines: This utility requires environment variable ORACLE_HOME to be set.

MOPatch - Install Multiple Oracle Patches in One Run - 2.1.12.

Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.

 

 

But as i have seen envinorment variable is properly set as below:

echo $ORACLE_HOME

output: /oracle/SID/11203

 

 

3) As per the read me file when i try to execute below command:

unzip -qd $IHRDBMS/sapbundle SAP_112036_201306_AIX.zip 'SBP_112036_201306/OPatch/*'

Output:  IHRDBMS: Undefined variable.

 

 

But IHRDBMS menas oracle home directory.

My oracle Home directory : /oracle/SID/11203 as it showing fine with command "echo #ORACLE_HOME".

 

 

Please suggest..where i am going wrong...

 

 

Waiting for the reply...

 

 

Best Regards

Kumar

Creating SQL traces directly on the Oracle level

$
0
0

Hello All,

 

I am here to share some scripts that might be useful for some situations. For creating regular SQL trace on Oracle generation we usually have transaction ST05. In case it is unavailable there, is an option to create it directly on sqlplus. To make it easier in case of need, here are the scripts to be used for that.

First to do is to identify which is the session that needs to be traced. This code bellow will create the command for enabling the SQL trace for all sessions of a specific user on the database. Since SAP uses only one user account on the database level it may be necessary to check what is the correct SID that we are investigating.

 

select 'EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> '|| sid || ', serial# =>' || serial# || ', sql_trace=>TRUE);'

from v$session where username = upper('&usr')

/

 

Sample output:

 

Enter value for usr: SAPSR3

old   2: from v$session where username = upper('&usr')

new   2: from v$session where username = upper('SAPSR3')

 

'EXECDBMS_SYSTEM.SET_SQL_TRACE_IN_SESSION(SID=>'||SID||',SERIAL#=>'||SERIAL#||',SQL_TRACE=>TRUE);'

------------------------------------------------------------------------------------------------EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 17, serial# =>31, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 28, serial# =>15, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 29, serial# =>27, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 30, serial# =>13, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 33, serial# =>7, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 34, serial# =>9, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 35, serial# =>23, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 36, serial# =>9, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 37, serial# =>9, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 38, serial# =>7, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 39, serial# =>43, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 40, serial# =>9, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 45, serial# =>19, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 46, serial# =>3, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 47, serial# =>23, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 48, serial# =>11, sql_trace=>TRUE);

EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 49, serial# =>5, sql_trace=>TRUE);

 

For identifying the correct session, the following script may be helpful:

 

  select sid

       , serial#

       , username

       , osuser

       , machine appserver

       , module

       , status

    from v$session

where username = upper('&user')

order by status

       , username

/

 

This can be helpful in case you know all the sessions from the same application server are the ones to be traced, so you can enable all SIDs from this specific host. When prompted type in the user id for the SAP schema on the database.

After that, you can execute the command lines generated on the first query for the desired SIDs.

 

SQL> EXEC DBMS_SYSTEM.set_sql_trace_in_session(sid=> 40, serial# =>9, sql_trace=>TRUE);

 

PL/SQL procedure successfully completed.

 

Once the session completes the action you need to check the trace, you can disable it with the code bellow:

 

set serveroutput on

set verify off

declare

  cursor c_1 is

    select  a.spid, b.sid, b.serial#

         from v$process a, v$session b

     where a.addr   = b.paddr

       and b.username = '&usr';

     

  crow c_1%rowtype;

 

  dbname varchar2(20);

 

begin

 

  select instance_name

    into dbname

       from v$instance;

 

  open c_1;

 

  loop

  

       fetch c_1 into crow;

     

       exit when c_1%notfound;

     

       dbms_output.put_line('exec dbms_system.set_sql_trace_in_session(sid=> '|| crow.sid || ', serial# =>' || crow.serial# || ',sql_trace=>FALSE);');

       dbms_output.put_line('tkprof ' || dbname || '_ora_' || crow.spid || '.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela');

       dbms_output.put_line('--');

 

  end loop;

end;

/

set verify on

 

The output will show all sessions for the desired user as well (on this example I used SAPSR3), as bellow:

 

Enter value for usr: SAPSR3

exec dbms_system.set_sql_trace_in_session(sid=> 38, serial# =>7,sql_trace=>FALSE);

tkprof ISC_ora_5686.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 34, serial# =>9,sql_trace=>FALSE);

tkprof ISC_ora_5684.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 36, serial# =>9,sql_trace=>FALSE);

tkprof ISC_ora_5677.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 39, serial# =>43,sql_trace=>FALSE);

tkprof ISC_ora_5688.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 37, serial# =>9,sql_trace=>FALSE);

tkprof ISC_ora_5690.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 46, serial# =>3,sql_trace=>FALSE);

tkprof ISC_ora_5694.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 28, serial# =>15,sql_trace=>FALSE);

tkprof ISC_ora_5692.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 40, serial# =>9,sql_trace=>FALSE);

tkprof ISC_ora_5700.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 29, serial# =>27,sql_trace=>FALSE);

tkprof ISC_ora_5696.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 33, serial# =>7,sql_trace=>FALSE);

tkprof ISC_ora_5698.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 17, serial# =>31,sql_trace=>FALSE);

tkprof ISC_ora_5702.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 48, serial# =>11,sql_trace=>FALSE);

tkprof ISC_ora_5704.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 49, serial# =>5,sql_trace=>FALSE);

tkprof ISC_ora_5706.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 47, serial# =>23,sql_trace=>FALSE);

tkprof ISC_ora_5721.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 45, serial# =>19,sql_trace=>FALSE);

tkprof ISC_ora_5717.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 35, serial# =>23,sql_trace=>FALSE);

tkprof ISC_ora_5725.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

exec dbms_system.set_sql_trace_in_session(sid=> 30, serial# =>13,sql_trace=>FALSE);

tkprof ISC_ora_5714.trc tkprof.out explain=sys/<password> table=sys.plan_table sort=exeela

--

 

PL/SQL procedure successfully completed.

 

Make sure to select the correct line for the SID you want. The line that starts with “exec” should be used on sqlplus itself, while the tkprof line should be used on the OS level, in the user_dump_dest directory (usually /oracle/<SID>/saptrace/diag/rdbms/<sid>/<SID>/trace). Tkprof is an Oracle tool that creates a more user friendly output for the SQL trace. Make sure you replace the "<password>" with the actual password for the SYS user. You may need to request the customer to that. Here is an excerpt from one I have created on a test system:

 

TKPROF: Release 11.2.0.3.0 - Development on Thu Jan 31 11:42:17 2013

 

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

 

Trace file: ISC_ora_5994.trc

Sort options: exeela

********************************************************************************

count    = number of times OCI procedure was executed

cpu      = cpu time in seconds executing

elapsed  = elapsed time in seconds executing

disk     = number of physical reads of buffers from disk

query    = number of buffers gotten for consistent read

current  = number of buffers gotten in current mode (usually for update)

rows     = number of rows processed by the fetch or execute call

********************************************************************************

 

Error in CREATE TABLE of EXPLAIN PLAN table: sys.plan_table

ORA-01031: insufficient privileges

 

EXPLAIN PLAN option disabled.

********************************************************************************

 

SQL ID: 7ng34ruy5awxq Plan Hash: 3992920156

 

select i.obj#,i.ts#,i.file#,i.block#,i.intcols,i.type#,i.flags,i.property,

  i.pctfree$,i.initrans,i.maxtrans,i.blevel,i.leafcnt,i.distkey,i.lblkkey,

  i.dblkkey,i.clufac,i.cols,i.analyzetime,i.samplesize,i.dataobj#,

  nvl(i.degree,1),nvl(i.instances,1),i.rowcnt,mod(i.pctthres$,256),

  i.indmethod#,i.trunccnt,nvl(c.unicols,0),nvl(c.deferrable#+c.valid#,0),

  nvl(i.spare1,i.intcols),i.spare4,i.spare2,i.spare6,decode(i.pctthres$,null,

  null,mod(trunc(i.pctthres$/256),256)),ist.cachedblk,ist.cachehit,

  ist.logicalread

from

ind$ i, ind_stats$ ist, (select enabled, min(cols) unicols,

  min(to_number(bitand(defer,1))) deferrable#,min(to_number(bitand(defer,4)))

  valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where

  i.obj#=c.enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj#

 

call     count       cpu    elapsed       disk      query    current        rows

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        1      0.00       0.00          0          0          0           0

Execute      1      0.00       0.00          0          0          0           0

Fetch        2      0.00       0.02          1          7          0           1

------- ------  -------- ---------- ---------- ---------- ----------  ----------

total        4      0.00       0.03          1          7          0           1

 

Misses in library cache during parse: 1

Misses in library cache during execute: 1

Optimizer mode: CHOOSE

Parsing user id: SYS   (recursive depth: 1)

Number of plan statistics captured: 1

 

Rows (1st) Rows (avg) Rows (max)  Row Source Operation

---------- ---------- ----------  ---------------------------------------------------

         1          1          1 SORT ORDER BY (cr=7 pr=1 pw=0 time=25849 us cost=3 size=187 card=1)

         1          1          1   HASH JOIN OUTER (cr=7 pr=1 pw=0 time=25800 us cost=2 size=187 card=1)

         1          1          1    NESTED LOOPS OUTER (cr=4 pr=0 pw=0 time=86 us cost=0 size=144 card=1)

         1          1          1     TABLE ACCESS CLUSTER IND$ (cr=3 pr=0 pw=0 time=53 us cost=0 size=92 card=1)

         1          1          1    NESTED LOOPS OUTER (cr=4 pr=0 pw=0 time=86 us cost=0 size=144 card=1)

         1          1          1     TABLE ACCESS CLUSTER IND$ (cr=3 pr=0 pw=0 time=53 us cost=0 size=92 card=1)

         1          1          1      INDEX UNIQUE SCAN I_OBJ# (cr=2 pr=0 pw=0 time=25 us cost=0 size=0 card=1)(object id 3)

         0          0          0     TABLE ACCESS BY INDEX ROWID IND_STATS$ (cr=1 pr=0 pw=0 time=28 us cost=0 size=52 card=1)

         0          0          0      INDEX UNIQUE SCAN I_IND_STATS$_OBJ# (cr=1 pr=0 pw=0 time=27 us cost=0 size=0 card=1)(object id 433)

         1          1          1    VIEW  (cr=3 pr=1 pw=0 time=25380 us cost=2 size=43 card=1)

         1          1          1     SORT GROUP BY (cr=3 pr=1 pw=0 time=25369 us cost=1 size=15 card=1)

         1          1          1      TABLE ACCESS BY INDEX ROWID CDEF$ (cr=3 pr=1 pw=0 time=25260 us cost=0 size=15 card=1)

        18         18         18       INDEX RANGE SCAN I_CDEF2 (cr=2 pr=0 pw=0 time=168 us cost=0 size=0 card=8)(object id 54)

 

********************************************************************************

 

Here I listed only one SQL statement, but the report will actually contain this output for all statements executed while the trace was turned on.

 

Best regards,

Thiago

User creation error in "Operating System Users and Groups"

$
0
0

Hello, experts.

 

Now, I'm doing systemcopy of distributed system with R3load. The DB Instance is Oracle Exadata.

When I execute "Operating System Users and Groups" under the "Additional Preparations Options", an error occur.

And in the "Create users for SAP system" phase, sapinst is disconnected suddenly.

 

Could you help me to solve this?

 

Error message in my console

terminate called after throwing an instance of 'ESyAccountSystemCallFailedImpl_<ESyAccountSystemCallFailed>'

  1. iauxsysex.c:365: child /u01/app/instlog/20130903_3/sapinst_exe.32131.1378186356/sapinst (pid 32143) has crashed. Executable directory is /u01/app/instlog/20130903_3/sapinst_exe.32131.1378186356. Contact Support.
  2. iaextract.c:1094: child has signaled an exec error (-134). Keeping directory /u01/app/instlog/20130903_3/sapinst_exe.32131.1378186356

--------------------------------

Sep 3, 2013 2:37:17 PM [Info]: Stopping service "SAPinstService" ...

Sep 3, 2013 2:37:17 PM [Info]: Service "SAPinstService" stopped.

Sep 3, 2013 2:37:17 PM [Info]: Services stopped.

Sep 3, 2013 2:37:17 PM [Info]: Server shutdown by SAPinstService

 

=======

 

I also tried to execute DB Instance Installation.

However, a similar error occurred. In this time the message below I can find insapinst_dev_user_create.log.

 

sapinst_dev_user_create.log

…………………………

At line 2362 file syuxcuser.cpp

Call stack:

  1. iaxxbprocess.cpp: 36: CIaOsProcess::CEIdJanitor::~CEIdJanitor()
  2. syuxccuren.cpp: 233: CSyCurrentProcessEnvironmentImpl::setEffectiveUser(PSyUserInt, const iastring&)
  3. syxxbuser.cpp: 130: *** syslib entry point CSyUser::getPrimaryGroup(void) const ***
  4. syuxcuser.cpp: 625: PSyGroupImpl CSyUserImpl::getPrimaryGroup()const
  5. syuxcuser.cpp: 2317: CSyUserImpl_getOsInfos(iastring sName, iastring sID, tSyUserInfo& msUserinfo)

 

Return value of function getpwnam(root) is NULL.

Failed action:  with parameters

Error number 207 error type SPECIFIC_CODE

 

 

INFO       2013-09-02 19:43:40.455 [syuxccuren.cpp:285]

           CSyCurrentProcessEnvironmentImpl::setEffectiveGroup(PSyGroupInt)

           lib=syslib module=syslib

Effective group id set to 2005.

 

ERROR      2013-09-02 19:43:40.456 [syuxcuser.cpp:2360]

           CSyUserImpl_getOsInfos(iastring sName, iastring sID, tSyUserInfo& msUserinfo)

           lib=syslib module=syslib

FSH-00006  Return value of function getpwnam(root) is NULL.

 

TRACE      2013-09-02 19:43:40.456 [syuxcuser.cpp:231]

           CSyUserImpl_getOsInfos(iastring sName, iastring sID, tSyUserInfo& msUserinfo)

           lib=syslib module=syslib

Exception thrown near line 2362 in file syuxcuser.cpp

Stack trace:

  1. syuxccuren.cpp: 377: CSyCurrentProcessEnvironmentImpl::set(PSyProcessEnvironmentInt)
  2. syuxccuren.cpp: 233: CSyCurrentProcessEnvironmentImpl::setEffectiveUser(PSyUserInt, const iastring&)
  3. syxxbuser.cpp: 130: *** syslib entry point CSyUser::getPrimaryGroup(void) const ***
  4. syuxcuser.cpp: 625: PSyGroupImpl CSyUserImpl::getPrimaryGroup()const
  5. syuxcuser.cpp: 2317: CSyUserImpl_getOsInfos(iastring sName, iastring sID, tSyUserInfo& msUserinfo)

 

 

At line 2362 file syuxcuser.cpp

Call stack:

  1. syuxccuren.cpp: 377: CSyCurrentProcessEnvironmentImpl::set(PSyProcessEnvironmentInt)
  2. syuxccuren.cpp: 233: CSyCurrentProcessEnvironmentImpl::setEffectiveUser(PSyUserInt, const iastring&)
  3. syxxbuser.cpp: 130: *** syslib entry point CSyUser::getPrimaryGroup(void) const ***
  4. syuxcuser.cpp: 625: PSyGroupImpl CSyUserImpl::getPrimaryGroup()const
  5. syuxcuser.cpp: 2317: CSyUserImpl_getOsInfos(iastring sName, iastring sID, tSyUserInfo& msUserinfo)

 

Return value of function getpwnam(root) is NULL.

Failed action:  with parameters

Error number 207 error type SPECIFIC_CODE

…………………………

 

Regards,

Naomi Yamane

SAP workload monitor is not showing for particular date in Total Option

$
0
0

Hi,

In t. code ST03N (Work Load Monitor) data is not showing in option total for particular date but it is showing in all the instances.

 

Please support

 

 

 

 

Regards

Ganesh Tiwari

Table: SAPR3.RFCKEYSS # Table has no index

$
0
0

Hi,

 

From past few months i am observing few of the issues in DBcheck.one of them is "Table: SAPR3.RFCKEYSS # Table has no index".

i tried to see this table in SE11,but its giving the message table does not exist check name.if i check the same table in SE14 its giving the message "Not Active".

I checked this table at oracle level, its existing,but its not giving me an option in SE14 to activate and adjust database.how can i resolve this issue.

 

i am also attaching the log file for your reference.

 

Regards,

Satheesh Kumar N


Value: 11.2.0 ( 10.2.0) # Database compatibility mode

$
0
0

Dear SAP friends,

 

We have upgraded oracle 10.2.0.4 to 11.2.0.2  in our development system.

It was completed succesfully.

but if i checked in DB16 ,i am getting the following message.

 

Value: 11.2.0 (<> 10.2.0) # Database compatibility mode

Corrective Action   Change the Oracle parameter

 

I have checked one parameter in initSID.ORA file regarding compatible.

*.compatible='11.2.0'

I suppose the value of this is correct according database version.

Please guide me.

 

Thanks & Regards

  Kumar.

Oracle parameter: processes

$
0
0

Hi Guys,

 

There is a oracle parameter : processes and refer the sapnote : 1431798, the following is the suggested formula:

 

 

#ABAP
work processes * 2 +
#J2EE
server processes *
<max-connections>
+
PARALLEL_MAX_SERVERS
+ 40

 

If I have a total of 17 ABAP processes..

May I know where to check the J2EE server processes and also the max-connections ?

 

I tried the following with value I 'assumed' :

ABAP processes = 17

J2EE processes = I have only one server0, so is 1.

max-connections = as per what I saw in jdbc connection in visual administrator, it is 100.

PARALLEL_MAX_SERVERS = 40

 

So the total processes for this oracle parameter will be (17*2)+(1*100)+40+40 = 214.

 

Am I in the correct track ?

 

 

Best Regards,

Ken

RA-00304: requested INSTANCE_NUMBER is busy in DB Instance Installation

$
0
0

Hi,experts.

 

In "Perfom ORA Post load activities" phase in DB Instance Installation of systemcopy an error occured.

 

In accordance with this wiki below, I changed initSID.ora and then restarted oracle.

However I can't solve it.

http://wiki.sdn.sap.com/wiki/display/Basis/Problems+Installing+or+System+Copy+Import+to+Oracle+11g

 

someone please help me to solve it?


■Error message in sapinstgui
RA-00304: requested INSTANCE_NUMBER is busy Disconnected .
SOLUTION: For more information, see ora_sql_results.log and the Oracle documentation.


■ora_sql_results.log
Connected to an idle instance.

ORA-00304: requested INSTANCE_NUMBER is busy
Disconnected

SAPINST: End of output of SQL executing program /oracle/'SID'/112/bin/sqlplus.

SAPINST found errors.
SAPINST The current process environment may be found in sapinst_ora_environment.log.


■sapinst_ora_environment.log
2013-09-04, 18:31:16 SAPINST Current process environment:
G_BROKEN_FILENAMES=1
HISTSIZE=1000
HOME=/root
HOSTNAME='hostname'
INPUTRC=/etc/inputrc

restore from offline backup , no backup logs

$
0
0

Hi Experts

 

I am restoring a database from an off line backup from tape , backup was taken three months back , backup utility is Commvault which uses brtools with the client. currently I donot see the corresponding  backup log ( beklodrv.aff) file ( 3 months old ) , according to the SAP note 1003028 which I am following needs the backup log file of the backup to start the  restore command.

 

Is there anyway I can get the restore started without the backup log file with brrestore/ recover command ? I have a successfull backup in tape, not sure if the log file is there and donot know how to retrive the tape if it is there.

 

How the log file has gone , how can keep the files in /oracle/SID/sapbackup for longer time ?

 

Thanks

 

Al Mamun

brspace -f tbreorg -t "*" -a cleanup command

$
0
0

Hi All

 

we have  around 124GB for stuck #$ table after online reorg fail,can you please update me how safe is command brspace -f tbreorg -t "*" -a cleanup  command in running system?, and its impact on EDI40 table?

 

Thanks

Dinesh

Viewing all 2104 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>