Quantcast
Channel: SCN : All Content - SAP MaxDB
Viewing all 322 articles
Browse latest View live

Unable to start maxdb and sap application

$
0
0

Dear All,

 

When start sap system it gave error unable to start database.

 

I try to start database manually and it gave below error, please help in regards.

 

 

Must be called by root or effective user 7000 effective group 205

Error! Connection failed to node itrt51 for database APP:

Reading header from pipe:(0:NO ERROR(0)

 

Thanks &Regards

Vivek


Assigning Empty Strings to String Field Throws OpenSQLException

$
0
0

Hi there,

 

I have defined a DB table with different fields, one of these is field COMMENT, type set to string, Dim to 1024, that means real type Varchar (when controlling via SQL Studio; within the DDIC Project in Netweaver Developer Studio, it says LONGVARCHAR), code is UNICODE, Not Null not set.

 

When I insert a row and there is no comment, an empty string is set for COMMENT. But this throws a com.sap.sql.log.OpenSQLException: Cannot assign an empty string to host variable

 

Why this?

 

When I control the string before and set the field to null instead of the empty string, it "works".

 

Thanks in advance

Detlev

Error "-9400 AK Cachedirectory full"

$
0
0

Hello,

 

I'm writing back following an old thread in 2009 on this forum, related to a problem with MaxDB and "AK Cachedirectory full" problems. You can find the previous thread here: What can we so against Error "-9400 AK Cachedirectory full"?

 

The problem was actually never resolved: we could more or less live with it, and we managed to reduce it for a while, but we are having that problem again almost every day now. We actually fixed various points since 2009 and our system has changed quite a lot.

 

We use MaxDB 7.8.02 (BUILD 038-121-249-252) with the JDBC Driver sapdbc-7.6.09_000-000-010-635.jar. Note that we don't use MaxDB in a SAP environment as we have our own business application.

 

Following some very helpful feedback from Lars Breddemann, we fixed various points in our system: for example, result sets were not always properly closed, this is now done immediately after the query has been executed and the result rows were read. We also follow the advise from Elke Zietlow to always close a connection and its associated prepared statements when the error occurs. This also helps in most cases, but sometimes when the error occurs, even closing the connection and its prepared statements does not help and the problem "escalates" until we have to restart the db to fix the problem.

 

Back to the discussion in 2009, I used the two statements given by Lars to monitor the catalog cache usage: when I run this multiple times, I see that all result sets are properly closed as I only see the ones currently being used and they disappear.

 

One important point is that our java application keeps many prepared statements open in a cache, to have them ready to be reused. We can have up to 10'000 prepared statements open, with up to 100 jdbc connections. Actually the AK Cachedirectory full problem happens sometimes very soon after we restart our system and db, so at that time the number of prepared statements can be very low, which seems to indicate that the number of prepared statements being open is not necessarily linked to the problem.

 

Also in the discussion in 2009, Lars mentioned the fact that we use prepared statements of the type TYPE_SCROLL_INSENSITIVE and he was asking if we could not use TYPE_FORWARD_ONLY. Would this really make a difference? We need the TYPE_SCROLL_INSENSITIVE in many cases because we use some iterators to scroll up and down the result sets, so using TYPE_FORWARD_ONLY would require changing quite some code. I also saw in the MaxDB code that using the type TYPE_SCROLL_INSENSITIVE adds the string "FOR REUSE" to the sql statement, what does it exactly mean?

 

Amy help to fix that problem would be greatly appreciated.

Christophe

You don't have the authorization to download software. To request it, go to Access Request Management (profile B_SWDC_DL_NO for system OW1). when try to download MAXDB DATABASE STUDIO 7.9

$
0
0

Hello all

I try to download MaxDBStudio 7.9.08.32 and I get the following error:

 

Capture.PNG

Please help

disp+work.EXE of SAP Instance stopped and DB connection failed.

$
0
0

Hi~

I have trouble starting instance in SAPMMC.

 

As soon as start instance, gateway in 00 instance shutdown first.

And then disp+work.EXE stopped.

 

I don't know really why it happend.

I attatched - R3trans -d.

                  - SAPMMC.

 

Please help me.

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

I attached trans.log file below.

 

4 ETW000 r3trans version 6.24 (release 740 - 04.02.14 - 20:14:02 ).

4 ETW000 unicode enabled version

4 ETW000 ===============================================

4 ETW000

4 ETW000 date&time   : 01.09.2015 - 13:38:07

4 ETW000 control file: <no ctrlfile>

4 ETW000 R3trans was called as follows: r3trans -d

4 ETW000  trace at level 2 opened for a given file pointer

4 ETW000  [     dev trc,00000]  Tue Sep 01 13:38:08 2015                                                 118  0.000118

4 ETW000  [     dev trc,00000]  db_con_init called                                                        49  0.000167

4 ETW000  [     dev trc,00000]  set_use_ext_con_info(): usage of ssfs switched off (rsdb/ssfs_connect=0)

4 ETW000                                                                                                  73  0.000240

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

4 ETW000                                                                                                  27  0.000267

4 ETW000  [     dev trc,00000]  create_con (con_name=R/3)                                                 16  0.000283

4 ETW000  [     dev trc,00000]  Loading DB library 'dboraslib.dll' ...                                    57  0.000340

4 ETW000  [     dev trc,00000]  DlLoadLib success: LoadLibrary("dboraslib.dll"), hdl 0, count 1, addr 00007FF8E9640000

4 ETW000                                                                                                 631  0.000971

4 ETW000  [     dev trc,00000]      using "C:\usr\sap\ooo\SYS\exe\uc\NTAMD64\dboraslib.dll"               20  0.000991

4 ETW000  [     dev trc,00000]  Library 'dboraslib.dll' loaded                                            22  0.001013

4 ETW000  [     dev trc,00000]  function DbSlExpFuns loaded from library dboraslib.dll                    21  0.001034

4 ETW000  [     dev trc,00000]  Version of 'dboraslib.dll' is "740.10", patchlevel (0.60)                131  0.001165

4 ETW000  [     dev trc,00000]  function dsql_db_init loaded from library dboraslib.dll                   26  0.001191

4 ETW000  [     dev trc,00000]  function dbdd_exp_funs loaded from library dboraslib.dll                  47  0.001238

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=47=DBSL_CMD_IMP_FUNS_SET) -> changed=30, tagset=1

