Need help getting simple Nat config to work

I can't seem to get the below Nat config to work. I removed the crypto from the fa0/0 for testing.
Why can't i get xlates when I ping 192.168.1.5 or 192.168.1.1? As you can see my access list isnt getting touched?
What am i missing?????
==============================================
CCC#sh access-lists
Standard IP access list 1
    10 permit 10.10.10.0, wildcard bits 0.0.0.255
==============================================
CCC#sh ip nat t
CCC#
==============================================
CCC#sh ip nat s
Total active translations: 0 (0 static, 0 dynamic; 0 extended)
Outside interfaces:
  FastEthernet0/0
Inside interfaces:
  FastEthernet0/1
Hits: 0  Misses: 0
CEF Translated packets: 0, CEF Punted packets: 0
Expired translations: 0
Dynamic mappings:
-- Outside Destination
[Id: 2] access-list 1 interface FastEthernet0/0 refcount 0
[0] prot 6: port #7 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0.
0, flags 1
[0] prot 6: port #9 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0.
0, flags 1
[0] prot 6: port #11 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0
.0, flags 1
[0] prot 6: port #13 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0
.0, flags 1
[0] prot 6: port #19 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0
.0, flags 1
[0] prot 6: port #21 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0
.0, flags 1
=============================================================================
CCC#sh run
Building configuration...
Current configuration : 1490 bytes
version 12.4
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
hostname CCC
boot-start-marker
boot system flash c2600-adventerprisek9-mz.124-25d.bin
boot-end-marker
no aaa new-model
no network-clock-participate slot 1
no network-clock-participate wic 0
ip cef
no ip domain lookup
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
archive
log config
  hidekeys
crypto isakmp policy 2
encr 3des
hash md5
authentication pre-share
group 2
lifetime 400
crypto isakmp key cisco123 address 1.1.1.3
crypto ipsec transform-set Petaluma_VPN ah-sha-hmac esp-3des
crypto map Petaluma_1 1 ipsec-isakmp
! Incomplete
set peer 1.1.1.3
set transform-set Petaluma_VPN
match address 100
interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.0
ip nat outside
ip virtual-reassembly
speed auto
half-duplex
interface Serial0/0
no ip address
shutdown
clock rate 56000
interface FastEthernet0/1
ip address 10.10.10.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
router rip
network 1.0.0.0
network 10.0.0.0
no ip forward-protocol nd
ip route 192.168.1.0 255.255.255.0 1.1.1.3
no ip http server
no ip http secure-server
ip nat source list 1 interface FastEthernet0/0 overload
access-list 1 permit 10.10.10.0 0.0.0.255
control-plane
line con 0
line aux 0
line vty 0 4
login
end

I am getting same issure:
Dynamic mappings:
-- Outside Destination
[Id: 1] access-list NAT interface FastEthernet0/0 refcount 0
[0] prot 6: port #0 refcount 2 syscount 2 localport 4294967295, localaddr 0.0.0.
0, flags 1
[0] prot 6: port #7 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0.
0, flags 1 Dynamic mappings:
-- Outside Destination
[Id: 1] access-list NAT interface FastEthernet0/0 refcount 0
[0] prot 6: port #0 refcount 2 syscount 2 localport 4294967295, localaddr 0.0.0.
0, flags 1
[0] prot 6: port #7 refcount 1 syscount 1 localport 4294967295, localaddr 0.0.0.
0, flags 1
I don't know what this means and will try debug ip nat and get a readout.

