Skip to Content

dbm-command file_operation

Hi MaxDB collegues,

does anybody know how one can use

file_operation

in dbmcli so that it actually works?

As of [MaxDB Doku|http://maxdb.sap.com/doc/7_6/24/a967104c2d11d4aa1100a0c9430730/content.htm] it should be as easy as

file_operation BACKHIST OP=SHRINK LINES=10

to chop down the backuphistory to the most recent ten lines.

Unfortunately all I get (on 7.6.03 B15) is:

ERR

-24996,ERR_PARAM: wrong parameters

---

dbmcli on db760>file_operation BACKHIST OP=DELETE

ERR

-24996,ERR_PARAM: wrong parameters

Any idea anybody?

Thanks and KR Lars

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 30, 2008 at 02:42 PM

    Hi Lars,

    well, the thing is, the dbm command file_operation is only possible on very specific files (which our documentation doesn't reflect). Those files would be any files starting with atp or lc or any of the dba files in the DBAHIST subdirectory of the Rundirectory.

    So it cannot be used for the usual analysis files like knldiag.err, dbm.knl or similar. I agree that the error message delivered by DBM is rather misleading.

    Regards,

    Roland

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 02:39 PM

    Hi Lars,

    it seems that there is a small error in your statement.

    Please try

    file_operation BACKHIST OP=SHRINK LINE=10

    The help shows LINE as an option, not LINES.

    Good luck

    Christian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.