4 ETW000                                                                                                 140  0.001378

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=39=DBSL_CMD_SET_SINGLETASK)                     26  0.001404

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=10=DBSL_CMD_DBCA_PTR_GET)                       23  0.001427

4 ETW000  [     dev trc,00000]  New connection 0 created                                                  16  0.001443

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , oc = 000, hc = NO , perm = YES, reco = NO , info = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 

4 ETW000                                                                                                  39  0.001482

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=10=DBSL_CMD_DBCA_PTR_GET)                       35  0.001517

4 ETW000  [     dev trc,00000]  db_con_connect (con_name=R/3)                                             21  0.001538

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

4 ETW000                                                                                                  25  0.001563

4 ETW000  [     dev trc,00000]  find_con_by_name found the following connection:                          18  0.001581

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , oc = 000, hc = NO , perm = YES, reco = NO , info = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 

4 ETW000                                                                                                  37  0.001618

4 ETW000  [     dev trc,00000]  -->DbSlConnect(vers=-1, type=0, env='[default env]', usr='[default usr]', kernel dbsl='740')

4 ETW000                                                                                                 174  0.001792

4 ETW000  [     dev trc,00000]  DIR_CLIENT_ORAHOME is not set as profile nor env. parameter.             334  0.002126

4 ETW000                        Assuming using instant client with unspecified location.

4 ETW000  [     dev trc,00000]  Register application info.                                                97  0.002223

4 ETW000  [     dev trc,00000]  Oracle client version: 11.2.0.4.0, (dbsl 740 140314, UNICODE[2])       46137  0.048360

