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

SAP Oracle Restore using Incremental Backup

$
0
0

                             SAP Oracle Restore using Incremental Backup (RMAN)



Summary:-

 

This document contains the steps that how to restore the SAP system using RMAN Incremental Backup. This Document give only the restore commands to execute at OS level. There are many pre-Steps and Post steps need to be done once the below method done.    This document expain how to configure RMAN backup and to run full backup & incremental backup to restore.

Application : SAP

OS level       : AIX

Database     : Oracle 11G

 

 

Author: Brindavan Mookaiah

 

Designation: SAP BASIS Consultant



Table of Content :-

 

1) To configure RMAN Backup

2) To Run Full backup

3) To Run Incremental Backup

4) Clean the filesystem

5) Restore the SAP system using incremental backup

 

 

Step:-

 

1)  To configure RMAN Backup.

 

stop the Database using the below commands

 

# sqlplus / as sysdba

 

SQL> shutdown immediade;

 

2) Go the directory /oracle/SID/11203/dbs and edit the the file called "initSID.sap"

 

3) Enter the following the entires

 

For Examples :

 

backup_mode = full

 

backup_type = online_cons

 

backup_dev_type = rman_util

 

compress = no

 

util_par_file = /oracle/WA3/102_64/dbs/initWA3.utl

 

rman_channels = 4

 

rman_filesperset = 4

 

rman_parms

= "ENV=(NSR_SERVER=host12, NSR_CLIENT=xxxx, NSR_DATA_VOLUME_POOL=yyyy, NSR_COMPRESSION=TRUE ,NSR_SAVESET_BROWSE=35 DAYS, NSR_SAVESET_RETENTION=35 DAYS)"

 

archive_function=save_delete

 

4) Save the file and start the Database

 

# sysdba/ as sysdba

 

SQL> startup

 

5) Schedule the full backup weekly once by using the following command "brbackup -c -u / -m full -t online -d rman_util -r initSID.utl"

 

6) Schedule the the incremental backup daily 0-4 by using the following command "brbbackup -c -u / -m incr -t online -d rman_util -r initSID.utl2"



Pre-steps for retoring the Database


Clean the filesystem like SAPDATA1*


7) Restore the DB control files saved with the Level 1 backup (This is the .inr file)

 

       "brrestore -b <.inr file>  -m 0 -d rman_util"


Once completed then have the control files in the following locations

/oracle//sapdata1/cntrl

/oracle//origlogA/cntrl

/oracle//origlogB/cntrl

 

Mount the Database

 

# sqlplus “/ as sysdba”

SQL> startup mount;

Exit

 

8)Start the restore of the data files

 

"brrestore -b <.fnr filename> -m all -d rman_util"

 

Check log file for successful completion

 

9)Apply incremental backup once the full backup completed

 

"brrestore -b <.inr filename> -m incr -d rman_util"

 

Check log file for successful completion.


Once the restore completed then retore orrach files with squence number


10) Execute the following command to start restore the archive logs.


" brrestore –c –a <log_nr1>-<log_nr2>=/oracle/<TSID>/oraarch"

 

Once the above steps completed then recover the database.

 

# sqlplus / as sysdba

 

SQL> recover database until cancel using backup controlfile --> To reover from the point of termination

 

Exit

 

SQL> shutdown immediate;

SQL> startup mount

SQL> alter database open resetlogs;

Exit

 

Once database is opened the start the SAP system

 

# startsap all


Note: If CI and DB in different host you may get error, you can check with command below


Login with SIDsadm at OS level and excute


# R3trans –d --> It’s should give "000" or else check the trans log and fix the issue.

 



 

 

 

 

 

 

 

 

 

 

 

 








Differences between BRBACKUP with "INC", and "FULL"

$
0
0

Hello,

 

What is the recommended backup type for >10 Tb Oracle Database on SAP ?

We take Full backup with brbackup but we would like to have Br Incremental backup.

Because Full backup long time.

What are the benefits and harm?

 

 

Best Regards

System Copy for ERP 6.0 EHP 6 No Unicode

$
0
0

Hello Guys.

 

I need to perform the system copy procedure with the SAP tools of my production system based ERP 6.0 EHP 6 No Unicode.

 

But I remember when i create the target system with the SWPM only accept Unicode Kernel when i go to install.

 

My question is: I can the system copy with SWPM for the system No Unicode for source and target system ?

 

My system is Windows 2008 R2 + Oracle 11g

 

Regards.

 

Desirée C.


DB13 Doesnt work after system refresh on SAP ECC 6.0 Netweaver 7.4

$
0
0

Hi Team

 

We have completed System refresh on Prod to QA in ECC 6.0 EHP7.0 .Everything works fine except DB13

