Printer Access methods

Hello All,
We are on ECC 6.0 with AIX and DB2.
Am trying to find the printer Access method types available in SAP with explainatoin.
I tried googling the same but could not find all in 1.
Can any 1 of you please share the link or any documents which has all the printer access mentods with explaination
Regards,
Ravi

HI
Please check the following link.
http://help.sap.com/saphelp_nw04/helpdata/EN/4f/9c033cff903105e10000000a114084/content.htm

Similar Messages

  • Duplex printing problem with access method G

    Dear all,
    We have Canon GP300-405 PS Ver 1.0 printer.
    Previously, with access method F: Printing on front end computer, we were able to do duplex printing.
    Now we have changed the the access method to G: Front End Printing with Control Tech and we are not able to do duplex printing
    We have ECC 6.0 / AIX / Oracle
    I installed SAPGUI patch 17 but still I am not able to do duplex printing
    Any suggestion?
    Rgds..../

    Sandy,
    This note will answer your query
    Note 1149136 - Options for front-end printing (access method G)
    Character string: "DcMode" [printer-specific]
    Default: 0x0800
    Other values: (Nearly) all, see below
    Effect:
    This parameter determines WHEN to send the control of
    a) orientation portrait/landscape
    b) paper size
    c) duplex
    d) tray
    You need to set above mentioned parameters.
    Regards,

  • Can't printing in front-end when implement LOCL access method 'G'

    We are implementing ECC5.0 and print Purchase Order in normal status.But in recent,user print PO by long printer name with some trouble.So we check the notes,and it recommand us to implement access method 'G'.It seems every thing is OK on front-end printing.Still not work for printing PO on front-end output immediate.If we choose short printer name and access method 'F',it work fine.But SAP will no longer develop method 'F'.Please advise it.

    SAP PO is using background printing. SAP frontend print doesn't support background printing.
    As per SAP Frontend document, You cannot perform front-end printing in the background, as there is not connection to the front end.
    For this, you need to configure network printer.
    Thanks,
    Miral.

  • Front - end print with new access method G - having issues for some users

    Hi Gurus,
    Recently we have implemented the new access method G for front-end printing. it is working fine for 90% users in our company. but some users having problems in printing to WINDEFAULT using this new method.
    Here is the SAP GUI trace file for the error that they are getting.
    (Error)(25.09.09 15:42:36.444):    CALL METHOD "CreateControl"[DispID=5] OF [#1/0x0AE31790/1/{83658045-6571-3232-7082-797884697868}]
                        #0: LONG "101"
                        #1: STRING "SAPFPRINT.sapfprintCtrl.1"
                        #2: LONG "0"
                        #3: LONG "10"
    IDispatch::Invoke raised exceptionException occurred
    (Error)                       :   
    (Error)                       :    ****************************ERROR OCCURED IN MODULE: [{83658045-6571-3232-7082-797884697868}]******************************************************************************************************
    (Error)                       :    PROGRAM_ID                                 |MODULE_NAME              |METHOD_NAME       |ERROR DESCRIPTION         |VERSION                    |GUI VERSION               |MODULE_PATH              |
    (Error)                       :    *****************************************************************************************************************************************************************************************************
    (Error)                       :    {83658045-6571-3232-7082-797884697868}     |Class name not found     |CreateControl     |Create control failed     |Version info not found     |Gui Version not found     |Module doesnot exist     |
    (Error)                       :    *****************************************************************************************************************************************************************************************************
    (Error)                       :   
    (Error)                       :    Exception fire by :SAP Frontend Server
    (Error)                       :    Exception info:Create control failed
    (Error)                       :    Exception code:65535
    Did any one face this error? what could be the resolution?
    We are already on SAP GUI 710 patch level 11
    DISP+Work  : 229
    Appreciate your answers
    Thanks,
    Srini

    Usually this means, that some necessary controls are not properly registered in the registry and hence can't be found. You may solve that by removing the SAPGUI from the PC completely, booting the machine and reinstall the GUI.
    Markus

  • Frontend Printing Using Access Method G - Properties

    I am looking for some light on Frontend printing using access method G. I am using ERP 4.7 on Windows 2000 and SQL 2000. We are using access method G to print and when users get the pop up dialog to print, the properties and the cancel options are grayed out. The printers are already define in all of our SAP systems. We are using the latest Kernel 640 and patch level 247 as well as sapgui 7.10 with patch 15.
    Thanks for your help in advance

    Hi,
    Check below link:
    http://help.sap.com/saphelp_tm60/helpdata/en/42/dd174f02302cede10000000a1553f7/content.htm
    Thanks
    Sunny

  • Queue access method for In-memory databases

    Hi,
    I am trying to use the Queue access method for an in-memory database
    with no backing file. Here is the how I've created the environment and
    the database.
    int env_flags_create = DB_CREATE | DB_INIT_LOG | DB_INIT_LOCK |
    DB_INIT_MPOOL |DB_INIT_TXN |
    DB_SYSTEM_MEM | DB_RECOVER | DB_THREAD ;
    ret = env->set_shm_key(env, 17);
    ret = env->open(env, R_"in-mem-env", env_flags, 0644);
    int db_flags = DB_CREATE | DB_THREAD | DB_AUTO_COMMIT;
    DB_MPOOLFILE *mpf = subs_db->get_mpf(subs_db);
    mpf->set_flags(mpf, DB_MPOOL_NOFILE, 1);
    ret = queue_db->set_re_len(queue_db, 512);
    ret = queue_db->open(queue_db, NULL, NULL, "queue", DB_QUEUE,
    db_flags, 0644);
    My application has one reader threads and one writer thread. The
    writer write to the queue with the "DB_APPEND" flag and the reader
    consumes the queue using the "DB_CONSUME_WAIT" flag.
    After inserting a few thousand messages the database fails to insert
    any new records and starts returning the following error.
    "unable to allocate space from the buffer cache"
    From the db_stat -e output (attached below) I can see that none of
    the buffer cache pages are ever being freed up.
    149907 Requested pages found in the cache (99%)
    3 Requested pages not found in the cache
    2004 Pages created in the cache
    0 Pages read into the cache
    0 Pages written from the cache to the backing file
    0 Clean pages forced from the cache
    0 Dirty pages forced from the cache
    0 Dirty pages written by trickle-sync thread
    2004 Current total page count
    0 Current clean page count
    2004 Current dirty page count
    4099 Number of hash buckets used for page location
    153851 Total number of times hash chains searched for a page
    BDB reference manual (http://www.oracle.com/technology/documentation/
    berkeley-db/db/api_c/frame.html) says that the pages associated with a
    queue can only be reclaimed by setting a queue extent by using the
    "set_q_extentsize" method. When I try to use this method on my in-
    memory database I get the following error.
    " Extent size may not be specified for in-memory queue database"
    Does this mean that I can never use the queue access method for in-
    memory database? Because no matter how big of a shared memory pool I
    allocate to the in-memory database it will eventually get used up by
    the queue (if I'm inserting and consuming records) and there is no way
    to free up the pages associated with the deleted records.
    thx
    nina

    As far as I know you can choose any method as long as print setting are set to "send to spool"
    Regards
    Juan

  • Issues with access method G.

    hello,
    i am using access method G,its working fine users are able to get the print outs , but the issue is in the windows selection box only ALL is highligted and they are not able to select the page numbers its disabled.
    and one  more issue is we have 2 printers one head office and site office.In head office printer they are able to take the print out along with their company logo but in the site office with same configuration and same kind printer logo is not being displayed .
    kindly suggest me for these issues.
    thanks in advance.
    regards,
    Divya

    Usually this means, that some necessary controls are not properly registered in the registry and hence can't be found. You may solve that by removing the SAPGUI from the PC completely, booting the machine and reinstall the GUI.
    Markus

  • Hash function for the DB_HASH access method

    Hello!
    I use BDB 4.5.20 and tried to use a DB_HASH access method providing my own hash function, since I have very specific keys. Keys are UUID, and they all have the same length (16 bytes) and specific binary representation which can be used to generate hash code. After I set own hash function using Db::set_h_hash() I get the call of this function during database open with a very strange data I was not expected.
    Backtrace is:
    storaged.dll!tbricks::storage::StorageBDBBackend::bdb_hash_func(Db * db=0x01dba398, const void * key=0x1318326c, unsigned int size=12) Line 35     C++
    libdb45d.dll!_db_h_hash_intercept_c(__db * cthis=0x01dba418, const void * data=0x1318326c, unsigned int len=12) Line 483 + 0x97 bytes     C++
    libdb45d.dll!__ham_init_meta(__db * dbp=0x01dba418, hashmeta33 * meta=0x01dbb120, unsigned int pgno=0, _db_lsn * lsnp=0x0013f10c) Line 291 + 0x13 bytes     C
    libdb45d.dll!__ham_new_file(__db * dbp=0x01dba418, __db_txn * txn=0x01dbacc8, __fh_t * fhp=0x01dbafb8, const char * name=0x01dbac60) Line 402 + 0x13 bytes     C
    libdb45d.dll!__db_new_file(__db * dbp=0x01dba418, __db_txn * txn=0x01dbacc8, __fh_t * fhp=0x01dbafb8, const char * name=0x01dbac60) Line 284 + 0x15 bytes     C
    libdb45d.dll!__fop_file_setup(__db * dbp=0x01dba418, __db_txn * txn=0x01dba9e0, const char * name=0x01585624, int mode=384, unsigned int flags=129, unsigned int * retidp=0x0013f458) Line 586 + 0x42 bytes     C
    libdb45d.dll!__db_open(__db * dbp=0x01dba418, __db_txn * txn=0x01dba9e0, const char * fname=0x01585624, const char * dname=0x00000000, DBTYPE type=DB_HASH, unsigned int flags=129, int mode=0, unsigned int meta_pgno=0) Line 154 + 0x1d bytes     C
    libdb45d.dll!__db_open_pp(__db * dbp=0x01dba418, __db_txn * txn=0x01dba9e0, const char * fname=0x01585624, const char * dname=0x00000000, DBTYPE type=DB_HASH, unsigned int flags=129, int mode=0) Line 1079 + 0x23 bytes     C
    libdb45d.dll!Db::open(DbTxn * txnid=0x00000000, const char * file=0x01585624, const char * database=0x00000000, DBTYPE type=DB_HASH, unsigned int flags=33554561, int mode=0) Line 313 + 0x30 bytes     C++
    storaged.dll!tbricks::storage::BDBBackend::open_db(Db & db={...}, const char * fileName=0x01585624, DBTYPE dbType=DB_HASH) Line 372 + 0x21 bytes     C++
    Db::set_h_hash() documentation says nothing about behaviour like this.
    Why BDB calls my hash function during database open while I do not put()/get() any data?
    Firstly I was implemented hash function aborting the application if key length is not equal 16, because it looks like application internal error, and for sure application was aborted because of that.
    How should I treat this data and do I have to return any hash code at all in this case?

    A quick look at the code indicates that this call is to run the hash function against a known value ("%$sniglet^&") to store the result in the DB file (or to compare the result against a result stored in the file, if the file already exists). Since a failure of this comparison prints "hash: incompatible hash function", I think we can assume that this is done to ensure the hash function being used is compatible with the hash function used when the DB file was created.
    So you need to be able to provide some form of hash output for this.

  • Error accessing method in 3rd party dll

    already asked for help a few weeks ago but no one answered and i still wasn't able to figure out what the problem...
    i have a 3rd party dll and im trying to access some methods (USING JNI)- i have no problem accessing methods with no parameters and they work fine but a method with parameters just wwont work.
    i guess that its something with my syntax - probably incorrect data type when converting from java type to native type...
    i dont have any previous expirience with c so help would be appriciated...
    heres my java code:
    package pavel2.javay;
    class Test {
        native String VersionGet();
        native String loadDll();
        native String LogInMT4(int account,String  pass,String server,String a,String v,String c,String d);
        static {
            System.loadLibrary("pavel2");
        public static void main(String args[]) {
            Test t = new Test();
            System.out.println(t.loadDll());
            System.out.println(t.LogInMT4(230622,"qd1bvvs","Orion-DEMO","","","",""));
    }and the dll wrapper:
    #include <windows.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\jni.h>
    #include <C:\\Program Files\\Java\\jdk1.6.0_10\\include\\win32\\jni_md.h>
    typedef char*   (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);
    HINSTANCE hOle2Dll;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_loadDll(JNIEnv * env, jobject jobj){
         hOle2Dll = LoadLibrary(TEXT("D:\\pavel2\\tzmt4api.dll"));
         return  (*env)->NewStringUTF(env, "tzmt4api.dll loaded!!");
         /*if (OleInitialize(NULL) == S_OK)
              if ( hOle2Dll >= 32 )
                   //FreeLibrary ( hOle2Dll ) ;
    JNIEXPORT jstring JNICALL Java_pavel2_javay_Test_LogInMT4(JNIEnv * env, jobject jobj,jint login, jstring password, jstring server,jstring proxyserver,jstring proxytype,jstring proxylogin,jstring proxypassword){
                   LogIn_MT4 fnc ;
                   fnc = (LogIn_MT4)GetProcAddress ( hOle2Dll , "LogIn_MT4" ) ;
                   if ( fnc == NULL )
                        MessageBox(NULL, TEXT("Error loading Method"), TEXT("Error"), MB_OK);
                   else
                   const char *pass = (*env)->GetStringUTFChars(env, password, NULL);
                   const char *ser = (*env)->GetStringUTFChars(env, server, NULL);
                   const char *proxyserv = (*env)->GetStringUTFChars(env, proxyserver, NULL);
                   const char *proxyt = (*env)->GetStringUTFChars(env, proxytype, NULL);
                   const char *proxylog = (*env)->GetStringUTFChars(env, proxylogin, NULL);
                   const char *proxypass = (*env)->GetStringUTFChars(env, proxypassword, NULL);
                   int a=fnc(login, pass, ser, proxyserv,proxyt,proxylog,proxypass);
                   (*env)->ReleaseStringUTFChars(env, password, pass);
                   (*env)->ReleaseStringUTFChars(env, server, ser);
                   (*env)->ReleaseStringUTFChars(env, proxyserver, proxyserv);
                   (*env)->ReleaseStringUTFChars(env, proxytype, proxyt);
                   (*env)->ReleaseStringUTFChars(env, proxylogin, proxylog);
                   (*env)->ReleaseStringUTFChars(env, proxypassword, proxypass);
                   //return  (*env)->NewStringUTF(env, empty);
                   return  (*env)->NewStringUTF(env, "logged");
                             //int c = fnc(login, *password, *server, "", "", "", "");
    BOOL APIENTRY DllMain( HMODULE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
         switch (ul_reason_for_call)
         case DLL_PROCESS_ATTACH:
         case DLL_THREAD_ATTACH:
         case DLL_THREAD_DETACH:
         case DLL_PROCESS_DETACH:
              //todo: unregister class here
              break;
         return TRUE;
    }this is the output:
    tzmt4api.dll loaded!!
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0xcccccccc, pid=3792, tid=3824
    # Java VM: Java HotSpot(TM) Client VM (11.0-b15 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C 0xcccccccc
    # An error report file with more information is saved as:
    # C:\Program Files\TradeZone\TZMT4APInew\Work\hs_err_pid3792.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Process finished with exit code 1
    p.s - it looks like the login method works but when returning to java the VM crashes
    can anyone help me?

    jschell - tried this already and got the same ..
    ejp - i cant do this bucause i dont have a .lib and this proccess can run only on windows unfortunately...
    my problem is that i dont know the how to create the correct type for the method:
    this is the signature:
    typedef int  (*LogIn_MT4)( const int login, const char *password, const char *server, const char *proxyserver,
                   const char *proxytype, const char *proxylogin, const char *proxypassword);how do i create in c this var types?
    int a=fnc(1531, "asas", "asd", "","","","");how do i create
    const char *xxx type? and its okay for the int just to write a number or i also need to declare it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • My finger print access to my phone is not working how do I repair it

    My finger print access on my iPhone was working now it is not.  How do I fix it?

    Set up Touch ID with your fingerprint - Touch ID - iPhone Basics - Apple Support

  • Problem printing the methods due to lack of understanding

    Okay, i'm pretty sure i have all my code correct except for the System.out.println's at the top to print the methods below. What am i doing wrong? Its suppose to be a program that prompts for amount of random numbers, the first part sorts/finds the median, and the second part finds the mode.
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    public class Assignment2part1
    public static void main (String arg[])
         String numRandomNum= JOptionPane.showInputDialog("How many random numbers would you like?");
       int setRandomNum = Integer.parseInt(numRandomNum);
         Random num = new Random();
         for (int i = 0; i < setRandomNum ; i++)
                int number =num.nextInt(10) + 1;
                System.out.println(number);
              System.out.println(median(number[] ));   // #############################Problem here
              System.out.println(mode(????));     // #################################Problem here
    public static void median (int[] a)
              int temp=0;
              for (int i=0; i<a.length; i++)
                   for (int j=0; j<a.length; j++)
                   if (a[i] > a[j])
                        temp = a;
                        a[i] = a[j];
                        a[j] = temp;
              if (a.length%2==1)
                   return a[a.length/2];
                   else
                        return ( a[a.length/2] + (a[a.length/2]-1)/2 );
    public static int mode (int[] a)
         int mostFreqNum=-1, mostFreqCount=1, noModeFlag=0, cNum=0, cCount=0;
         for (int i=0; i<a.length; i++)
              cCount=1;
              cNum=a[i];
              for (int j=0; j<a.length; J++)
                   if (i!=j && a[j] != mostFreqNum && a[j] == cNum)
                        cCount++;
              if (cCount>mostFreqCount)
                   mostFreqCount=cCount;
                   mostFreqNum=cNum;
                   noModeFlag=0;
              else if (cCount==mostFreqCount)
                   noModeFlag=1;
              if (noModeFlag=1)
                   return -1;
              else
                   return mostFreqNum;

    No, i completely understand, so it needs to be in the main section, SO would it be something like.......
    import javax.swing.*;
    import java.io.*;
    import java.util.*;
    public class Assignment2part1
    public static void main (String arg[])
         String numRandomNum= JOptionPane.showInputDialog("How many random numbers would you like?");
       int setRandomNum = Integer.parseInt(numRandomNum);
         Random num = new Random();
         for (int i = 0; i < setRandomNum ; i++)
                int number =num.nextInt(10) + 1;
                System.out.println(number);
              int [] a= {number};          //#################Edited
              System.out.println(median(number[] ));
              System.out.println(mode(
    public static int median (int[] a)
              int temp=0;
              for (int i=0; i<a.length; i++)
                   for (int j=0; j<a.length; j++)
                   if (a[i] > a[j])
                        temp = a;
                        a[i] = a[j];
                        a[j] = temp;
              if (a.length%2==1)
                   return a[a.length/2];
                   else
                        return ( a[a.length/2] + (a[a.length/2]-1)/2 );
    public static int mode (int[] a)
         int mostFreqNum=-1, mostFreqCount=1, noModeFlag=0, cNum=0, cCount=0;
         for (int i=0; i<a.length; i++)
              cCount=1;
              cNum=a[i];
              for (int j=0; j<a.length; J++)
                   if (i!=j && a[j] != mostFreqNum && a[j] == cNum)
                        cCount++;
              if (cCount>mostFreqCount)
                   mostFreqCount=cCount;
                   mostFreqNum=cNum;
                   noModeFlag=0;
              else if (cCount==mostFreqCount)
                   noModeFlag=1;
              if (noModeFlag=1)
                   return -1;
              else
                   return mostFreqNum;
    I'm still not quite sure on the syntax of the print ln, what needs to go into the ().   I appreciate the step by step help                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to give "print"access to the requisitioner

    Hi,
    I need to know the procedure,how to give "PRINT" access to the requisitioner. We have this access to the buyer(monitor shopping cart/check status/process PO etc....)
    Also how can a requisitioner at least print PO fromECC?
    pls help.
    Bis

    Hi Venkatesh ,
    This note does not mention SRM 7.0 .  I just wanted to confirm from you that the changes the note mentions does in fact work in SRM 7.0?
    We are upgrading to SRM 7.0 and are thinking of switching from classic to extended classic, but ONLY if we can have the PO output in the ERP system.
    Thanks!
    -Paul

  • Using an old AEBS as a printer access point

    I would like some help please on how to configure an old (2006 UFO) Airport Extreme Basestation as a wireless hub I can use to plug some printers into for printing over a wireless network (if it can be done). I'm using Airport utility 5.3.1.
    I recently purchased a 500GB Time Capsule which acts as both a backup device and my ADSL wireless router. This made my old Airport extreme redundant, but I want to use it as a wireless printer server. But I'm a bit stuck on how to configure my Airport network and Apple support and a local reseller haven't a clue!
    To start with I setup my Time Capsule device, connected it to my D-Link ethernet modem and everything is working fine. I then reset the old AEBS which creates a new wireless network called Apple Network a78a67. I then switched back to my Time Capsule network and did the following in Airport Utility to Time Capsule:
    - Choose Manual Setup from the Base Station menu, or double-click the base station to open the configuration in a separate window. Enter the base station password if necessary.
    - Click AirPort in the toolbar, and then click Wireless.
    - Choose “Create a wireless network” from the Wireless Mode pop-up menu, and then select the “Allow this network to be extended” checkbox.
    I applied the settings and restarted the device. Then I switched back to to the new Apple Network a78a67 created through reseting the AEBS. This is the bit that makes little sense to me...
    - Next, select the base station that will extend this network, and choose Manual Setup from the Base Station menu, or double-click the base station to open its configuration in a separate window. Enter the base station password if necessary.
    - Choose “Extend a wireless network” from the Wireless Mode pop-up menu, and then choose the network you want to extend from the Network Name pop-up menu.
    - Enter the base station network and base station password is necessary.
    - Click Update to update the base station with new network settings.
    The problem being that I DO NOT have an option to choose “Extend a wireless network” from the Wireless Mode pop-up menu. The only two options I have are to "Create a Wireless Network" or "Participate in a WDS Network". Likewise there are no options to choose a network name from a pop-up menu. So although I can configure and switch between two wireless networks, it seems the two devices don't want to talk with one another, thus I have two wireless networks.
    What I want to do is to have one single wireless network - with Time Capsule providing internet access and the AEBS providing wireless printer access.
    I have tried configruing the AEBS using the "Participate in WDS Network", but on saving the settings an error message is displayed regarding a lack of WDS Nodes???
    Can anyone advise please?

    willonamac wrote:
    Thanks for your help and advice. I got there eventually in a roundabout way! At one point I was given an error message stating that the configuration could not be retrieved from the Time Capsule. Then the internet connection via the modem was lost. But after a couple of intensive restarts, both units appeared under the same network and I can see my printer connected now.
    I've seen this with AEBSs when changing their configurations, too. Glad you got round the problem in the end.
    One more question through, I've connected a 4 port USB hub to the Airport Extreme Basestation but I can only get one printer to show up at a time under System preferences and Airport Utililty. Is this because the USB hub being used is not self powered or because this model of Airport Extreme only allows connectivity to a single printer at any one time?
    I think it is because you can only use one printer at a time with this model. See this knowledge base article for details. You likely have firmware version > 5.5 but I'm guessing don't have the relevant AEBS model. Take a look, though.
    - cfr
    Many thanks!

  • DB_HEAP access method with db_hotbackup utility

    I open a Db handle with DB_HEAP access method and do nothing about it . When first created , the db file is 8kb , but after excuting db_hotbackup utility the db file is 4kb. if I do db_hotbackup under the failover environment , BDB give me an error message :
         db_hotbackup: Backup Failed: BDB0075 DB_PAGE_NOTFOUND: Requested page not found
         db_hotbackup: BDB5043 HOT BACKUP FAILED!
    Other access method is ok . I try to set the Db pagesize 8kb but still wrong .
    I think a db file is bigger than a page size. So it's hard to understand.
    Thanks

    Sorry about mix the two problems. Let me make it clearly :
    1 .Create an Environment contains an empty DB_HEAP database file with the code below.
         1.1 compile the code and mkdir "fileHome" for Environment direcotory,
         1.2 execute the program
    2. execute { db_hotbackup -h ./fileHome -b ./failover } . and in failover directory the database file will  become smaller than it in Environment direcotry.
    3. chang code { const char* fileHome = "fileHome"; } to { const char* fileHome = "failover"; }
    4. compile the changed code and execute again.( for creating region files in the failover directory)
    5. execute { db_hotbackup -h ./failover -b ./failover_back } after this we can see the wrong message :
               db_hotbackup: Backup Failed: BDB0075 DB_PAGE_NOTFOUND: Requested page not found
               db_hotbackup: BDB5043 HOT BACKUP FAILED!
    The problem I said on the previous time is I try to insert some record to the database but failed. I just wonder if this BDB version is not supportint DB_HEAP access method.
    The code is :
    #include<iostream>
    #include<cstring>
    #include<cstdlib>
    #include"db_cxx.h"
    int main()
      u_int32_t env_flags = DB_CREATE |
           DB_INIT_LOCK |
           DB_INIT_LOG |
           DB_INIT_TXN |
           DB_INIT_MPOOL;
      u_int32_t db_flags = DB_CREATE | DB_AUTO_COMMIT;
      const char* fileHome = "fileHome";
      const char* filename = "simpletxn.db";
      Db *dbp = NULL;
      DbEnv myEnv(0);
      try{
      myEnv.open(fileHome,env_flags,0);
      dbp = new Db(&myEnv,0);
      dbp->set_pagesize(8 * 1024);
      dbp->open(0,
       filename,
       NULL,
       DB_HEAP,
       db_flags,
       0);
      }catch(DbException& e){
      std::cerr<<"error when opening environment and database: "<<filename<<","<<fileHome<<std::endl;
      std::cerr<<e.what()<<std::endl;
      try{
      if(dbp != NULL)
      dbp->close(0);
      myEnv.close(0);
      }catch(DbException& e){
      std::cerr<<"error when closing environment and database: "<<filename<<","<<fileHome<<std::endl;
      std::cerr<<e.what()<<std::endl;
      return 0;
    Thanks !!!

  • The selected printer connection method is incorrect. Select the....... ERRO

    Just upgraded to 10.5. I'm setting up a few printers and a plate maker. Got everything setup as far as I could tell but one machine wont work. It's an ImageRunner 8500 from Canon. When I try to print to that printer I get this:
    The selected printer connection method is incorrect. Select the correct printer connection method in printer list, and then try to add the printer again.
    Not what thats about. In the printer list, It shows up there with everything else that is connected via Appletalk. I got the PPD for the Konika Minolta CPP500 installed and it prints fine... any ideas? Thanks,
    Chris

    Hi John
    I tried Appletalk but that printer does not appear. However LPD does work. I think the problem was on checking my other Macs in the office, there is no way of telling whether they are connect via IPP or LPD as the set up appears the same, i.e. IP address. When I tried to add my the printer again, I had forgotten how we set it up originally.
    Many thanks for pointing me in the right direction.

Maybe you are looking for

  • Office Web Apps Farm Across Multiple Data Centers?

    I have not been able to find any definitive information about this but the article below seems to suggest what I have in mind is not recommended.  I am not sure about supported. "Stick to one data center.  Servers in an Office Web Apps Server farm mu

  • Sync backup problem

    Hello This is my first around here with a question, but lotta times got help here with other's questions/answers Before sending my Iphone to   , i've made two backups on my computer through itunes in windows 7. I've made two (really i don't know why)

  • UK user on BT Hub3-ipad wifi problem-Help!

    Since upgrading to OSX 10.8.1 I am unable to connect my ipad2 to wifi using BTHUB3 (UK user). Have tried all the obvious things but cannot get this to work. I am told this is a glitch on apple software and an upgrade is due Sept 2012. Any ideas? Thx

  • Combine fillable PDF-Forms

    Hello, I am testing just the Acrobat Pro and have three PDF forms with advanced reader rights (fill and save) created. I would like to fill these PDFs via FDF save from my Access database and to then combine them into one file. When trying to use the

  • Ora:-12801: error signaled in parellel query serverp040

    I want to order by data in with statement Using Below query I am getting an error "ora:-12801: error signaled in parellel query serverp040" select * from ( With Bk_lifephase as(select a.id,a.order_dt,VIDEOS,VETERAN,CAT from product a, profile b where