4 ETW000  [     dev trc,00000]  Detailed Oracle client (patch) info not available.                        36  0.048396

4 ETW000  [dbsloci.c   ,00000]  *** ERROR => Connect via SAPUSER not supported for kernel >= 740.         43  0.048439

4 ETW000  [     dev trc,00000]     Only Secure Connect method possible.                                   19  0.048458

4 ETW000  [     dev trc,00000]     DbSlConnect(con=-1) -> orc=0, 15=DBSL_ERR_UNSUPPORTED                  28  0.048486

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=41=DBSL_CMD_RELINFO_GET)                        27  0.048513

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=14=DBSL_CMD_VERSION_GET)                        20  0.048533

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=50=DBSL_CMD_GET_PATCH_INFO)                     19  0.048552

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=13=DBSL_CMD_VENDOR_NAME_GET)                    42  0.048594

4 ETW000  [     dev trc,00000]  -->DbSlControl(con=-1,cmd=52=DBSL_CMD_GET_DBLIB_VERSION)                  19  0.048613

4 ETW000  [     dev trc,00000]                 -> 'OCI_11201_SHARE, 11.2.0.4.0'                           20  0.048633

2EETW169 no connect possible: "DBMS = ORACLE                           --- dbs_ora_tnsname = 'ooo'"

damaged file in CSC

$
0
0

Hello experts, we seem to have a damaged file in one of our cache servers. The original file is stored in a content repository far away from my location. It seems to be in the cache server of my location, because it is delivered from there ( I can see it in the tracefile). But, it gets checked out with a file size of 0 byte (it should have 127 KB). When I use the LCA parameter to simulate that i´m in the location where the file is stored, it can be checked out as expected (without caching directly from CS). Did anyone see such a situation? Is there a way to "renew" the specific file in my local cache server? Or, is there a way to delete a specific file in the cache? Any other ideas or workarounds? If not, I would have to drop the complete data inside this cache server. This is not really a problem, since the cache would rebuild itself again. Just if there would be a more simple solution. Thanks! Martin

Option to pre-install MaxDB using SWPM or other for System Copy ?

$
0
0

Good day,

 

I am busy with a Unicode Conversion project which involves MaxDB and a System Copy.

 

During the import and installation of the target system we had several issues relating to parameters not being correct in MaxDB. This caused huge delays in the whole process and unnecessary downtime.

 

To avoid having to do these parameter changes after waiting for the target install to fail once it has built the database I want to pre-install MaxDB and upgrade it with the necessary parameter changes so that we can avoid issues experienced during the target installation and import of data. I also want to avoid having to wait for 1TB of database volumes to be built during the target install.

 

My question is then, where in SWPM or what is the best method to use to pre-install MaxDB so it can be used for SAP ? I do not see any option in SWPM to install MaxDB as a standalone database. Note, this is not a distributed system, just a standard Central instance installation. I just want the option to install and configure MaxDB first.

 

We will be using MaxDB 7.8 since this is what all databases are using in the landscape. After the Unicode Conversion we will upgrade to 7.9 and install the latest enhancements. I have the installation media for 7.8.02.31 - this will be patched to build 41 before the import.

 

Thanks.

 

Regards,

Nelis

ERP 6.0 EHP7 with MAX DB on SUSE Linux 12

$
0
0

Hi,

 

We are planning to install ERP 6.0 EHP7 with MAX DB on SUSE Linux 12, first thing when i checked in PAM it is only showing SUSE Linux 11. No where it was mentioned for SUSE Linux 12.

 

Kindly let me know is SUSE Linux 12 is supported or not.

 

Regards,

Sreedhar


MaxDB Database Studio is not launching

$
0
0

Hi,

I had an old version of MaxDB Studio 7_9_08_01 which was running very well.

Since a couple of days, the studio desn't want to launch anymore. I can see the process coming up in Task Manager and it dissapears.

I have also tried using a newser version MaxDB Studio 7_9_08_32, but no change.