01/23/201515:54:04Job started
01/23/201515:54:04Step 001 started (program RSDBAJOB, variant &0000000000147, user ID GOPALM)
01/23/201515:54:04Execute logical command BRCONNECT On host casandsaperp
01/23/201515:54:04Parameters: -jid CHECK20150123155404 -u // -c -f check
01/23/201515:54:05BR0801I BRCONNECT 7.40 (12)
01/23/201515:54:05BR0252E Function stat() failed for '/oracle/L8S/security/rsecssfs/data' at location BrFileStatGet-1
01/23/201515:54:05BR0253E errno 13: Permission denied
01/23/201515:54:05BR0273E Determination of file status for /oracle/L8S/security/rsecssfs/data failed
01/23/201515:54:05BR1529E Getting BR*Tools user name/password from secure storage failed
01/23/201515:54:05
01/23/201515:54:05BR0806I End of BRCONNECT processing: ceprxazl.log2015-01-23 15:54:05
01/23/201515:54:05BR0280I BRCONNECT time stamp: 2015-01-23 15:54:05
01/23/201515:54:05BR0804I BRCONNECT terminated with errors
01/23/201515:54:05External program terminated with exit code 3
01/23/201515:54:05BRCONNECT returned error status E
01/23/201515:54:05Job finished

Pls note that we have ABAP SSFS configured both for BRTOOLS and for DB Connect ,completely eliminated OPS$ CONNECT. SAP Works fine by  using SSFS.I am able to execute BRTOOLS using sidadm and orasid from OS but it doesnt work from DB13 at SAP

 

As per note 1764043 - Support for secure storage in BR*Tools the file system are as below

 

ls -al $SAPDATA_HOME/security/rsecssfs

drwx------  5 orasid   dba          512 Feb 19 10:52 .

drwx------  3 orasid   dba          512 Feb 19 10:50 ..

drwx------  2 orasid   dba          512 Feb 19 10:56 data

drwx------  2 orasid   dba          512 Feb 19 10:56 key


DB13 works the moment I change the file system permissions above but as per note ,only orasid should have access and not sid adm.

 

Pls advice on to solve it

 

Thanks

Gopal

Patching the oracle

$
0
0

Hello! I am trying to patch oracle 11.2.0.3.0 with opatch.

I downloaded 2 files - OPATCHP_5-20010497.ZIP and SAP11203P_1411-20009981.ZIP.

Also I unziped OPATCHP_5-20010497.ZIP into old 11203/OPatch.

What I should do with SAP11203P_1411-20009981.ZIP to install all patches from this archive instead of using

/opatch apply </OPatch/SBP_1120312_201411/19493736/13923374/> for each bugfix ? There is so many bugfixes:

19493736/    9458152/     9584028/     9656644/     MOPatch/     OPatch/      README.html*

 

and into 19493736/ :

13343438  13696216  13923374  14275605  14727310  16056266  16619892  16902043  17540582  18523757  18878603  19493736  README.html

SAP Table Index require for performance

$
0
0

Dear Team,

 

As per SAP Performance ,Our some Z report and Z t_code  is taking very long time .

As per our ABAP team suggest me that please do Indexing .

 

We recommend the customer to create an index on table MSEG with column  MANDT, EBELN  BWART, MATNR

 

As Basis Administrator  point of view , Please suggest to do Indexing .

SAP Table Index require for performance

$
0
0

Dear Team ,

 

As per our ABAP team ,do some indexing  on MSEG,BARA tables.

 

These table is very slow , Please suggest me on BASIS point of view.

 

Regards

DB 12 Overview of redo log files not yet backed up 133

$
0
0

Dear team,

                In DB 12 ,Be hand the overview of redo log files its Displaying message like redo log files not yet backedup 133. how to resolve this, what is mean by that message!!!


SAP heterogeneous environment DB13 RFC configuration

$
0
0


Hello,

 

I have installed SAP Central instace on Windows 2008 R2 and install Oracle database 11g on Oracle Database appliance with Oracle Linux operating system. Also installed standalone SAP Gateway in Database host.

 

SAP Application working fine except DB13 which has auto generated RFC connection.

 

RFC connection failed with following message.

Destination: SAPXPG_DBDEST_TLCINFODAC03 (Handle: 2, DtConId: BEC4A8E4C9ECF1F5B9EC005056B65D40, DtConCnt: 0, ConvId: ,)

EPP RootContextId: 005056B65D401EE4AA986BB76EF399EC, ConnectionId: 00000000000000000000000000000000, ConnectionCnt: 0

EPP TransactionId: BEC4A8E4C9ECF1F2B9EC005056B65D40

Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1730

CPIC-CALL: 'ThSAPOCMINIT' : cmRc=1 thRc=667

Program (exec) could not be started

DEST =SAPXPG_DBDEST_<DB-Host-Name>

HOST =172.xx.xx.xxx

PROG =sapxpg

 

Appreciate some one give idea where I missed the confoguration.

 

Thanks

Karu

Installing SAP ERP on Oracle Database

$
0
0

Hi,

I am a highly experienced Oracle professional but very new to SAP. I am hoping to learn SAP, particularly the SAP ERP business applications such as Financials, Procurement and Sales & Distribution.

 