Similar Messages

  • Need help getting simple Ethernet LAN to work under MacOS 8.6

    To avoid cross-posting, I'll just put the link to the question here:
    http://discussions.apple.com/thread.jspa?threadID=936237

    To avoid cross-posting, I'll just put the link to the question here:
    http://discussions.apple.com/thread.jspa?threadID=936237

  • Need help getting Adobe OnLocation CS3 to work with windows 7 64 bit. Any ideas?

    Need help getting Adobe OnLocation CS3 to work with windows 7 64 bit.  The program installed ok and the S/N took.
    The program does record video and audio HDV M2T.
    The problem is video doesn't display or play back on the monitor component @ 16:9 or 720 p.  4:3....
    The scopes respond as do the audio components when recording. (with a blank monitor component).
    The video does play back on my system no problem.
    Any ideas?
    Dan

    Moving the discussion to OnLocation
    Thanks,
    Atul Saini

  • Desperately need help getting Flash music player to work correctly!

    I'm working up a Flash template for a site that has a music player for 3 different tracks.  The template came with 3 separate fla files for each track (Music1.fla, Music2.fla and Music3.fla), which I opened and imported my own mp3's into, set them to repeat only once, and then published the swf's.  The music player works fine, but when the first song ends, the music stops unless you click on the next music track in the player.  I'd like to have it where after the first song finishes it automatically starts playing the next song, then when it finishes the 3rd and final song it goes back to song one.  How can I do this?  Is it as easy as inserting some Actionscript into the Music fla's or would it have to be fixed in the player itself on the site's fla?
    I have the site uploaded here to check out:
    http://truetilldeathhq.com/main8_v7/main8_v7.html
    Thanks in advance for your help, I'm really in a bind and need to get this fixed quickly!!

    K, give this a shot.
    All you need to do is duplicate the code on the buttons in the sound controller that load the three songs.  So on the last frame of music1.fla, enter -
        path="music2.swf";
        loadMovieNum(path,1);
    Do the same for the other music flas using the next song number. You may have to add _root. before the loadMovieNum command, so it would be:
    _root.loadMovieNum(path,1);
    This will only work if the mp3s are imbedded in the music flas.  You will have to add a zillion frames to the timeline to see where the audio file ends, create a keyframe there and enter code on the keyframe.

  • I need help getting my Thunderbolt display to work with Windows 7 through Bootcamp.

    I recently bought a thunderbolt display and it works great in my Mac environment.  But I recently added Bootcamp and Windows 7 (I need since my Broker Dealer only uses Internet Explorer).  Unfortunately, I can't seem to get Windows to recognize my Thunderbolt display.  Today, I spent 2 hours with a very kind advisor from Apple Support but we didn't have any success.
    Here's my setup:
    MacBook Pro (purchased new in 2011) with i7 processor
    Thunderbolt Display
    Lion OS (all updates installed)
    Bootcamp with Windows 7 Ultimate 64-bit (all updates installed)
    With the help of Apple Support, I downloaded and reinstalled (through the repair option) all the Bootcamp drivers.  I shut down my computer, plugged in the Thunderbolt display, turned it on and booted into Windows 7.  When the Windows Welcome screen appears, it shows on my Thunderbolt display for about 2-3 seconds.  But the thunderbolt quickly goes black.  My MacBook Pro changes to a 640x480 resolution and the Thunderbolt remains blacked out--with no signs of even a single flicker.  Once the computer finishes the start-up, my MacBook Pro remains in a 640x480 resolution, with no option to change the resolution (it's grayed out in Windows control panel).  If I unplug the Thunderbolt cable from my MacBook pro, the high resolution of my MacBook pro snaps back to normal.
    To me, this seems like some type of driver problem but I must be missing something simple because it appears that Thunderbolt works with Bootcamp and Windows 7--based on some of the readings I've found here in the Apple support community.  I'm most appreciative of anyone's help here.

    Moving the discussion to OnLocation
    Thanks,
    Atul Saini

  • Need help getting DataProvider cursor methods to work in JSC

    Hi, I'm a newbie to Creator as well as JSF. I'm using JSC Update 1. I've
    worked through a couple of the beginning tutorials including "Performing
    Inserts, Updates, and Deletes" without a problem. I'm now trying to
    craft a simple jsf database form application on my own using the sample
    travel database and I'm stuck!
    I put text fields on the form corresponding to each of the 4 fields in
    the PERSON table and bound them to the fields in the table which, on
    examination, resulted in a CachedRowSetDataProvider (personDataProvider)
    in Page1 and a CachedRowSetXImpl (personRowSet) in SessionBean1. I then put 4 buttons on the form (First, Previous, Next, Last) for record
    navigation. Here is the code I put in the first two actions (the others are
    the same except for the cursor methods):
    public String btn_firstrec_action() {
    try {
    personDataProvider.cursorFirst();
    } catch (Exception e){
    error("cursorFirst failed: " + e.getMessage());
    log("cursorFirst failed " , e);
    return null;
    public String btn_next_action() {
    try {
    personDataProvider.cursorNext();
    } catch (Exception e){
    error("cursorNext failed: "+ e.getMessage() );
    log("cursorNext failed " , e);
    return null;
    etc.
    When I run the application using the bundled app server I get strange
    behavior when I click the navigation buttons. There are 6 records in the
    table. The application opens up displaying the data for the first
    record. Clicking "Next" takes me to record 2--so far so good. However,
    with repeated clicks on "Next", "Previous", "First" the data displayed in
    the form remains the same. If I click "Last" (personDataProvider.cursorLast(); ), the data from record 6 is rendered OK!
    I worked a little in the debugger. I added a cursorChanging method and
    put a break point in there. Then I watched the index attributes for rk1
    an rk2 as I continued the execution. I had to hit Alt+F5 (Continue)
    2 to 4 times on each button click depending on the action--4X
    with "Next" and "Previous". For each button click the index values would
    change at first to what logically seemed the correct values but
    then snap back to 0 or 1 as I kept continuing depending on the sequence--
    wierd to me.
    I also tried configuring all the form fields in a virtual form with
    "Participate" on for the text fields and "Submit" on for the buttons
    with the same result (I was really "shooting in the dark" here!).
    I'm obviously missing something here--this shouldn't be this difficult!
    I have scanned through a lot of the excellent tutorials, articles and forum posts as well as some of the sample apps but haven't as yet found a similar example of using the DataProvider cursor methods which seems pretty basic to me but, I could have easily missed seeing what I needed.
    Any help would be greatly appreciated--I'm really counting on this tool
    to get an overdue project going so I'm somewhat desperate.
    Thanks, Len Sisson

    This happened to me as well the first time I used the JSC (and I was a newbie in web). I believe it is because everytime you hit the button, actually the sequence of program will back to init(), button_action(), prerender(), destroy(). So, try to remember the last state of the cursor position using session variable. And then you put a code in the init() to move back to the last cursor position.
    Check the sample program provided by JSC (SinglePageCrudForm). This sample demonstrate how to put a code in init(), destroy() in order to 'remember' the last position.
    hope that helps
    Message was edited by:
    discusfish

  • Need help getting my itunes library to work!!

    Recently my computer CRASHED.... it wouldn't let me into windows, it was pulling all kinds of error messages. So to fix the problem I wiped the system and reinstalled everything. However, now the Itunes that came with my Ipod doesnt work... So I came here to the Apple website and downloaded and installed the LATEST version. That opened and ran fine, however it wants me to erase my Ipod because the library is on another version of Itunes and you can't have more than one. So I deleted itunes again and haven't placed it back in since I dont know what to do to fix the problem. There is nearly NO space on the computer even though there is about 1/20th of what was on it PRIOR to the crash, in it now. Can anyone help me figure out how to get my itunes to work again without completely erasing my ipod?

    There is nearly NO space on the computer even though there is about 1/20th of what was on it PRIOR to the crash, in it now
    I highly suggest before you fix your computer before you worry about getting iTunes installed, especially since you seem to be missing a large portion of your HD space.
    To get music off your iPod, there are lots of applications to do this.
    Check out this post...
    http://discussions.apple.com/thread.jspa?messageID=4110751?

  • Need help getting my surround sound to work when watching TV

    I recently got the Samsung Blueray Home Theatre system and it works fine while watching movies, but I can't seem to get the system to work while watching regular tv?  Any ideas?

    In order to get sound while you are watching braodcast tv or satalite you have to route the sound to your receiver some how. If you use a external source for watching tv, like a digital cable box or satalite receiver you will have to run the sound to your receiver from that component. A digital connection would be best so your receiver can decode dolby digital if its available for the program you are watching. And optical cable, digital coax (looks like an RCA cable) or HDMI if your components utilize it. For the HDMI you would need to have an HDMI out on the cable/satalite box and a HDMI input on the stereo receiver.
    If your not using a cable or satalite box then you need to run an optical cable from the optical out of your tv to an optical input on the receiver.
    Without knowing exactly what components you are using its hard to say which would be the best way to hook it up.

  • Need help getting open nat type on home hub 3 for ...

    just got the homehub 3 and tried to play black ops but cannot connect because of moderate nat type. i forwarded the ports on my old hub 2, but cannot find anywhere to help me do it on 3.can anyone help?

    Hi Robert-Allison,
    Thanks for posting. Take a look here for some information on Hub 3 nat issues. Let us knoe if that helps.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Need help getting my NAT open on a WRT54G

    Ok I have a WRT54G. I have 2 Xbox 360s both with Xbox Live. One is in a room with a wired connection the other is in a room that doesn't have any lines going to it so it has to be wireless. I am not gonna chip out $100 for the xbox wireless adapter, so I connected the xbox to my laptop and did internet sharing. It works fine, but the NAT is moderate rather than open. In the other room with the wired connection it is open. With the NAT being moderate it makes it nearly impossible to join any games. So what should I do? Also I have a Powerbook G4 laptop running Mac OS X 10.4.11

    Well try to change the positions of two xboxes. If still xbox connected to laptop has moderate NAT, then may be Internet sharing is not properly done.
    If "xbox currently having moderate NAT" is still moderate even with the ethernet cable connection direct to router, then settings on xbox needs to be verified.

  • Need help getting my 120g hd to work

    hello there folks,
    i was wondering if i could get some help with a hard drive issue. i recntly got a g4 that was thrown out due to upgrading. i was told the only thing wrong with it was that the hard drive was taken out. so i went out and got a 120g hd and installed it. the machine turns on and all, every thing is cool. the thing is, it running of a 25g hd. what i want to do is make the 120g drive i bought the main drive. i want to run everything off this drive. is that the right thing to do? should i still use the 25g drive? i don't realy know. i went to disk utilitys but cant figure out how to do this. can some one help me. im just not that good at this kind of stuff yet. hope i explained my self corectly. please don't laugh at me im not a mac genius yet. lol
    thanks in advance.

    when i start up the computer i get a message that says
    DISK INSETION
    the disk you inserted was not readable by this computer
    initiate ignore
    i click on initiate but don't know what do do next.
    it shows the dirve in the right colomb but i don't know what to do from there.
    do i have the right drive? i bought it from techserve i told them what i had and that's what they gave me.
    im on the computer now, so it must be the corect one right?
    would the computer still run if it was the wrong drive.
    what do i have to do?

  • Help Getting Simple ODCI program to work.

    Hello. I am trying to understand a pipelined table function / cartridge example given in the oracle docs:
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14289/dcitblfnxemp.htm#sthref859
    But, I can't seem to get my example to work. I basically made some modifications so that the pipelined table will read from a function, the values of Books. I never get to the point where it can actually do a read. The code is below, but let me explain what I see.
    Here's what appears to be my problem: the value of self in ODCITableStart is different than thevalue of self passed to ODCITableFetch. I don't know if that could be the problem, but is this normal?
    So what happens is in ODCITableStart, a key is generated. And I can see the value being 1. This is assigned to self->key.
    Later, in ODCITableFetch, we try to get the key back. We call GetStoredCtx(), which tries to retrieve the key from self->key. This should be a pointer, but what gets returned iis a null value. Then, ofcourse, the whole thing fails.
    Anyways, what am I doing wrong here?
    thanks.
    book.sql
    -- Create the types for the table function's output collection
    -- and collection elements
    CREATE OR REPLACE TYPE BookType AS OBJECT
    lastname VARCHAR(30),
    firstname VARCHAR(30),
    title VARCHAR(30)
    CREATE OR REPLACE TYPE BookTypeSet AS TABLE OF BookType;
    -- Create the external library object
    CREATE OR REPLACE LIBRARY BookLib IS '/home/me/playcode/book.so';
    -- Create the implementation type
    CREATE OR REPLACE TYPE BookImpl AS OBJECT
    key RAW(4),
    STATIC FUNCTION ODCITableStart(sctx IN OUT BookImpl, filename in varchar2)
    RETURN PLS_INTEGER
    AS LANGUAGE C
    LIBRARY BookLib
    NAME "ODCITableStart"
    WITH CONTEXT
    PARAMETERS (
    context,
    sctx,
    sctx INDICATOR STRUCT,
    filename,
    RETURN INT
    MEMBER FUNCTION ODCITableFetch(self IN OUT BookImpl, nrows IN NUMBER,
    outSet OUT BookTypeSet) RETURN PLS_INTEGER
    AS LANGUAGE C
    LIBRARY BookLib
    NAME "ODCITableFetch"
    WITH CONTEXT
    PARAMETERS (
    context,
    self,
    self INDICATOR STRUCT,
    nrows,
    outSet,
    outSet INDICATOR,
    RETURN INT
    MEMBER FUNCTION ODCITableClose(self IN BookImpl) RETURN PLS_INTEGER
    AS LANGUAGE C
    LIBRARY BookLib
    NAME "ODCITableClose"
    WITH CONTEXT
    PARAMETERS (
    context,
    self,
    self INDICATOR STRUCT,
    RETURN INT
    -- Create table function
    CREATE OR REPLACE FUNCTION BookFunc( lastname in varchar2) RETURN BookTypeSet
    PIPELINED USING BookImpl;
    -- Cleanup
    drop type BookImpl;
    drop function BookFunc;
    drop type BookTypeSet;
    drop type BookType;
    book.c:
    #include <assert.h>
    #include <unistd.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <stdarg.h>
    #include <signal.h>
    #include <errno.h>
    #include <time.h>
    #ifndef OCI_ORACLE
    # include <oci.h>
    #endif
    #ifndef ODCI_ORACLE
    # include <odci.h>
    #endif
    PRIVATE TYPES AND CONSTANTS
    /* The struct holding the user's stored context */
    struct StoredCtx
    OCIStmt* stmthp;
    FILE *fio;
    char filename[50];
    typedef struct StoredCtx StoredCtx;
    /* OCI Handles */
    struct Handles_t
    OCIExtProcContext* extProcCtx;
    OCIEnv* envhp;
    OCISvcCtx* svchp;
    OCIError* errhp;
    OCISession* usrhp;
    typedef struct Handles_t Handles_t;
    /********************** SQL Types C representation **********************/
    /* Table function's implementation type */
    struct BookImpl
    //short _atomic;
    OCIRaw *key;
    char *filename;
    typedef struct BookImpl BookImpl;
    struct BookImpl_ind
    //short atomic;
    short key;
    short filename;
    typedef struct BookImpl_ind BookImpl_ind;
    /* Table function's output collection element type */
    struct BookType
    OCIString* lastname;
    OCIString* firstname;
    OCIString* title;
    typedef struct BookType BookType;
    struct BookType_ind
    //short _atomic;
    short lastname;
    short firstname;
    short title;
    typedef struct BookType_ind BookType_ind;
    /* Table function's output collection type */
    typedef OCITable BookTypeSet;
    /* Static Functions */
    static int GetHandles(OCIExtProcContext* extProcCtx, Handles_t* handles);
    static StoredCtx* GetStoredCtx(Handles_t* handles, BookImpl* self,
    BookImpl_ind* self_ind);
    static int checkerr(Handles_t* handles, sword status);
    /* Functions definitions */
    /* Callout for ODCITableStart */
    int ODCITableStart(OCIExtProcContext* extProcCtx, BookImpl* self,
    BookImpl_ind* self_ind, char *filename)
    Handles_t handles; /* OCI hanldes */
    StoredCtx* storedCtx; /* Stored context pointer */
    ub4 key; /* key to retrieve stored context */
    /* Get OCI handles */
    if (GetHandles(extProcCtx, &handles))
    return ODCI_ERROR;
    /* Allocate memory to hold the stored context */
    if (checkerr(&handles, OCIMemoryAlloc((dvoid*) handles.usrhp, handles.errhp,
    (dvoid**) &storedCtx,
    OCI_DURATION_STATEMENT,
    (ub4) sizeof(StoredCtx),
    OCI_MEMORY_CLEARED)))
    return ODCI_ERROR;
    /* store the input ref cursor in the stored context */
    //storedCtx->stmthp=*cur;
    strcpy( storedCtx->filename, filename);
    storedCtx->fio = fopen( storedCtx->filename, "r");
    /* generate a key */
    if (checkerr(&handles, OCIContextGenerateKey((dvoid*) handles.usrhp,
    handles.errhp, &key)))
    return ODCI_ERROR;
    /* associate the key value with the stored context address */
    if (checkerr(&handles, OCIContextSetValue((dvoid*)handles.usrhp,
    handles.errhp,
    OCI_DURATION_STATEMENT,
    (ub1*) &key, (ub1) sizeof(key),
    (dvoid*) storedCtx)))
    return ODCI_ERROR;
    /* stored the key in the scan context */
    if (checkerr(&handles, OCIRawAssignBytes(handles.envhp, handles.errhp,
    (ub1*) &key, (ub4) sizeof(key),
    &(self->key))))
    return ODCI_ERROR;
    /* set indicators of the scan context */
    // self_ind->atomic = OCIIND_NOTNULL;
    self_ind->key = OCI_IND_NOTNULL;
    // For debugging
    ub4 keylen; /* length of key */
    keylen = OCIRawSize(handles.envhp, self->key);
    return ODCI_SUCCESS;
    /* Callout for ODCITableFetch */
    int ODCITableFetch(OCIExtProcContext* extProcCtx, BookImpl* self,
    BookImpl_ind* self_ind, OCINumber* nrows,
    BookTypeSet** outSet, short* outSet_ind)
    Handles_t handles; /* OCI hanldes */
    StoredCtx* storedCtx; /* Stored context pointer */
    int nrowsval; /* number of rows to return */
    char readbuffer[1024];
    char *fval = NULL;
    /* Get OCI handles */
    if (GetHandles(extProcCtx, &handles))
    return ODCI_ERROR;
    /* Get the stored context */
    storedCtx=GetStoredCtx(&handles,self,self_ind);
    if (!storedCtx) return ODCI_ERROR;
    /* get value of nrows */
    if (checkerr(&handles, OCINumberToInt(handles.errhp, nrows, sizeof(nrowsval),
    OCI_NUMBER_SIGNED, (dvoid *)&nrowsval)))
    return ODCI_ERROR;
    /* return up to 10 rows at a time */
    if (nrowsval>10) nrowsval=10;
    /* Initially set the output to null */
    *outSet_ind=OCI_IND_NULL;
    while (nrowsval>0)
    BookType elem; /* current collection element */
    BookType_ind elem_ind; /* current element indicator */
    #if 0
    OCIDefine* defnp1=(OCIDefine*)0; /* define handle */
    OCIDefine* defnp2=(OCIDefine*)0; /* define handle */
    OCIDefine* defnp3=(OCIDefine*)0; /* define handle */
    #endif
    char lastname[30];
    char firstname[30];
    char title[30];
    #if 0
    char ticker[5];
    float openprice;
    float closeprice;
    char PriceType[2];
    /* Define the fetch buffer for ticker symbol */
    if (checkerr(&handles, OCIDefineByPos(storedCtx->stmthp, &defnp1,
    handles.errhp, (ub4) 1,
    (dvoid*) &lastname,
    (sb4) sizeof(lastname),
    SQLT_STR, (dvoid*) 0, (ub2*) 0,
    (ub2*) 0, (ub4) OCI_DEFAULT)))
    return ODCI_ERROR;
    if (checkerr(&handles, OCIDefineByPos(storedCtx->stmthp, &defnp1,
    handles.errhp, (ub4) 1,
    (dvoid*) &firstname,
    (sb4) sizeof(firstname),
    SQLT_STR, (dvoid*) 0, (ub2*) 0,
    (ub2*) 0, (ub4) OCI_DEFAULT)))
    return ODCI_ERROR;
    if (checkerr(&handles, OCIDefineByPos(storedCtx->stmthp, &defnp1,
    handles.errhp, (ub4) 1,
    (dvoid*) &title,
    (sb4) sizeof(title),
    SQLT_STR, (dvoid*) 0, (ub2*) 0,
    (ub2*) 0, (ub4) OCI_DEFAULT)))
    return ODCI_ERROR;
    /* fetch a row from the input ref cursor */
    status = OCIStmtFetch(storedCtx->stmthp, handles.errhp, (ub4) 1,
    (ub4) OCI_FETCH_NEXT, (ub4) OCI_DEFAULT);
    /* finished if no more data */
    if (status!=OCI_SUCCESS && status!=OCI_SUCCESS_WITH_INFO) break;
    #endif
    /* Initialize the element indicator struct */
    // elem_ind._atomic=OCI_IND_NOTNULL;
    elem_ind.lastname=OCI_IND_NOTNULL;
    elem_ind.firstname=OCI_IND_NOTNULL;
    elem_ind.title=OCI_IND_NOTNULL;
    // Read from file.
    char field1,field2,*field3;
    char comma1, comma2;
    fval = fgets( readbuffer, sizeof( readbuffer), storedCtx->fio);
    if( fval == NULL)
    break;
    readbuffer[strlen(readbuffer)] = '\0'; // Chop newline.
    comma1 = strchr( readbuffer, ',');
    comma2 = strchr( comma1+1, ',');
    *comma1 = '\0';
    *comma2 = '\0';
    strcpy( lastname, readbuffer);
    strcpy( firstname, comma1+1);
    strcpy( title, comma2+1);
    #if 0
    field1 = readbuffer;
    field2 = strchr(field1+1, ',')+1; // +1 to move past the ','
    field3 = strchr(field2+1, ',')+1;
    memset( lastname, 0, sizeof(lastname));
    memset( firstname, 0, sizeof( firstname));
    memset( title, 0, sizeof(title));
    strncpy( lastname , field1, field2 - field1 - 1);
    strncpy( firstname, field2, field3 - field2 - 1);
    strncpy( title, field3, strlen(readbuffer) - field2 - 1);
    #endif
    } // Reading from file.
    /* assign the ticker name */
    elem.lastname=NULL;
    if (checkerr(&handles, OCIStringAssignText(handles.envhp, handles.errhp,
    (text*) lastname,
    (ub2) strlen(lastname),
    &elem.lastname)))
    return ODCI_ERROR;
    /* assign the ticker name */
    elem.firstname=NULL;
    if (checkerr(&handles, OCIStringAssignText(handles.envhp, handles.errhp,
    (text*) firstname,
    (ub2) strlen(firstname),
    &elem.firstname)))
    return ODCI_ERROR;
    /* assign the ticker name */
    elem.title=NULL;
    if (checkerr(&handles, OCIStringAssignText(handles.envhp, handles.errhp,
    (text*) title,
    (ub2) strlen(title),
    &elem.title)))
    return ODCI_ERROR;
    #if 0
    /* assign the price */
    if (checkerr(&handles, OCINumberFromReal(handles.errhp, &openprice,
    sizeof(openprice), &elem.price)))
    return ODCI_ERROR;
    #endif
    /* append element to output collection */
    if (checkerr(&handles, OCICollAppend(handles.envhp, handles.errhp,
    &elem, &elem_ind, *outSet)))
    return ODCI_ERROR;
    /* set collection indicator to not null */
    *outSet_ind=OCI_IND_NOTNULL;
    nrowsval-=1;
    return ODCI_SUCCESS;
    /* Callout for ODCITableClose */
    int ODCITableClose(OCIExtProcContext* extProcCtx, BookImpl* self,
    BookImpl_ind* self_ind)
    Handles_t handles; /* OCI hanldes */
    StoredCtx* storedCtx; /* Stored context pointer */
    /* Get OCI handles */
    if (GetHandles(extProcCtx, &handles))
    return ODCI_ERROR;
    /* Get the stored context */
    storedCtx=GetStoredCtx(&handles,self,self_ind);
    if (!storedCtx) return ODCI_ERROR;
    fclose( storedCtx->fio);
    /* Free the memory for the stored context */
    if (checkerr(&handles, OCIMemoryFree((dvoid*) handles.usrhp, handles.errhp,
    (dvoid*) storedCtx)))
    return ODCI_ERROR;
    return ODCI_SUCCESS;
    /* Get the stored context using the key in the scan context */
    static StoredCtx* GetStoredCtx(Handles_t* handles, BookImpl* self,
    BookImpl_ind* self_ind)
    StoredCtx storedCtx;           / Stored context pointer */
    ub1 key;                       / key to retrieve context */
    ub4 keylen; /* length of key */
    /* return NULL if the PL/SQL context is NULL */
    // if (self_ind->atomic == OCIIND_NULL) return NULL;
    /* Get the key */
    key = OCIRawPtr(handles->envhp, self->key);
    keylen = OCIRawSize(handles->envhp, self->key);
    /* Retrieve stored context using the key */
    if (checkerr(handles, OCIContextGetValue((dvoid*) handles->usrhp,
    handles->errhp,
    key, (ub1) keylen,
    (dvoid**) &storedCtx)))
    return NULL;
    return storedCtx;
    /* Get OCI handles using the ext-proc context */
    static int GetHandles(OCIExtProcContext* extProcCtx, Handles_t* handles)
    /* store the ext-proc context in the handles struct */
    handles->extProcCtx=extProcCtx;
    /* Get OCI handles */
    if (checkerr(handles, OCIExtProcGetEnv(extProcCtx, &handles->envhp,
    &handles->svchp, &handles->errhp)))
    return -1;
    /* get the user handle */
    if (checkerr(handles, OCIAttrGet((dvoid*)handles->svchp,
    (ub4)OCI_HTYPE_SVCCTX,
    (dvoid*)&handles->usrhp,
    (ub4*) 0, (ub4)OCI_ATTR_SESSION,
    handles->errhp)))
    return -1;
    return 0;
    /* Check the error status and throw exception if necessary */
    static int checkerr(Handles_t* handles, sword status)
    text errbuf[512]; /* error message buffer */
    sb4 errcode; /* OCI error code */
    switch (status)
    case OCI_SUCCESS:
    case OCI_SUCCESS_WITH_INFO:
    return 0;
    case OCI_ERROR:
    OCIErrorGet ((dvoid*) handles->errhp, (ub4) 1, (text *) NULL, &errcode,
    errbuf, (ub4) sizeof(errbuf), (ub4) OCI_HTYPE_ERROR);
    sprintf((char*)errbuf, "OCI ERROR code %d",errcode);
    break;
    default:
    sprintf((char*)errbuf, "Warning - error status %d",status);
    break;
    OCIExtProcRaiseExcpWithMsg(handles->extProcCtx, 29400, errbuf,
    strlen((char*)errbuf));
    return -1;
    }

    Thanks for perusing the code.
    Here's what I have for a makefile. I had to change the prefix and install_sh paths to hide my name, and other private info. Also, there's a mycomp* references. This is another module that I have to play around with ODCI. You can take that out.
    CC=gcc -pipe -m32
    CXX=g++ -pipe -m32
    svn_root=../../..
    prefix=/home/me/stage
    exec_prefix=${prefix}
    install_sh=/home/me/install-sh
    LIB=${exec_prefix}/lib
    INC=-I${prefix}/include -I$(ORACLE_HOME)/rdbms/public
    CFLAGS=-g -O0
    override CFLAGS := -Wall -std=c99 -fno-strict-aliasing $(CFLAGS) $(INC)
    all:
         $(CC) $(CFLAGS) -c -fPIC book.c
         $(CC) $(CFLAGS) -c -fPIC mycomp_exec.c
         $(CC) $(CFLAGS) -shared -fPIC -o book.so book.o -L$(LIB)
         $(CC) $(CFLAGS) -shared -fPIC -o mycomp_exec.so mycomp_exec.o -L$(LIB) -ldtpq
    install: mycomp_exec.so
         ${install_sh} -d $(LIB)/ora
         ${install_sh} -t $(LIB)/ora book.so
         ${install_sh} -t $(LIB)/ora mycomp_exec.so
    clean:
         rm -rf book.o book.so
         rm -rf mycomp_exec.o mycomp_exec.so
    .PHONY: install all clean
    Anyways, I think the problem is, I don't create the type in ODCITableStart. So, I think Oracle instantiates a BookImpl twice; once for the start function, and another for the fetch function.
    What I think I will do is create an PL/SQL version ODCITableStart program that will instantiate a a BookImplType like so:
    self := BookImpl( filename );
    then calls the C function above which will be renamed to somethine like _TableStart.
    thanks.

  • I'm JS illiterate, need help getting an Acrobat form to work like the Excel file I made it from.

    Hi folks.
    I am tasked to put together a purchase order request form and it has to be in PDF format.
    I originally built it in Excel, and after a day and a half of googling, I finally came upon the formula(s) that make 2 of columns interact the way I want them to.
    Column A ("Line Item Number") triggers its corresponding cell in Column C ("Obligate/Deobligate") in the following way:
    If the A cell is blank, its corresponding C cell diplays "O/D"
    If the A cell has a number entered into it which is the same as any cell above it, the corresponding C cell displays "Deobligate"
    If the A cell has a number entered into it which is different than every cell above it, the corresponding C cell displays "Obligate"
    The formula I used, starting in the second C cell is:
    =IF(A2="","O/D",IF(COUNTIF(A1:A1,A2),"Deobligate","Obligate"))
    And it changes down the column ending at the 23rd C cell with:
    =IF(A23="","O/D",IF(COUNTIF(A1:A22,A23),"Deobligate","Obligate"))
    Will this even translate into Javascript?  And if it does, I assume that I would paste the script into the "Calculate" portion of the form field properties, is this correct?
    Also, (I realize I'm asking a lot), if the correct code is fast and easy for someone here to whip up, I would appreciate it, since as I said before, I really don't know the first thing about JS, or coding in general.
    Thanks in advance.

    Yes, it should be a custom calculate script. Here's a sample one below. It assumes the fields are named "A1", "A2", ..."A23". You will have to change the value of the "row" variable for each script, which is currently set to 2, meaning it should go in the A2 field. This really should be a function in a document-level JavaScript to it can be called by passing the row number or extracting it from the value of event.target.name, but it should get you started. Note that I didn't test it, so it might need some tweaking:
    // Custom Calculation script for row 2
    (function () {
        // Row number of this field
        var row = 2;
        // Get the value of the A column field
        var sVal = getField("A" + row).valueAsString;
        var sVal2;
         // Set this field value to  "O/D" if blank
        if (!sVal) {
            event.value = "O/D";
            return;
        // Scan the previous rows to see if any match this value
        for (var i = 1; i < row; i += 1) {
            // Get the current row value
            sVal2 = getField("A" + i).valueAsString;
            // See if it matches
            if (sVal2 === sVal) {
                event.value = "Deobligate";
                return;
         // No match was found. so set this field value to "Obligate"
        event.value = "Obligate";

  • Need help getting this Java app to work on Mac OS X

    Aloha all,
    I am testing this new Java app that was built that is based on th Axis and Allies strategy gaming engine. On the PC the author wrote a .bat file to launch the app and the JVM. But when I try and enter the arguments on the Mac OS X via the terminal window I get the Usage/Options argument options back. The ,bat file goes as follows:
    java -Xincgc -classpath ../classes;../lib/crimson.jar;../lib/jaxp.jar games.strategy.engine.framework.GameRunner
    It looks to me as if OS X if having problems with -Xincgc argument. I checked to see if I needed to download the JVM, but according to Apple it is already built in. Is there another way to enter the arguments to get this app to launch?
    Maui Duck

    Does OS X use ';' as a separator like windows, or does it use ':' like UNIX. that might be the problem.

  • I need help getting my web HP OS working. cant download? says unable to resolve host?

    Help cant download. Says unable to resolve host?

    Hey @jemh ,
    I would be happy to assist if needed as there are many models of HP I would need the model number. How Do I Find My Model Number or Product Number?
    Please respond with which Operating System you are running:
    Which Windows Operating System am I running?
    The HP Support Assistant will help you install software and drivers that were originally installed on the Notebook.
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

Maybe you are looking for

  • I have lightroom 5 but the visualize spot removal tool is not showing up?

    I have lightroom 5 and the visualize spot removal tool is not showing up. I have updated the software and restarted my computer and its still not showing up. Why is that?

  • Reader 11.0.10 crashes after upgrade to Yosemite.

    I upgraded from Mtn Lion to Yosemite a week ago, and shortly after the upgrade, Adobe Reader crashed.  I did an update to version 11.0.10; same result.  Cleaned app from computer and after re-install, same result.  Sometimes Reader opens for a few se

  • Messages not being marked as read?

    In Yosemite mail app, my Exchange account emails, even after opening and closing the message it stays with the unread blue dot.  Takes about 5 minutes to mark as read.  My iCloud mail is almost instant.  This didn't happen in Mavericks. Am I missing

  • Hotmail causing Safari crash

    Someone posted that trying to forward or send an email from Hotmail caused a major crash in Safari. I went to check it out and can't find the post anymore! Anyway, darned if it isn't true. Completely froze up Safari. Needed a cold reboot to get thing

  • Why do we put Actionscript on top in .mxml files?

    Hi, Developing projects in Flex I wondered why Flex's default code structure and standard for .mxml components is to put the <mx:Script> or now <fx:Script> above all other <mx:components> or <s:components>. Recently I decided in a project to put the