I have see some XServer in the services which is related to MaxDB, does it needs to be running?

Thanks for your help.

Problem with differences DBStudio vs. SQL_Studio

$
0
0

Hello Everybody

 

We use MaxDB for our SAP Systems and non-SAP Applications.

 

On one MAXDB Instance(7.8) we have a group AAA and a user BBB that belongs to that group.

The user BBB can create,alter,drop tables and of course insert,delete,...

Wenn looking at the tables(more than 500), the schema is AAA and the owner is AAA

All own applications connect with user BBB.

(the database administrator who build the database more than 10 years ago left the company!)

Everything works as expected.

 

With SQL-Studio(7.6) we can connect as user BBB, select the schema AAA, see all the tables and do anything we want.

With Maxdb Maestro(another MaxDb Gui) we can connect as user BBB, select the schema AAA, see all the tables and do anything we want.

 

But with the new DBStudio we only can connect? We can't select the Schema AAA and we don't see any table that belongs to that schema?

 

What do we miss? What is the difference between SQL-Studio and DBStudio?

We would pefer to use DBStudio in future.

 

Any help welcomed.

 

Best regards

Albert

Livecache backup failing with 'Too many open files' (24)

$
0
0

Hi experts,

 

I am trying to take a complete backup of one of my livecache database from DBA planning calender. It is failing with below error.

 

MEDIANAME 'Pre_index_rebuild'
*** SAVE/RESTORE request accepted:
OK 

*** SAVE/RESTORE result:
ERR
-24988,ERR_SQL: SQL error
-903,Host file I/O error
3,Data backup failed
113,Open medium on /sapdb/LCA/sapdata/DISKD0006 for READ failed
1,Open file /sapdb/LCA/sapdata/DISKD0006 failed, open(READ,EXISTING) returned 'Too many open files' (24)

*** SAVE/RESTORE request:
SAVE DATA CANCEL
*** SAVE/RESTORE request accepted:
OK

*** SAVE/RESTORE result:
ERR
-24988,ERR_SQL: SQL error
-104,DBM command impossible at this time

*** DBA Action ends:
Timestamp: 20150829225656   State


I have tried by creating new media template but the result is same. I am not able to find much useful logs in livecache log files. Please suggest.


Thanks

Amar.

Error in accessing via HTTP 500 (Internal Server Error) "CertBag::ReadCerts failed rc=3

$
0
0

Hi Expert,

                DMS configuration using  Tcode CSADMIN here when i Choose Certificate tab simply give error

Error in accessing via HTTP 500 (Internal Server Error) "CertBag::ReadCerts failed rc=3, The system cannot find the path specified.

how to solve it?

 

 

 

With regards,

Dinesh Kumar S(DK)

Does the Database Manager tool work with 7.9?

$
0
0

Hi Maxdb world.

 

This is my first post, so please be gentle. We;ve been running Maxdb on HP_UX for Content server for a number of years, and it remains on version 7.7.

 

However, as part of a drive to remove ORACLE DBs from our landscape, we are attempting to migrate all our Java instances to Maxdb 7.9. I've done the first one ok, but I can't get it to add to the Database manager tool so I can 'manage' it'. The tool is version 7.6.

 

So, my question is, has the database manager tool been replaced by Database Studio? Or, is the an issue connecting to a 7.9 database from a 7.6 tool, and is there a newer version of this tool available?

 

Thanks

 

Bill Dedman

MaxDB databases in HP_UX Service Guard Cluster packages - Anyone?

$
0
0

Hi MaxDB People

 

Here is my second post/question. Hopefully somebody can help me out here.

 

I've installed a MaxDB database, and performed a Database migration from Oracle to create a SAP Java ADS instance called AQ3.

We use HP Service guard clusters, to allow us to move instances around between server nodes. Because if this, I have configured the file systems for the database and software as follows:

 

Node 1 (where the original install took place)

 

<Local to the server node>

 

/sapdb

/sapdb/data

/sapdb/programs

/sapdb/clients

 

 