So to start with, I was hoping to install an SAP ERP instance on an Oracle Enterprise Database 11g or 12c. And in relation to this I have a couple of questions. Please bear with me as I am very new to SAP and would highly appreciate if you could help. (Also please do not use SAP specific abbreviations since they would simply bounce off my head ).

 

1. Where do I download SAP ERP?  Do I need to be a customer to download and install for personal learning purposes?

 

2. I read it somewhere that the software can be downloaded from http://service.sap.com. If yes, then how to I get access to this website?

 

3. Is there a demonstration database that SAP provides for learning purposes (this way I don't have to worry about the functional setups)? If yes, where can I find the list of exact software to be downloaded, and the installation guide to install SAP ERP on Oracle Enterprise Database on a single node (that is both db tier and application tier on same machine)?

 

I guess these are the bare minimum questions to let my SAP learning gig going :-)

 

Thanks again for reading and looking forward to get some valuable suggestions and advice.

 

Regards

Kabeer Khan

Oracle Critical Patch Update Advisory - January 2015

ORA-01555 - causes and solutions

$
0
0

This document focuses on the solutions to "ORA-01555: snapshot too old". The main note 185822 - ora-1555 - cause and action described the 3 reasons for this error. I believe it nicely has described the technical background.
However this document summarizes that note and add some more practical steps to analyse and fix the error. The error is shown mostly in the alert.log or system logs.

1.PNG

In all the cases you must identify whether the ORA-1555 has occurred with an UNDO or a LOB segment.

You can find this by looking at the error message. If the "rollback segment number" is not specified exactly (ex. null or "???") then it is related to LOB segment and you can skip the below steps for UNDO. You also can investigate the SQL_ID.
I will create a detailed document for lobsegments soon. The following points are relevant for undo management WITHOUT lob.

 

1- Check the undo related parameters and make sure you are using Automatic Undo Management (AUM).

AUM is introduced as of 9i and since the latest supported Oracle release is 11g by this time then it is strongly recommended

that this method is adopted.
Open the database parameters from DBACOCKPIT transaction code:

a.png

If you are using System Managed Undo (SMU) change it to auto. A restart will be needed after the change. In Oracle Real Application Clusters (RAC) all the instances must have the value 'auto'.
But be careful the procedure is not so simple if you are migrating from rollback tablespace. Please find more information in note 600141 - Oracle9i: Automatic UNDO Management>> AUM - Migration procedure from MANUAL to AUTO Undo Management

 

2- The ORA-1555 errors might have happened because a query cannot access enough undo to build the before images. In that case check if the undo tablespace is large enough.

In the image above check undo_retention. That is the time in second for how long the before images should be kept. undo_retention can be set to the maximum run time of the longest query.

But be careful the system ignores the value set in the parameter UNDO_RETENTION for an undo tablespace without AUTOEXTEND. More information in note 1035137 - Oracle Database 10g: Automatic Undo Retention.

Open the space overview from DBACOCKPIT transaction code to find if the undo tablespace is autoextendable or not:
b.png

If AUTOEXTEND is set OFF for the undo tablespace then add a datafile to the tablespace. Use BRSPACE options for tablespace extension.

More information in http://scn.sap.com/docs/DOC-29484


3- There are cases when a specific query has been running for 2 or more days in that case the above steps might not be helpful, instead check the execution queries of the tables. Are there places for tuning the SQL statement with a new index or forcing a new execution plan?


4- Are the tables involved in the query very large? If yes, are there possibilities to delete older data? These must be answered from the application point of view.


5-Please note that under some circumstances there are some bugs which cause the ORA-1555.

Make sure you are on the latest patch level of the latest ORACLE release to prevent the already fixed bugs. Perform all the postinstallations of patch installation so that the bug fixes are counted.


6- If the ORA-1555 is occurring with a LOB segment then, the undo tablespace is NOT used for read consistency. Firstly you must check whether the before images is kept in the storage parameter PCTVERSION (used in manual undo management mode) or RETENTION (used in AUM). ONLY one method can be used. More information on 500340 - FAQ: LOBS
This query can be used to find which parameter is in use:
select PCTVERSION, RETENTION from dba_lobs where segment_name = '<lobsegment name>' or TABLE_NAME = '<TABLE_NAME>'

** PCTVERSION determines the percentage of the lobsegment assigned to handle the undo management.
** RETENTION determined the period of time lobsegment will keep the before images (not the fixed percentage of space in the logsegment)

I will create another document for this lob undo management soon.
Please as well have a look into this blog regarding lobsegments: http://scn.sap.com/community/oracle/blog/2010/01/25/oracle-lobs-and-undo-management--not-as-simple-as-i-thought

Oracle home switch and SBP -1

$
0
0

Hi,

 

SAP bundle patches are done every six months once. We have five production systems. To get a downtime for each system and the applying of SBP takes three hour per system. In the below approach i am dong all five systems in three hours time by installing a new oracle home and SBP on that and switching it during the downtime.Our system are running in 11g RAC with ASM.

 

Pre-requisties are below:

1. Create a new acfs file system using asmca

/oracle/SID/112_03

2. Install the binaries there in the above path

3.Once the Oracle Home 11.2.0.3 is installed apply the SBP patch

3.1- SBP steps:

setenv IHRDBMS /oracle/SID/112_03

setenv OHRDBMS /oracle/SID/112_03

unzip -qd $IHRDBMS/sapbundle SGR11203P_1408-20010084.ZIP 'SBP_1120311_201408/OPatch/*'

mv $IHRDBMS/OPatch $IHRDBMS/OPatch-pre-SBP_1120311_201408

mv $IHRDBMS/sapbundle/SBP_1120311_201408/OPatch $IHRDBMS/OPatch

unzip -qd $IHRDBMS/sapbundle SGR11203P_1408-20010084.ZIP 'SBP_1120311_201408/MOPatch/*'

test -d $IHRDBMS/MOPatch && mv $IHRDBMS/MOPatch $IHRDBMS/MOPatch-pre-SBP_1120311_201408

mv $IHRDBMS/sapbundle/SBP_1120311_201408/MOPatch $IHRDBMS/MOPatch

env ORACLE_HOME=$IHRDBMS $IHRDBMS/MOPatch/bpmig.sh -v verify

test -d GIMERGE11203P_1408-20010084 || unzip -qd GIMERGE11203P_1408-20010084 GIMERGE11203P_1408-20010084.ZIP

./GIMERGE11203P_1408-20010084/19060195/custom/server/19060195/custom/scripts/prepatch.sh -dbhome $IHRDBMS

env ORACLE_HOME=$IHRDBMS $IHRDBMS/MOPatch/mopatch.sh -v -s SGR11203P_1408-20010084.ZIP

test -d GIMERGE11203P_1408-20010084 || unzip -qd GIMERGE11203P_1408-20010084 GIMERGE11203P_1408-20010084.ZIP

./GIMERGE11203P_1408-20010084/19060195/custom/server/19060195/custom/scripts/postpatch.sh -dbhome $IHRDBMS

SBP is done in the new oracle home.

4.copy the file as follows from old home.