<Installed as a movable package called 'sapaq3' and mounted in bold>

 

/sapdb/AQ3/  <and all subsequent directories>

/sapdb/client/AQ3<and all subsequent directories>

/usr/sap/AQ3

/sapmnt/AQ3


On the original server node this instance runs just fine.


 

Node 2

 

I installed the MaxDB software again locally

 

/sapdb

/sapdb/data

/sapdb/programs

/sapdb/clients

 

I then moved the package 'sapaq3' to run on node 2

 

/sapdb/AQ3/  <and all subsequent directories>

/sapdb/client/AQ3<and all subsequent directories>

/usr/sap/AQ3

/sapmnt/AQ3


 

I started the x_server from /sapdb/AQ3/db/bin

 

When I try to start the database however, I am getting the following error message:

 

dbmcli -d AQ3 -u control,xxxxxxxx db_online

Error! Connection failed to node (local) for database AQ3:

database instance not found

 

 

I'm thinking there must be some need for a database registration on node 2, so that the central software knows about the database that has been previously installed elsewhere. I tried the sdbreg command but I am still getting the error.

 

Does anyone have any idea what the issue could be?

 

Thanks everyone.

 

Bill Dedman

 

 



MAXDB Recovery Log Shipping

$
0
0

Hi All,

 

We have Build DR Standby System which we have restored from Prod System into a Standby System.

 

We have used the Log Shipping Script which is available in the below wiki Link

 

HowTo - Standby System (Recovery from Log Backup) - MaxDB - SCN Wiki

 

Our SAP Landscape Environment is Windows OS 2008 and MAXDB 7.6

 

 

Well, This Script  consist in 3 files: Standby.Bat, Recovery_Builder, Recovery_Apply. We have implemented these scripts in STANDBY SERVER,


We've tried to adapt the code for our system landscape but when we execute the script we're running into an error:


And we are facing issue in the 2nd Script RECOVERY_BUILDER, As per the script it will Set DB to Admin mode and then builds the import list and exports to script file.


I have tried this script but no success i.e i cannot generate the Script file, The Script is Working till : EXIT LOOP


Please find our adapted Script with changed LOG Path, DBMCLI, Passwords


RECOVERY BUILDER :


rem %%a = Logfile Name

rem %%b = log file number

rem %%j = Page number

Set LiveDB=SAPDMSPRD.domain.com

 

 

C:\sapdb\programs\pgm\dbmcli.exe -n localhost -d SDB -u SUPERDBA,XXXXX db_admin

 

 

for /f "usebackq tokens=1,2,3,4 delims= " %%a in (`"C:\sapdb\programs\pgm\dbmcli.exe -n localhost -d SDB -u SUPERDBA,XXXXXXX db_restartinfo |findstr /c:"Used LOG Page""`) do (set current_page=%%d)

 

 

for /f "usebackq tokens=1,2 delims=." %%a in (`"dir Z:\DR_DataBackup\Log_Bkp\. /b /o:e"`) do (

     for /f "usebackq tokens=1,2,3,4 delims= " %%g in (`"C:\sapdb\programs\pgm\dbmcli.exe -n SAPDMSPRD.domain.com -d SDB -u SUPERDBA,XXXXXXX medium_label SDB_log_bkp %%b |findstr /c:"Last LOG Page""`) do (

          call :find_backup_page  %%j %%a %%b

     )

)

 

 

:exit_loop

 

for /f "usebackq tokens=1,2 delims=." %%a in (`"dir Z:\DR_DataBackup\Log_Bkp\. /b /o:e"`) do

(

if %%b GTR %first_file% (

echo recover_replace SDB_log_bkp "Z:\DR_DataBackup\Log_Bkp" %%b >> c:\temp\import_script.txt))

 

 

 

goto end

 

:find_backup_page

          set /i backup_page="%1"

          if /i %current_page% EQU "%1" (

               echo db_connect > c:\temp\import_script.txt

               echo db_admin > c:\temp\import_script.txt

               echo recover_start SDB_log_bkp LOG %3  >> c:\temp\import_script.txt

               set first_file=%3

               pause

          goto exit_loop

          )

:end

 

 

The Live DB variable is PROD Server Hostname FQDN

LOG Backup Path = Z:\DR_DataBackup\Log_Bkp

Backup_Medium_Label = SDB_log_bkp

 

I have run the script manually with 3 log files generated manually, The Script is giving me values of Current USED log page and LAST LOG PAGE,

 

After this EXIT LOOP the script comes out of loop and doesn't generating the script file.

 

Could you provide me what are wrong in my adapted scripts and help me with them??


Thanks,

Karthick V


Error while create Database User management exception: Server or DB unknown

$
0
0


Hello Gurus,

 

While creating Database using SAP MaxDB Database Studio Version: 7.9.08.30 getting below error

 

An error occurred during creation of the database.

 

Error when seleting below parameters "User management exception: Server or DB unknown"

 

Installation Path:C:\sapdb\clients\Database studio;  Database Version :7.9.08.30

Database system administrator:DBADMIN

 

 

Error  when seleting below parameters "wrong parameters1,Invalid first database manager operator"

 

Installation Path:K:\sapdb\SDB\db;  Database Version :7.6.00.35

Database system administrator:DBADMIN

 

 

Regards

Gaurav Sharma

-24950,ERR_USRFAIL: User authorization failed

$
0
0

Hi everyone

I have SAP Solution Manager 7.1 On Linux suse 11 and MaxDB 7.8 with SID ZZZ. The password of dba user SAPZZZ was changed.

The old password was for example'XxHh$115' (with special caracter $) and the new password is 'XxSYy2015'.

 

I change the password in Database studio following the instructions of the sap notes:

25591 - Password change for DBM and DBA users

39439 - XUSER entries for SAP MaxDB

 

The change of the password was succesfully.

 

I obtain an error in the transactioN DB13 and using dbmcli command:

 

dbmcli: hostname_xx:ssmadm 69> dbmcli -d ZZZ -u SAPZZZ,XxSYy2015

Error! Connection failed to node (local) for database ZZZ:

-24950,ERR_USRFAIL: User authorization failed

 

In DB13: Name and Server    :

ZZZ - hostname_xx Function          

: DBM_GETF Command          

: DBAHIST DATE=20141010 Error            

: DBM Error Return Code        :        -2 Error Message    

: ERR_USRFAIL: User authorization failed

 

I try to change the password via dbmcli with the following command:

dbmcli -u SAPZZZ,XxHh\$115 -uk DEFAULT -us SAPZZZ,XxSYy2015 -d ZZZ -n hostname_xx

 

but the error is: Error! wrong username or password!

 

Database studio is working fine, I can to execute backups with the user SAPZZZ.

 

Please help us to solve it, I need schedule the database backup using the transaction DB13 but the job ended with message: -24950,ERR_USRFAIL: User authorization failed.

 

Thanks in advanced for your help.

Best Regards,

Osmany Martínez

Live cache lock handler not available

$
0
0

Hi we are frequently getting this error Live cache lock handler not available and this causes our process chains to fail.

Can anyone please explain in details what this error refers to and direct to any good links for error resolution.

how to search coulumn name

$
0
0

hi

I have some problem, anybody can help  ?- how I can get all table name where have some column name, how I can in maxdb create this specific select sql request.

 

 

select "table_name" from DB where column_name = "%AAA%"

 

 

thank you.

20090 check knldiag kernel exited with '0' before reaching admin state

$
0
0

Hello,

when i'm trying to start the database on my Linux machine i'm getting the following error:

Trying to start database...

Log file: /home/ewmadm/startdb.log

Databse start failed

DB startup failed

 

In the startdb.log:

-24994,ERR_RTE: Runtime environment error

20090 check knldiag kernel exited with '0' before reaching admin state

 

In the KnlMsg i can't find any obvious errors.

Viewing all 322 articles
Browse latest View live


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