(cp -Rp /oracle/SID/oldhome/dbs/* to /oracle/SID/112_03/dbs/ )

(cp -Rp /oracle/SID/oldhome/network/admin/* to /oracle/SID/112_03/networ/admin/)

 

Downtime activities.

5. Stop applications and database.

6.Detach old oracle home.

cd /oracle/SID/oldhome/oui/bin

"./runInstaller -silent -local -cfs -detachHome ORACLE_HOME=""/oracle/oldhome/112_64"""

7.Detach new home

"cd /oracle/SID/112_03/oui/bin

   "./runInstaller -silent -local -cfs -detachHome ORACLE_HOME="/oracle/SID/112_03"

8.unmount FS /oracle/oldhome/112_64

9.Attach home

"cd /oracle/SID/112_03/oui/bin

   "./runInstaller -silent -attachhome -local -cfs ORACLE_HOME="/oracle/SID/112_03" ORACLE_HOME_NAME=OraDb11g_home5

10.Start DB on primary node on new home

11.alter system set cluster_database=false scope=spfile;

12.Stop and start DB on primary node

13.Run catsbp.sql on primary node

SQL> @sapbundle/SBP_1120311_201408/catsbp.sql

14.alter system set cluster_database=true scope=spfile;

15.Stop and start DB on primary node

16.Check for the invalid objects using below command and if found run @utlrp.sql script

Select * from dba_objects where status ='invalid' order by object_name;

18.change the parametes for "_FIX_CONTROL" and "EVENT" as per the document for ur SBP

19.Stop and start DB on all nodes

20.start Listener and SAP

 

This will reduce your downtime.

 

Regards,

Karthik.R

BR1628E Invalid character '@' in database password During Installation Phase

$
0
0

HI all

 

Iam installing Net weaver 7.4 SR2 on Windows Server2013R2 machine with orcale database.

My master password consist of @ symbol,

 

I was stuck in the Middle of installation of  Perform oracle Post load Step.

 

During this step installation is throwing an error , i checked br connect.log file , the log file is as below

 

BR0801I BRCONNECT 7.40 (11)

 

BR0280I BRCONNECT time stamp: 2014-10-15 19:42:47

BR0828I Changing password for database user SAPSR3 ...

BR1628E Invalid character '@' in database password

BR0832E Changing password for user SAPSR3 failed

 

BR0280I BRCONNECT time stamp: 2014-10-15 19:42:47

BR0804I BRCONNECT terminated with errors

 

i stoped and closed the sapinst and other sap process.

 

I tried to change the password using Sql plus and brtools by using the below commands

 

sql> alter user SAPSR3 identified by sap;

user alterd.

c:\Users\sapadmin>brconnect -u / -c -f chpass -o SAPSR3 -p sap

BR0801I BRCONNECT 7.40 (11)

 

BR0280I BRCONNECT time stamp: 2014-10-15 19:41:00

BR0828I Changing password for database user SAPSR3 ...

 

BR0280I BRCONNECT time stamp: 2014-10-15 19:41:00

BR0829I Password changed successfully in database for user SAPSR3

BR0830I Password changed successfully in table SAPSR3.SAPUSER for user SAPSR3

 

BR0280I BRCONNECT time stamp: 2014-10-15 19:41:00

BR0802I BRCONNECT completed successfully

 

C:\Users\sapadmin>brconnect -u / -c -f chpass -o SAPSR3 -p sap

BR0801I BRCONNECT 7.40 (11)

 

BR0280I BRCONNECT time stamp: 2014-10-15 19:41:00

BR0828I Changing password for database user SAPSR3 ...

 

BR0280I BRCONNECT time stamp: 2014-10-15 19:41:00

BR0829I Password changed successfully in database for user SAPSR3

BR0830I Password changed successfully in table SAPSR3.SAPUSER for user SAPSR3.

 

I restarted the Installation , but the same error persists,

can any one guide how to get rid of this Special character issue , requesting your guidance in resolving the above error.

 

Regards

Sandeep

ORACLE: archive log count - hour-by-hour, daily - for a month: view on ONE Page

$
0
0

Hi Folks,

If you are running your shop on ORACLE database, monitoring/tracking count (& thus, volume/size) of archive log must be on top list.

 

As transaction activities (OLTP transactions or batch processing) increases, the amount of transaction logs also goes up. And, if it goes beyond the storage capacity of archive-log directory, your database may hit 'archiver stuck' situation. In addition, various questions may come on surface to be addressed - like

- available space for backup may get filled

- available bandwidth to ship archive logs to DR site (Disaster Recovery site) may come short (i.e. there may be delay in transferring archive log files from PRIMARY site to DR site)

- when did archive log generation was huge (this will help in tracing which background process to look for tuning)

 

In this document, i am coming up a script - which will give archive log count - hour-by-hour, daily - for a month: view on ONE Page.

This script runs on ORACLE Database Version 8i/9i/10g/11g.

 

This is a 'SELECT only' QUERY - to be run run as SYSTEM account.

 

This SQL QUERY finishes in 'few' seconds only (so, no adverse effect on database performance).

For your safety, advisable to run on your Development or Test instance (whichever is running in ARCHIVE MODE) first, before running on Production instance.

 

This script will generate output file named archive_log_count.html in the current directory (i.e. working directory).

 

If your Oracle database is running on non-Windows server, you need to transfer (ftp or WinSCP or similar) out-put file archive_log_count.html from non-Windows host to Windows PC and open the file in the web browser.

 

Best way to run this script is COPY & PASTE blue color text below at your SQL> prompt logged in as 'SYSTEM' account.

 

Here is the script (blue color) and sample output (inserted as image):


set echo off

set feedback off

set termout off

set pause off

set head on

set lines 100

set pages 500

clear columns

clear computes

 

set markup html on spool on preformat off entmap on -

 

head ' -

  <title>Redo Log Switch Report</title> -

  <style type="text/css"> -

    body              {font:9pt Arial,Helvetica,sans-serif; color:black; background:White;} -

    p                 {font:9pt Arial,Helvetica,sans-serif; color:black; background:White;} -

    table,tr,td       {font:9pt Arial,Helvetica,sans-serif; color:Black; background:#C0C0C0; padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;} -

    th                {font:bold 9pt Arial,Helvetica,sans-serif; color:#336699; background:#cccc99; padding:0px 0px 0px 0px;} -

    h1                {font:bold 12pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; border-bottom:1px solid #cccc99; margin-top:0pt; margin-bottom:0pt; padding:0px 0px 0px 0px;} -

    h2                {font:bold 10pt Arial,Helvetica,Geneva,sans-serif; color:#336699; background-color:White; margin-top:4pt; margin-bottom:0pt;} -

    a                 {font:9pt Arial,Helvetica,sans-serif; color:#663300; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.link            {font:9pt Arial,Helvetica,sans-serif; color:#663300; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.noLink          {font:9pt Arial,Helvetica,sans-serif; color:#663300; text-decoration: none; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.noLinkBlue      {font:9pt Arial,Helvetica,sans-serif; color:#0000ff; text-decoration: none; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.noLinkDarkBlue  {font:9pt Arial,Helvetica,sans-serif; color:#000099; text-decoration: none; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.noLinkRed       {font:9pt Arial,Helvetica,sans-serif; color:#ff0000; text-decoration: none; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.noLinkDarkRed   {font:9pt Arial,Helvetica,sans-serif; color:#990000; text-decoration: none; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.noLinkGreen     {font:9pt Arial,Helvetica,sans-serif; color:#00ff00; text-decoration: none; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

    a.noLinkDarkGreen {font:9pt Arial,Helvetica,sans-serif; color:#009900; text-decoration: none; margin-top:0pt; margin-bottom:0pt; vertical-align:top;} -

  </style>' -

body   'BGCOLOR="#C0C0C0"' -

 

 

table  'BORDER="1"'

 

set heading on

prompt Redo Log Switches for a month

 

CLEAR COLUMNS BREAKS COMPUTES

 

COLUMN DAY   FORMAT a75              HEADING 'MM/dd; Time'

COLUMN H00   FORMAT 999,999B         HEADING '00'

COLUMN H01   FORMAT 999,999B         HEADING '01'

COLUMN H02   FORMAT 999,999B         HEADING '02'

COLUMN H03   FORMAT 999,999B         HEADING '03'

COLUMN H04   FORMAT 999,999B         HEADING '04'

COLUMN H05   FORMAT 999,999B         HEADING '05'

COLUMN H06   FORMAT 999,999B         HEADING '06'

COLUMN H07   FORMAT 999,999B         HEADING '07'

COLUMN H08   FORMAT 999,999B         HEADING '08'

COLUMN H09   FORMAT 999,999B         HEADING '09'

COLUMN H10   FORMAT 999,999B         HEADING '10'

COLUMN H11   FORMAT 999,999B         HEADING '11'

COLUMN H12   FORMAT 999,999B         HEADING '12'

COLUMN H13   FORMAT 999,999B         HEADING '13'

COLUMN H14   FORMAT 999,999B         HEADING '14'

COLUMN H15   FORMAT 999,999B         HEADING '15'

COLUMN H16   FORMAT 999,999B         HEADING '16'

COLUMN H17   FORMAT 999,999B         HEADING '17'

COLUMN H18   FORMAT 999,999B         HEADING '18'

COLUMN H19   FORMAT 999,999B         HEADING '19'

COLUMN H20   FORMAT 999,999B         HEADING '20'

COLUMN H21   FORMAT 999,999B         HEADING '21'

COLUMN H22   FORMAT 999,999B         HEADING '22'

COLUMN H23   FORMAT 999,999B         HEADING '23'

COLUMN TOTAL FORMAT 999,999,999      HEADING 'Total'

 

break on report

 

compute  avg LABEL 'Average:' sum LABEL 'Total:' of total  ON report

 

SELECT

    SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH:MI:SS'),1,5) || TO_CHAR(first_time, ' Dy') DAY

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'00',1,0)) H00

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'01',1,0)) H01

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'02',1,0)) H02

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'03',1,0)) H03

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'04',1,0)) H04

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'05',1,0)) H05

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'06',1,0)) H06

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'07',1,0)) H07

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'08',1,0)) H08

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'09',1,0)) H09

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'10',1,0)) H10

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'11',1,0)) H11

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'12',1,0)) H12

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'13',1,0)) H13

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'14',1,0)) H14

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'15',1,0)) H15

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'16',1,0)) H16

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'17',1,0)) H17

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'18',1,0)) H18

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'19',1,0)) H19

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'20',1,0)) H20

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'21',1,0)) H21

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'22',1,0)) H22

  , SUM(DECODE(SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH24:MI:SS'),10,2),'23',1,0)) H23

  , COUNT(*)                                                                      TOTAL

FROM

  v$log_history  a

  where trunc(first_time) >= trunc(sysdate)-30

GROUP BY SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH:MI:SS'),1,5) || TO_CHAR(first_time, ' Dy')

order BY SUBSTR(TO_CHAR(first_time, 'MM/DD/RR HH:MI:SS'),1,5) || TO_CHAR(first_time, ' Dy')

;

spool archive_log_count.html

/

spool off

 

exit

 

Sample Output:

 

archive_log_count_html.png

Hope this helps!

 

 

Please feel free to revert back with your feedback of any type - corrections/concerns/clarifications/appreciation.

 

Best Regards,

 

Bhavesh Patel

TATA CONSULTANCT SERVICES,

Gandhinagar,

Gujarat, INDIA.


Missing link SWDC->Oracle->oracle others->scripts

$
0
0


Dear All,

 

I want to upgrade a sandbox to NW 7.3. In order to prevent long runtimes of the phases PARCONV_UPG, XPRAS_UPG and SHADOW_IMPORT_UPG2 I wanted to download dba_ind_columns_sap.zip of SAP-Note 558197. But the links are not available anymore.

 

http://service.sap.com/swcenter-3pmain.

->Oracle

  -> oracle other

    -> Scripts.

 

Does anyone know where I can download dba_ind_columns_sap.zip ?

 

 

 

Best regards

Willi Eimler

 

(I always give rewards!)

In Opentext, we cannot change and update while Disk Volume is full or locked

$
0
0

In Opentext,. I have a problem that we cannot change and update while Disk Volume is full or locked

 

I have ERP 6.0 ehp6(SEP , which is PRD system ABAP + JAVA NETWEAVER 702 ERP 606 ) and OPENTEXT as Contens server ( Archive Server 10.1.1 )

 

we used one Original Archive ZT  mapped Disk Volume ZT_Volume that is stroed documents.

 

Disk Volume lock thesholds is setting 2% for Disk Volume ZT_Volume in my system. (‘ Min. free space on volumes in HDSK pool = 2%)

 

The parameter is explained that “This variable specifies the percentage of a hard disk volume that is to remain free. This is useful for marking a volume as full yet leaving a bit of space for future changes to the documents located on the volume.”

 

For this parameter explain. I think I can change and update a document using report  'SCMS_AO_TABLE_UPDATE' in standard function.

 

I performed a step below for test

I tried to change the file already stored  after Disk Volume locked.

But we cannot change and update while Disk Volume is full or locked.

Is this situation is correct?  Why can I not change the document?

 

DiskVolume_19.PNG

 

 

dlarPcl.PNG

 

 

update Report    -  call function 'SCMS_AO_TABLE_UPDATE'

 

 

Tomcat error message is below

 

2015-02-03 14:11:25,827 ERROR [http-9090-2] otx.LEA : com.opentext.ecm.lea.protocol.al.ALOutput - logException Caught exception of type com.opentext.ecm.lea.kernel.bridge.ICSJDSException: (ICS:0110) The content repository returned an error: code=3017, message=JdsErrorMessage:DS_NO_SPACE_ON_POOL_VOLUME[], description=All volumes in pool 'ZT_ZT_Pool' are locked or full

com.opentext.ecm.lea.common.ALException: (ICS:0001) Caught exception of type com.opentext.ecm.lea.kernel.bridge.ICSJDSException: (ICS:0110) The content repository returned an error: code=3017, message=JdsErrorMessage:DS_NO_SPACE_ON_POOL_VOLUME[], description=All volumes in pool 'ZT_ZT_Pool' are locked or full

at com.opentext.ecm.lea.protocol.al.ALRequest.throwALException(ALRequest.java:704)

at com.opentext.ecm.lea.protocol.al.ALRequest.runRequest(ALRequest.java:618)

at com.opentext.ecm.lea.protocol.al.ALRequest.service(ALRequest.java:362)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

at java.lang.Thread.run(Unknown Source)

Caused by: com.opentext.ecm.lea.kernel.bridge.ICSJDSException: (ICS:0110) The content repository returned an error: code=3017, message=JdsErrorMessage:DS_NO_SPACE_ON_POOL_VOLUME[], description=All volumes in pool 'ZT_ZT_Pool' are locked or full

at com.opentext.ecm.asm.exception.ExceptionBase.convertToICSException(ExceptionBase.java:251)

at com.opentext.ecm.asm.dbobjects.JdsComponent.writeSimpleComponent(JdsComponent.java:1936)

at com.opentext.ecm.asm.rcs.service.impl.DocumentServiceImpl.createComponent(DocumentServiceImpl.java:973)

at com.opentext.ecm.asm.rcs.service.impl.DocumentServiceImpl.createComponent(DocumentServiceImpl.java:805)

at com.opentext.ecm.asm.rcs.service.impl.DocumentServiceImpl.createComponent(DocumentServiceImpl.java:727)

at com.opentext.ecm.asm.ics.service.JDocumentService.createComponent(JDocumentService.java:124)

at com.opentext.ecm.lea.kernel.impl.FilterService.createComponent(FilterService.java:182)

at com.opentext.ecm.lea.kernel.srv.ds.DocumentService.createComponent(DocumentService.java:84)

at com.opentext.ecm.lea.kernel.bridge.ForwardingService.createComponent(ForwardingService.java:377)

at com.opentext.ecm.services.al.BaseICSToELIB.createComponent(BaseICSToELIB.java:692)

at com.opentext.ecm.lea.protocol.al.ALRequest.create(ALRequest.java:1033)

at com.opentext.ecm.lea.protocol.al.ALRequest.runRequest(ALRequest.java:579)

... 14 more

Caused by: All volumes in pool 'ZT_ZT_Pool' are locked or full

at com.opentext.ecm.asm.exception.JdsIOException$Factory.getInstanceForNoSpaceInPool(JdsIOException.java:236)

at com.opentext.ecm.asm.dbobjects.JdsPool.getFreeVolumeRR(JdsPool.java:613)

at com.opentext.ecm.asm.dbobjects.JdsPool.getFreeVolume(JdsPool.java:540)

at com.opentext.ecm.asm.dbobjects.JdsComponent.makeComponentLocationForWrite(JdsComponent.java:1307)

at com.opentext.ecm.asm.dbobjects.JdsComponent.writeComponentToDisk(JdsComponent.java:956)

at com.opentext.ecm.asm.dbobjects.JdsComponent.writeSimpleComponent(JdsComponent.java:1921)

... 24 more

 

 

 

 

 

Best regards...

 

 

 

Control file creation issue in oracle.

$
0
0

Hi All,

 

After restoration while I am trying to run @control.sql we are getting the error as

ORA-01200: actual file size of <act_blocks> is smaller than correct size of <def_blocks> blocks.


We have restored few times but got the similar error. I search on the sdn regarding this issue but couldn't find the resolution.


Kindly suggest.


Regards,

Arpit

Oracle 10.2.0.4 patch from oracle 10.2.0.1 giving error

$
0
0

Hi Experts,

 

I have installed oracle 10.2.0.1(software only) in windows server 2008 R2(X64).

 

Now I want to patch this to oracle 10.2.0.4 version.

 

I have downloaded the patch and extracted and run the installer.

 

Now when I choose the oracle to patch, it gives the error that 'this can be used on an existing oracle home only'.

 

Also in the 'installed product' button, this is not showing any software details.

 

I am not able to understand what is the reason for this error. Please help.

 

 

Thanks,

Arijit

Benchmarking and the single thread

$
0
0

If you work in tech long enough, you get to see a few cycles and turnovers.  I'm not talking about cell phone X to cell phone Y, I'm talking hardware generations.  I started running benchmarks long ago, and have written here on a few forays.  One of the most recent (relatively) last things I wrote on SCN was Fast Is Not A Number . After nearly 2 years, I still haven't seen any official SD benchmarks requested there.

 

Meanwhile, SD benchmarks continue to be certified and published under SAP's purview, which I and others track.  Hardware vendors have fun volleying charges back and forth about the meaning of the numbers and the value to users.  I won't link those here; let me know if simple searches don't bring them to light.  I'll admit to my biases (like UNIX over Windows, Oracle over another DB), but try to remain nonpartisan when evaluating one vendor choice over another.  While the test results being published here are about Oracle database software (hence this space versus an application software space versus a hardware space), they could be extrapolated to other databases and software on differing hardware.  With all the tests I'm running, these benchmarks make sense to discuss on SCN.

 

More preamble - the results shown below are metrics of transactions per second.  That is but one dimension one can use to decide which solution is acceptable.  While I cannot and will not discuss license terms, I think it is well known that CPU based counts are often used by vendors.  Sometimes it's based on hardware class, so larger systems cost more per user, but in some cases you need to control costs by restricting where certain code can run.  Put it another way, any hardware performance increase or tweak that doesn't tick over the the software license meter is worth looking into.

 

Intel, IBM, and other chip designers have gone to higher parallelism, in varying ways, not to mention the virtualization and grid techniques that expand problem solving and number crunching to new dimensions.  Here, I'm only looking at IBM Power CPUs (I have benchmarked other CPUs as they were made available to me).  I've used some variety of these since Power4.  I've also used the software package called "orabm" for about 10 years.

 

What is "orabm"?  This cool application was produced, and is still available, from linxcel, which has also released a more comprehensive transaction throughput monitoring suite they call "orastress!!" (I always forget if it has one or 2 exclamation marks).  To prepare this suite, run SQL statements to create and load the sample tables, then run the compiled benchmark controller.  I have not built the module in a while, but I don't think any compiler changes will affect the results.

 

No doubt I've left out details some might find pertinent, as once you get started on 20 or 30 separate test modules there may be assumptions left unstated.  I'll respond in the comments as best I can, and will try to explain any omissions or unanswered threads.

 

Back to the title 'Single threaded" - does threading help?  Not just in benchmarks, but in actual production code? I have to ask, since the CPU specs these days throw around a lot of terms, from hyper-threading to symmetric multi-threading to other parallel turns of phrase.  I'll explain the implications after I review the numbers.  Naturally, there is a spreadsheet behind this, and no, you can't have it.

 

orabm-20150203.png

 

First stipulation - I ran several iterations with varying numbers of parallel sessions being created.  The performance results can vary depending on adapter settings, network stack design (not just the OS, but the hypervisor too), etc.  The suite reports transactions per second for each parallel run.  There's a shell script that converts the parallel results into transactions per second overall. That's because we want to know the big picture.

 

Earlier results are for Power5 and Power6 CPUs.  The most recent tests are from the same system starting on a Power7 frame (salmon-colored dots), which was then moved to running on Power8 (light blue).  No reboot happened (which is great for, um, non-disruption).  The TPS went from roughly 1,500 to over 2,000.  As it turned out, that partition was still in Power6 mode, where it had been running only last year.

 

The planned system reboot activated more CPU features, though not everything.  The larger blue diamonds show another bump up, without an OS change/patch, and without changing anything except the SMT flag (from "2/Active" to "4").  Here, the TPS are over 3,000, with one blip close to 3,500 (that's the kind of outlier I'd throw away once I had more repetitions).

 

The top 2 sets of results are after an operating system upgrade (from AIX 6 to 7).  Another perceptible performance bump, to the 4,000 TPS range. One set was with SMT-4, the other with SMT-8.  Though there may be a minor performance benefit to the latter visible in this test, I don't see this as significant.  Whether other code with higher threading architected will benefit remains to be seen.  No predictions from this groundhog on that front.

 

(See also):

 

Viewing all 2104 articles
Browse latest View live


Latest Images

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