Sound on Sun E450

Hello,
I would have a sound card in a Sun E450 server.
I want to use the server for audio streaming and need a soundcard as a capture device.
So, has somebody any idea what is the (most inexpensive) way how to connect a sound device with tis Sun.
The OS I want to use is Solaris 9 or FreeBSD 5 or 6 (Sorry guys ;-) )
Regards,
Maarten

I imagine you will need to use FreeBSD... and a supported pci audio card... the ones available for the E450 were rudimentary to say the least...
there was one Creative card that was supposted to work... Antares makes/made one expensive card...
the E450 is a nice server, with lots o' space... I hope the FreeBSD can help you out...
GOOGLE is your friend...
haroldkarl

Similar Messages

  • Sun E450 serial console problem

    Hello! I have an old Sun E450 server and can't make console work. I tried both ttya and ttyb (I connect appropriate pins of Serial-to-USB cable and choosing output in Stop + A OpenBoot shell), tried different port speeds, tried resetting NVRAM by Stop+N etc. Nothing helps. Unfortunately, I can't connect VGA monitor because don't have an adapter and can't find it there in Russia, Moscow (an original Sun monitor don't know where to get too). Terminal emulation programs (minicom, screen) outputs garbage instead of text. I.e., boot process — garbage, I press Enter — garbage, I do command to net boot — rarpd and tftpd works OK, I see logs on Linux server, but I see garbage in serial console. How to fix, please advise.

    Hi.
    1. Disconnect Keyboard.
        By default, this server use keyboard and screen for console.
        In case keyboard not connected,  ttya used as console.
    2.  Use Null-Modem Cable.  ( Cross RX-TX singnal)
    3.  Use  next settings for connect to console:  9600,1 - stop bit, no parity, no flow control.
    Regards.
    PS.
       It's not problem find   VGA adapter  or another SPARC server at Moscow.  Just  try call to some Oracle's partners.

  • *** Sun E450 Power Up ***

    I have an Enterprise 450 server with dual power supplies, and it was running for sometime until one day, one night I received a call from the office telling me that they are unable to access the machine. When I arrived onsite to check on the problem, the server for some reason doesn't have any power as the front panel led are all not lit up. I checked the rear side of the E450, and both power supplies appear to be running with the indication of
    the green led.
    I decided to turn the key on the front panel to off and switch back up and still don't get any lights from the led. What could be the possible problems of my machine?

    Loose side panels?
    Use the forum search function, on keyword ...
    <i>interlock</i>
    These symptoms have been discussed before in these forums.
    These symptoms are noted in the documentation for the E450.
    (page 52 of the Owners' Guide #805-0429)

  • Using Sun Web Server 6.1 from the IDE

    Using JSE 8 with Sun Web Server 6.1 set as the target container, I have a SUNWS61deployment.xml file created.
    That didn't exist in JSE 7. Is it WS 6.1 SP4 or SP5 -related ?
    I also have ws61-sun-web.xml with a simple <sun-web-app/> tag (empty deployment descriptor).
    What should this file contain? Is it a replacement for sun-web.xml?
    Do I still need sun-web.xml? Its DTD declaration sounds like Sun
    App Server 7 (http://www.sun.com/software/sunone/appserver/dtds/sun-web-app_2_3-1.dtd)
    So you have plans to make "Sun Resources" (pools, JNDI resources, ...) created in the IDE be registerable directly in the Web Server just like it's possible with the sun app server?
    How safe is it to use JSE 8 with an older Web Server Service Pack (say 6.1SP1)?

    SUNWS61deployment.xml is created bythe IDE to be used internally and not to be used by the developer. This file wouldn't be sent to webserver after deployment.
    The ws61-sun-web.xml is sun-web.xml only and yes it is same as it is in Appserver7 as the webcontainer for both Webserver6.1 and Appserver7 are same. After deployment to webserver, ws61-sun-web.xml is renamed to Webserver as sun-web.xml by the IDE. When opened the developer can edit in the XML editor.
    The reason for having it as ws61-sun-web.xml in IDE is to avoid the clash between sun-web.xml of Appserver8.1 which is J2EE1.4 based whereas Webserver6.1 Web container is J2EE1.3 based.
    It should be okay to use any service pack of Webserver6.1 with JSE8
    Hope this helps

  • On Sun fire v490 - Solaris 10 with Oracle 8.1.7.4 & Sybase 12.0

    Hi,
    We are going to upgrade our server with this configuration -
    Sun Fire V490     2 x 1.05 GHz UltraSPARC IV CPU
    8096MB RAM     2 x73GB local disk
    2x FC 2GB Sun/QLogic HBAs
    DAT72
    On one machine we will have Sun Solaris v10 with
    Oracle DB v8.1.7.4 & Second one will be Sun Solaris v10 with Sybase DB v12.0.0.6.
    Now our question is - Sun fire have Hyper-thread CPUs ��� will the O/S and databases (Oracle and Sybase) view the proposed system as a true 4 CPU platform? Will parameters used to tune the database such as Sybase max online engines still operate in the same manner as before?
    Our old machine configuration was - Sun E450     4x400MHz CPU     1024MB RAM     2 x18; 8x36GB disks

    Questions on Oracle and Sybase should be directed to a database forum, this forum is for Sun hardware support.
    Here is a link to a DB forum I look at from time to time:
    http://www.dbforums.com/index.php
    The topic of tuning Oracle or Solaris is way beyond the scope of this forum, I have attempted to go into it before but didn't get any feedback and I would only like to spend lots of time on it if I was being paid!!! On the memory side, keep in mind that Oracle 9i 64-bit can address a maximum of 2 ^ 64 ( 16777216 TB ) memory, prior to that the DBA had to define memory parameters in init.ora. To be honest the last time I worked with a Oracle 8 database I shut a HP K class server down permanently that had been migrated to Oracle 9i on Solaris by an Oracle consultant and I can't remember all the tuning trick etc.

  • - KRIBHCO - Surat - Sun Cluster 2.2 / SEVM 2.x issue.

    we are facing a problem in sun E450 CLUSTERED MACHINES RUNNING ORACLE OPS 8.1.7
    Versions :
    Sun Cluster 2.2 CVM 2.2.1 Solaris 2.6 Oracle 8.1.7
    Issue : vxconfigd core dumps while booting With back date boot and start cluster, and oracle start with correct date, system works, but after some time (half a day or so) vxconfigd was not in ps.
    Also core was present with date 21/04 and time 1150 & 1155 on the servers. However application works.
    Please help us how to overcome the problems.
    thanks
    vijay

    we are facing a problem in sun E450 CLUSTERED MACHINES RUNNING ORACLE OPS 8.1.7
    Versions :
    Sun Cluster 2.2 CVM 2.2.1 Solaris 2.6 Oracle 8.1.7
    Issue : vxconfigd core dumps while booting With back date boot and start cluster, and oracle start with correct date, system works, but after some time (half a day or so) vxconfigd was not in ps.
    Also core was present with date 21/04 and time 1150 & 1155 on the servers. However application works.
    Please help us how to overcome the problems.
    thanks
    vijay

  • Sun Java proxy server 3.6 SP7

    Hi
    When I want to use my proxy for non anonymous FTP server I get an error, because default proxy server ( v.3.6 ) connect as anonymous and login msgbox doesn't appear Why ???
    I can do this with 4.0.2 but this version doesn't work fine ( proxyd proccess consumes about 75% resources ).
    So alternativelly I can use CERN standard for some basic username, but it doesn't work with username like [email protected] and password
    Does anyone know how to fix this ?

    OK
    I have problem when I want to use proxy server for non anonymous ftp sites.
    When I write some URL ftp://ftp.xxx.xx ( non anonymous FTP ) proxy server default connects as anonymous and then server reply :
    The requested item could not be loaded by the proxy.
    Login incorrect.
    I want that proxy server ( like 4.0.2 ) reply login incorrect and internet browser ( not IE ) asks for right user and password
    And about 4.0.2, when I start proxy server ( Solaris 9 SUN E450 ) and receive clients requests one of the proxyd proccess constantly uses a lot of system resources ( ~ 75%, especially kernel and user mode )

  • Fan speed on e450

    Hi, does anyone know if it is possible to manually override the fan speed on Sun E450 server? The machine is in my room and is a bit noisy, I'd rather have CPUs run a bit hotter but with less noise.

    Hi Here is a new software from Malwarebytes. MBAM is trusted by millions of PC users. It will find programs that aren't necessary on start up
    http://www.malwarebytes.org/products/startuplite/
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.

  • Pro*c multithreaded application has memory leak

    Hi there,
    I posted this message a week ago in OCI section, nobody answer me.
    I am really curious if my application has a bug or the pro*c has a bug.
    Anyone can compile the sample code and test it easily.
    I made multithreaded application which queries dynamic SQL, it works.
    But the memory leaks when i query the SQL statement.
    The more memory leaks, the more i query the SQL statement, even same SQL
    statement.
    I check it with top, shell command.
    My machine is SUN E450, Solaris 8. Oracle 9.2.0.1
    Compiler : gcc (GCC) 3.2.2
    I changed source code which is from
    $(ORACLE_HOME)/precomp/demo/proc/sample10.pc
    the sample10 doesn't need to be multithreaded. But i think it has to work
    correctly if i changed it to multithreaded application.
    the make file and source code will be placed below.
    I have to figure out the problem.
    Please help
    Thanks in advance,
    the make file is below
    HOME = /user/jkku
    ORA = $(ORACLE_HOME)
    CC = gcc
    PROC = proc
    LC_INCL = -I$(HOME)/work/dbmss/libs/include
    lc_incl = include=$(HOME)/work/dbmss/libs/include
    SYS_INCL =
    sys_incl =
    ORA_INCL = -I. \
    -I$(ORA)/precomp/public \
    -I$(ORA)/rdbms/public \
    -I$(ORA)/rdbms/demo \
    -I$(ORA)/rdbms/pbsql/public \
    -I$(ORA)/network/public \
    -DSLMXMX_ENABLE -DSLTS_ENABLE -D_SVID_GETTOD
    INCLUDES = $(LC_INCL) $(SYS_INCL) $(ORA_INCL)
    includes = $(lc_incl) $(sys_incl)
    LC_LIBS =
    SYS_LIBS = -lpthread -lsocket -lnsl -lrt
    ORA_LIBS = -L$(ORA)/lib/ -lclntsh
    LIBS = $(LC_LIBS) $(SYS_LIBS) $(ORA_LIBS)
    # Define C Compiler flags
    CFLAGS += -D_Solaris64_ -m64
    CFLAGS += -g -D_REENTRANT
    # Define pro*c Compiler flags
    PROCFLAGS += THREADS=YES
    PROCFLAGS += CPOOL=YES
    # Our object files
    PRECOMPS = sample10.c
    OBJS = sample10.o
    .SUFFIXES: .o .c .pc
    .c.o:
    $(CC) -c $(CFLAGS) $(INCLUDES) $*.c
    .pc.c:
    $(PROC) $(PROCFLAGS) $(includes) $*.pc $*.c
    all: sample10
    sample10: $(PRECOMPS) $(OBJS)
    $(CC) $(CFLAGS) -o sample10 $(OBJS) $(LIBS)
    clean:
    rm -rf *.o sample10 sample10.c
    the source code is below which i changed the oracle sample10.pc to
    multithreaded application.
    Sample Program 10: Dynamic SQL Method 4
    This program connects you to ORACLE using your username and
    password, then prompts you for a SQL statement. You can enter
    any legal SQL statement. Use regular SQL syntax, not embedded SQL.
    Your statement will be processed. If it is a query, the rows
    fetched are displayed.
    You can enter multi-line statements. The limit is 1023 characters.
    This sample program only processes up to MAX_ITEMS bind variables and
    MAX_ITEMS select-list items. MAX_ITEMS is #defined to be 40.
    #include <stdio.h>
    #include <string.h>
    #include <setjmp.h>
    #include <sqlda.h>
    #include <stdlib.h>
    #include <sqlcpr.h>
    /* Maximum number of select-list items or bind variables. */
    #define MAX_ITEMS 40
    /* Maximum lengths of the names of the
    select-list items or indicator variables. */
    #define MAX_VNAME_LEN 30
    #define MAX_INAME_LEN 30
    #ifndef NULL
    #define NULL 0
    #endif
    /* Prototypes */
    #if defined(__STDC__)
    void sql_error(void);
    int oracle_connect(void);
    int alloc_descriptors(int, int, int);
    int get_dyn_statement(void);
    void set_bind_variables(void);
    void process_select_list(void);
    void help(void);
    #else
    void sql_error(/*_ void _*/);
    int oracle_connect(/*_ void _*/);
    int alloc_descriptors(/*_ int, int, int _*/);
    int get_dyn_statement(/* void _*/);
    void set_bind_variables(/*_ void -*/);
    void process_select_list(/*_ void _*/);
    void help(/*_ void _*/);
    #endif
    char *dml_commands[] = {"SELECT", "select", "INSERT", "insert",
    "UPDATE", "update", "DELETE", "delete"};
    EXEC SQL INCLUDE sqlda;
    EXEC SQL INCLUDE sqlca;
    EXEC SQL BEGIN DECLARE SECTION;
    char dyn_statement[1024];
    EXEC SQL VAR dyn_statement IS STRING(1024);
    EXEC SQL END DECLARE SECTION;
    EXEC ORACLE OPTION (ORACA=YES);
    EXEC ORACLE OPTION (RELEASE_CURSOR=YES);
    SQLDA *bind_dp;
    SQLDA *select_dp;
    /* Define a buffer to hold longjmp state info. */
    jmp_buf jmp_continue;
    char *db_uid="dbmuser/dbmuser@dbmdb";
    sql_context ctx;
    int err_sql;
    enum{
    SQL_SUCC=0,
    SQL_ERR,
    SQL_NOTFOUND,
    SQL_UNIQUE,
    SQL_DISCONNECT,
    SQL_NOTNULL
    int main()
    int i;
    EXEC SQL ENABLE THREADS;
    EXEC SQL WHENEVER SQLERROR DO sql_error();
    EXEC SQL WHENEVER NOT FOUND DO sql_not_found();
    /* Connect to the database. */
    if (connect_database() < 0)
    exit(1);
    EXEC SQL CONTEXT USE :ctx;
    /* Process SQL statements. */
    for (;;)
    /* Allocate memory for the select and bind descriptors. */
    if (alloc_descriptors(MAX_ITEMS, MAX_VNAME_LEN, NAME_LEN) != 0)
    exit(1);
    (void) setjmp(jmp_continue);
    /* Get the statement. Break on "exit". */
    if (get_dyn_statement() != 0)
    break;
    EXEC SQL PREPARE S FROM :dyn_statement;
    EXEC SQL DECLARE C CURSOR FOR S;
    /* Set the bind variables for any placeholders in the
    SQL statement. */
    set_bind_variables();
    /* Open the cursor and execute the statement.
    * If the statement is not a query (SELECT), the
    * statement processing is completed after the
    * OPEN.
    EXEC SQL OPEN C USING DESCRIPTOR bind_dp;
    /* Call the function that processes the select-list.
    * If the statement is not a query, this function
    * just returns, doing nothing.
    process_select_list();
    /* Tell user how many rows processed. */
    for (i = 0; i < 8; i++)
    if (strncmp(dyn_statement, dml_commands, 6) == 0)
    printf("\n\n%d row%c processed.\n", sqlca.sqlerrd[2], sqlca.sqlerrd[2] == 1 ? '\0' : 's');
    break;
    /* Close the cursor. */
    EXEC SQL CLOSE C;
    /* When done, free the memory allocated for pointers in the bind and
    select descriptors. */
    for (i = 0; i < MAX_ITEMS; i++)
    if (bind_dp->V != (char *) 0)
    free(bind_dp->V);
    free(bind_dp->I); /* MAX_ITEMS were allocated. */
    if (select_dp->V != (char *) 0)
    free(select_dp->V);
    free(select_dp->I); /* MAX_ITEMS were allocated. */
    /* Free space used by the descriptors themselves. */
    SQLSQLDAFree(ctx, bind_dp);
    SQLSQLDAFree(ctx, select_dp);
    } /* end of for(;;) statement-processing loop */
    disconnect_database();
    EXEC SQL WHENEVER SQLERROR CONTINUE;
    EXEC SQL COMMIT WORK RELEASE;
    puts("\nHave a good day!\n");
    return;
    * Allocate the BIND and SELECT descriptors using sqlald().
    * Also allocate the pointers to indicator variables
    * in each descriptor. The pointers to the actual bind
    * variables and the select-list items are realloc'ed in
    * the set_bind_variables() or process_select_list()
    * routines. This routine allocates 1 byte for select_dp->V
    * and bind_dp->V, so the realloc will work correctly.
    alloc_descriptors(size, max_vname_len, max_iname_len)
    int size;
    int max_vname_len;
    int max_iname_len;
    int i;
    * The first sqlald parameter determines the maximum number of
    * array elements in each variable in the descriptor. In
    * other words, it determines the maximum number of bind
    * variables or select-list items in the SQL statement.
    * The second parameter determines the maximum length of
    * strings used to hold the names of select-list items
    * or placeholders. The maximum length of column
    * names in ORACLE is 30, but you can allocate more or less
    * as needed.
    * The third parameter determines the maximum length of
    * strings used to hold the names of any indicator
    * variables. To follow ORACLE standards, the maximum
    * length of these should be 30. But, you can allocate
    * more or less as needed.
    if ((bind_dp =
    SQLSQLDAAlloc(ctx, size, max_vname_len, max_iname_len)) ==
    (SQLDA *) 0)
    fprintf(stderr,
    "Cannot allocate memory for bind descriptor.");
    return -1; /* Have to exit in this case. */
    if ((select_dp =
    SQLSQLDAAlloc(ctx, size, max_vname_len, max_iname_len)) == (SQLDA *)
    0)
    fprintf(stderr,
    "Cannot allocate memory for select descriptor.");
    return -1;
    select_dp->N = MAX_ITEMS;
    /* Allocate the pointers to the indicator variables, and the
    actual data. */
    for (i = 0; i < MAX_ITEMS; i++) {
    bind_dp->I = (short *) malloc(sizeof (short));
    select_dp->I = (short *) malloc(sizeof(short));
    bind_dp->V = (char *) malloc(1);
    select_dp->V = (char *) malloc(1);
    return 0;
    int get_dyn_statement()
    char *cp, linebuf[256];
    int iter, plsql;
    for (plsql = 0, iter = 1; ;)
    if (iter == 1)
    printf("\nSQL> ");
    dyn_statement[0] = '\0';
    fgets(linebuf, sizeof linebuf, stdin);
    cp = strrchr(linebuf, '\n');
    if (cp && cp != linebuf)
    *cp = ' ';
    else if (cp == linebuf)
    continue;
    if ((strncmp(linebuf, "EXIT", 4) == 0) ||
    (strncmp(linebuf, "exit", 4) == 0))
    return -1;
    else if (linebuf[0] == '?' ||
    (strncmp(linebuf, "HELP", 4) == 0) ||
    (strncmp(linebuf, "help", 4) == 0))
    help();
    iter = 1;
    continue;
    if (strstr(linebuf, "BEGIN") ||
    (strstr(linebuf, "begin")))
    plsql = 1;
    strcat(dyn_statement, linebuf);
    if ((plsql && (cp = strrchr(dyn_statement, '/'))) ||
    (!plsql && (cp = strrchr(dyn_statement, ';'))))
    *cp = '\0';
    break;
    else
    iter++;
    printf("%3d ", iter);
    return 0;
    void set_bind_variables()
    int i, n;
    char bind_var[64];
    /* Describe any bind variables (input host variables) */
    EXEC SQL WHENEVER SQLERROR DO sql_error();
    bind_dp->N = MAX_ITEMS; /* Initialize count of array elements. */
    EXEC SQL DESCRIBE BIND VARIABLES FOR S INTO bind_dp;
    /* If F is negative, there were more bind variables
    than originally allocated by sqlald(). */
    if (bind_dp->F < 0)
    printf ("\nToo many bind variables (%d), maximum is %d\n.",
    -bind_dp->F, MAX_ITEMS);
    return;
    /* Set the maximum number of array elements in the
    descriptor to the number found. */
    bind_dp->N = bind_dp->F;
    /* Get the value of each bind variable as a
    * character string.
    * C contains the length of the bind variable
    * name used in the SQL statement.
    * S contains the actual name of the bind variable
    * used in the SQL statement.
    * L will contain the length of the data value
    * entered.
    * V will contain the address of the data value
    * entered.
    * T is always set to 1 because in this sample program
    * data values for all bind variables are entered
    * as character strings.
    * ORACLE converts to the table value from CHAR.
    * I will point to the indicator value, which is
    * set to -1 when the bind variable value is "null".
    for (i = 0; i < bind_dp->F; i++)
    printf ("\nEnter value for bind variable %.*s: ",
    (int)bind_dp->C, bind_dp->S);
    fgets(bind_var, sizeof bind_var, stdin);
    /* Get length and remove the new line character. */
    n = strlen(bind_var) - 1;
    /* Set it in the descriptor. */
    bind_dp->L = n;
    /* (re-)allocate the buffer for the value.
    sqlald() reserves a pointer location for
    V but does not allocate the full space for
    the pointer. */
    bind_dp->V = (char *) realloc(bind_dp->V, (bind_dp->L + 1));
    /* And copy it in. */
    strncpy(bind_dp->V, bind_var, n);
    /* Set the indicator variable's value. */
    if ((strncmp(bind_dp->V, "NULL", 4) == 0) ||
    (strncmp(bind_dp->V, "null", 4) == 0))
    *bind_dp->I = -1;
    else
    *bind_dp->I = 0;
    /* Set the bind datatype to 1 for CHAR. */
    bind_dp->T = 1;
    return;
    void process_select_list()
    int i, null_ok, precision, scale;
    if ((strncmp(dyn_statement, "SELECT", 6) != 0) &&
    (strncmp(dyn_statement, "select", 6) != 0))
    select_dp->F = 0;
    return;
    /* If the SQL statement is a SELECT, describe the
    select-list items. The DESCRIBE function returns
    their names, datatypes, lengths (including precision
    and scale), and NULL/NOT NULL statuses. */
    select_dp->N = MAX_ITEMS;
    EXEC SQL DESCRIBE SELECT LIST FOR S INTO select_dp;
    /* If F is negative, there were more select-list
    items than originally allocated by sqlald(). */
    if (select_dp->F < 0)
    printf ("\nToo many select-list items (%d), maximum is %d\n",
    -(select_dp->F), MAX_ITEMS);
    return;
    /* Set the maximum number of array elements in the
    descriptor to the number found. */
    select_dp->N = select_dp->F;
    /* Allocate storage for each select-list item.
    sqlprc() is used to extract precision and scale
    from the length (select_dp->L).
    sqlnul() is used to reset the high-order bit of
    the datatype and to check whether the column
    is NOT NULL.
    CHAR datatypes have length, but zero precision and
    scale. The length is defined at CREATE time.
    NUMBER datatypes have precision and scale only if
    defined at CREATE time. If the column
    definition was just NUMBER, the precision
    and scale are zero, and you must allocate
    the required maximum length.
    DATE datatypes return a length of 7 if the default
    format is used. This should be increased to
    9 to store the actual date character string.
    If you use the TO_CHAR function, the maximum
    length could be 75, but will probably be less
    (you can see the effects of this in SQL*Plus).
    ROWID datatype always returns a fixed length of 18 if
    coerced to CHAR.
    LONG and
    LONG RAW datatypes return a length of 0 (zero),
    so you need to set a maximum. In this example,
    it is 240 characters.
    printf ("\n");
    for (i = 0; i < select_dp->F; i++)
    char title[MAX_VNAME_LEN];
    /* Turn off high-order bit of datatype (in this example,
    it does not matter if the column is NOT NULL). */
    sqlnul ((unsigned short *)&(select_dp->T), (unsigned short
    *)&(select_dp->T), &null_ok);
    switch (select_dp->T)
    case 1 : /* CHAR datatype: no change in length
    needed, except possibly for TO_CHAR
    conversions (not handled here). */
    break;
    case 2 : /* NUMBER datatype: use sqlprc() to
    extract precision and scale. */
    sqlprc ((unsigned int *)&(select_dp->L), &precision,
    &scale);
    /* Allow for maximum size of NUMBER. */
    if (precision == 0) precision = 40;
    /* Also allow for decimal point and
    possible sign. */
    /* convert NUMBER datatype to FLOAT if scale > 0,
    INT otherwise. */
    if (scale > 0)
    select_dp->L = sizeof(float);
    else
    select_dp->L = sizeof(int);
    break;
    case 8 : /* LONG datatype */
    select_dp->L = 240;
    break;
    case 11 : /* ROWID datatype */
    case 104 : /* Universal ROWID datatype */
    select_dp->L = 18;
    break;
    case 12 : /* DATE datatype */
    select_dp->L = 9;
    break;
    case 23 : /* RAW datatype */
    break;
    case 24 : /* LONG RAW datatype */
    select_dp->L = 240;
    break;
    /* Allocate space for the select-list data values.
    sqlald() reserves a pointer location for
    V but does not allocate the full space for
    the pointer. */
    if (select_dp->T != 2)
    select_dp->V = (char *) realloc(select_dp->V,
    select_dp->L + 1);
    else
    select_dp->V = (char *) realloc(select_dp->V,
    select_dp->L);
    /* Print column headings, right-justifying number
    column headings. */
    /* Copy to temporary buffer in case name is null-terminated */
    memset(title, ' ', MAX_VNAME_LEN);
    strncpy(title, select_dp->S, select_dp->C);
    if (select_dp->T == 2)
    if (scale > 0)
    printf ("%.*s ", select_dp->L+3, title);
    else
    printf ("%.*s ", select_dp->L, title);
    else
    printf("%-.*s ", select_dp->L, title);
    /* Coerce ALL datatypes except for LONG RAW and NUMBER to
    character. */
    if (select_dp->T != 24 && select_dp->T != 2)
    select_dp->T = 1;
    /* Coerce the datatypes of NUMBERs to float or int depending on
    the scale. */
    if (select_dp->T == 2)
    if (scale > 0)
    select_dp->T = 4; /* float */
    else
    select_dp->T = 3; /* int */
    printf ("\n\n");
    /* FETCH each row selected and print the column values. */
    EXEC SQL WHENEVER NOT FOUND GOTO end_select_loop;
    for (;;)
    EXEC SQL FETCH C USING DESCRIPTOR select_dp;
    /* Since each variable returned has been coerced to a
    character string, int, or float very little processing
    is required here. This routine just prints out the
    values on the terminal. */
    for (i = 0; i < select_dp->F; i++)
    if (*select_dp->I < 0)
    if (select_dp->T == 4)
    printf ("%-*c ",(int)select_dp->L+3, ' ');
    else
    printf ("%-*c ",(int)select_dp->L, ' ');
    else
    if (select_dp->T == 3) /* int datatype */
    printf ("%*d ", (int)select_dp->L,
    *(int *)select_dp->V);
    else if (select_dp->T == 4) /* float datatype */
    printf ("%*.2f ", (int)select_dp->L,
    *(float *)select_dp->V);
    else /* character string */
    printf ("%-*.*s ", (int)select_dp->L,
    (int)select_dp->L, select_dp->V);
    printf ("\n");
    end_select_loop:
    return;
    void help()
    puts("\n\nEnter a SQL statement or a PL/SQL block at the SQL> prompt.");
    puts("Statements can be continued over several lines, except");
    puts("within string literals.");
    puts("Terminate a SQL statement with a semicolon.");
    puts("Terminate a PL/SQL block (which can contain embedded
    semicolons)");
    puts("with a slash (/).");
    puts("Typing \"exit\" (no semicolon needed) exits the program.");
    puts("You typed \"?\" or \"help\" to get this message.\n\n");
    int connect_database()
    err_sql = SQL_SUCC;
    EXEC SQL WHENEVER SQLERROR DO sql_error();
    EXEC SQL WHENEVER NOT FOUND DO sql_not_found();
    EXEC SQL CONTEXT ALLOCATE :ctx;
    EXEC SQL CONTEXT USE :ctx;
    EXEC SQL CONNECT :db_uid;
    if(err_sql != SQL_SUCC){
    printf("err => connect database(ctx:%ld, uid:%s) failed!\n", ctx, db_uid);
    return -1;
    return 1;
    int disconnect_database()
    err_sql = SQL_SUCC;
    EXEC SQL WHENEVER SQLERROR DO sql_error();
    EXEC SQL WHENEVER NOT FOUND DO sql_not_found();
    EXEC SQL CONTEXT USE :ctx;
    EXEC SQL COMMIT WORK RELEASE;
    EXEC SQL CONTEXT FREE:ctx;
    return 1;
    void sql_error()
    printf("err => %.*s", sqlca.sqlerrm.sqlerrml, sqlca.sqlerrm.sqlerrmc);
    printf("in \"%.*s...\'\n", oraca.orastxt.orastxtl, oraca.orastxt.orastxtc);
    printf("on line %d of %.*s.\n\n", oraca.oraslnr, oraca.orasfnm.orasfnml,
    oraca.orasfnm.orasfnmc);
    switch(sqlca.sqlcode) {
    case -1: /* unique constraint violated */
    err_sql = SQL_UNIQUE;
    break;
    case -1012: /* not logged on */
    case -1089:
    case -3133:
    case -1041:
    case -3114:
    case -3113:
    /* �6�Ŭ�� shutdown�ǰų� �α��� ���°� �ƴҶ� ��b�� �õ� */
    /* immediate shutdown in progress - no operations are permitted */
    /* end-of-file on communication channel */
    /* internal error. hostdef extension doesn't exist */
    err_sql = SQL_DISCONNECT;
    break;
    case -1400:
    err_sql = SQL_NOTNULL;
    break;
    default:
    err_sql = SQL_ERR;
    break;
    EXEC SQL CONTEXT USE :ctx;
    EXEC SQL WHENEVER SQLERROR CONTINUE;
    EXEC SQL ROLLBACK WORK;
    void sql_not_found()
    err_sql = SQL_NOTFOUND;

    Hi Jane,
    What version of Berkeley DB XML are you using?
    What is your operating system and your hardware platform?
    For how long have been the application running?
    What is your current container size?
    What's set for EnvironmentConfig.setThreaded?
    Do you know if containers have previously not been closed correctly?
    Can you please post the entire error output?
    What's the JDK version, 1.4 or 1.5?
    Thanks,
    Bogdan

  • Solaris 2.7 to Solaris 8 Upgrade

    Hi, I'm attemting to upgrade Solaris 2.7 (11/99) to Solaris 8 (1/01) in a Sun E450 and I get an error. Now I describe the steps that I follow:
    - I insert the CD 1 of 2 of Solaris Software 8 (1/01) and I do an Stop+A with "boot cdrom"
    - We insert geographical region, the network configuration...
    - When it asks for an Actual or Initial installation I select Actual and it shows something like this:
    " The version of Solaris (solaris 2.7) of the segment c0t0d0s0 can't upgrade.
    Fsck can't verify a system archives in the archives system table (vfstab)"
    I verified from console that c0t0d0s0 is mounted in "a/" and then I've done an fsck and the partition not contents any errors
    This is my "vfstab":
    #device          device          mount          FS     fsck     mount     mount
    #to mount     to fsck          point          type     pass     at boot     options
    #/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1     yes     -
    fd     -     /dev/fd     fd     -     no     -
    /proc     -     /proc     proc     -     no     -
    /dev/dsk/c0t0d0s1     -     -     swap     -     no     -
    /dev/dsk/c0t0d0s0     /dev/rdsk/c0t0d0s0     /     ufs     1     no     logging,noatime
    /dev/dsk/c0t0d0s3     /dev/rdsk/c0t0d0s3     /var     ufs     1     no     logging,noatime
    /dev/dsk/c0t0d0s4     /dev/rdsk/c0t0d0s4     /opt     ufs     2     yes     logging,noatime
    /dev/dsk/c0t0d0s7     /dev/rdsk/c0t0d0s7     /home     vxfs     2     yes     -
    /dev/dsk/c6t0d1s0     /dev/rdsk/c6t0d1s0     /programas     vxfs     3     yes     -
    swap     -     /tmp     tmpfs     -     yes     -
    /dev/dsk/c7t1d0s0 /dev/rdsk/c7t1d0s0 /imagen vxfs 3 yes -
    /dev/dsk/c7t1d2s0 /dev/rdsk/c7t1d2s0 /imagen2 vxfs 3 yes -
    /dev/dsk/c6t0d3s0 /dev/rdsk/c6t0d3s0 /imagen3 vxfs 3 yes -
    and this is the output of an mount command:
    proc on /proc read/write/setuid on Wed Jan 28 17:50:21 2004
    / on /dev/dsk/c0t0d0s0 read/write/setuid/logging/noatime/largefiles on Wed Jan 4
    /dev/fd on fd read/write/setuid on Wed Jan 28 17:50:21 2004
    /var on /dev/dsk/c0t0d0s3 read/write/setuid/logging/noatime/largefiles on Wed J4
    /opt on /dev/dsk/c0t0d0s4 read/write/setuid/largefiles/noatime/logging on Wed J4
    /home on /dev/dsk/c0t0d0s7 read/write/setuid/log on Wed Jan 28 17:50:24 2004
    /programas on /dev/dsk/c6t0d1s0 read/write/setuid/log on Wed Jan 28 17:50:24 204
    /tmp on swap read/write/setuid on Wed Jan 28 17:50:24 2004
    /imagen on /dev/dsk/c7t1d0s0 read/write/setuid/log on Wed Jan 28 17:50:24 2004
    /imagen2 on /dev/dsk/c7t1d2s0 read/write/setuid/log on Wed Jan 28 17:50:24 2004
    /imagen3 on /dev/dsk/c6t0d3s0 read/write/setuid/log on Wed Jan 28 17:50:25 2004
    and the "mnttab" file:
    /proc     /proc     proc     rw,suid,dev=2f80000     1075308621
    /dev/dsk/c0t0d0s0     /     ufs     rw,suid,dev=800000,logging,noatime,largefiles     1075308621
    fd     /dev/fd     fd     rw,suid,dev=3040000     1075308621
    /dev/dsk/c0t0d0s3     /var     ufs     rw,suid,dev=800003,logging,noatime,largefiles     1075308621
    /dev/dsk/c0t0d0s4     /opt     ufs     largefiles,noatime,logging,dev=800004     1075308624
    /dev/dsk/c0t0d0s7     /home     vxfs     rw,log,suid     1075308624
    /dev/dsk/c6t0d1s0     /programas     vxfs     rw,log,suid     1075308624
    swap     /tmp     tmpfs     rw,dev=1     1075308624
    /dev/dsk/c7t1d0s0     /imagen     vxfs     rw,log,suid     1075308624
    /dev/dsk/c7t1d2s0     /imagen2     vxfs     rw,log,suid     1075308624
    /dev/dsk/c6t0d3s0     /imagen3     vxfs     rw,log,suid     1075308625
    -hosts     /net     autofs     ignore,indirect,nosuid,nobrowse,dev=31c0001     1075308629
    -xfn     /xfn     autofs     ignore,indirect,dev=31c0002     1075308629
    eusleg01:vold(pid345)     /vol     nfs     ignore,noquota,dev=3180001     1075308639
    I've done the same steps with a Sun E250 and the result is Ok , Solaris is upgraded ok to version 8
    I need urgent help :(
    Thanks

    http://supportforum.sun.com/sunos/index.php?t=tree&th=673&start=0&rid=27&S=801555a93d24e3464fa33b5a32e88894

  • GUI for network reconfigure on Solaris 10 ?

    Does anyone know of an easy to install GUI interface for network configuration for the SUN E450 running Solaris 10 ? I am setting up the system and testing. I will be changing IP Addresses at least twice and Host Names at least once before the production deploy. I've already seen that a host name change will not allow a user to login to the CDE Desktop due to hostname change... thank goodness root can still login. I hate having to locate 10 different configuration files and modify them manually, or issue a sys-unconfig command. DEC TRUnix 64 had a nice GUI interface which allowed root to reconfigure any NIC properties, DNS server names, IP Addresses, Default Gateways etc.... Thoughts are sincerely appreciated ! I am obviously a novice here. I downloaded the companion CD, but all I see on it are language additions. I reviewed the individual downloadable packages but saw nothing interesting. Maybe Solaris 10 already has a nice one, and I just haven't found it from the CDE.... Thanks, Randy !

    OK..... sys-unconfig is ok, but what file(s) do I need to edit in order for users to log into their CDE provided that the host name changes.... Any ideas ? In other words, if one changes the host name under the sys-unconfig command, at least one file somewhere (maybe in the home directory auto mount) still refers to the old host name, thus locking users out of their CDE.... Thanks again !
    Randy

  • New Solaris Rookie needs help.

    I am new with SUN Solaris, I mean I know nothing about it (I'm HP-UX SysAdmin). My boss gave me 3 additional Sun Solaris8 to manage. 2 are in production that I will not touch for now. 1 is test and learnig box - Sun E450. I re-installed Solaris8 OS on this test box. I get stuck with how do I find out the patches to install. I went to Sun web site and the list is too many patches, can't do one at a time. Is there a patch bundle for Solaris8 and how to install it? Thanks for your help.
    Ben

    Ah...okay...so...
    http://patches.sun.com/clusters/9_Recommended.README
    For example...has instructions on how to install the S9 recommended cluster.
    So...what you need to do is go to sunsolve.sun.com you'll find links to get patches. You can either download single patches or patch clusters (basically a giant group of patches that fix a whole bunch of stuff).

  • "Hung" connections

    Hi.
    We are trying to determine why tcp based connections are consistently being hung on our Sun E450 with Solaris 8. We can watch the packets go back and forth with snoop on the server even when the connection is hung, but the specific service daemon doesn't seem to send back the right response to the workstation. The response seems to be zero bytes in size. This is happening within telnet, ftp, ssh.
    Is there a known kernel/ip interface/streams/socket bug that causes this problem?
    Thanks,
    Marty Schlafer
    [email protected]

    Interestingly the problem was caused by packet fragmentation over a VPN. Changing the MTU on the VPN ends to be large enough for the ip header, ipsec header, and the rest of the packet data solved the problem.

  • Upgrade 11i - Reduce Downtime

    Hello.
    We are upgrading from 11.0.3 to 11.5.9
    The database is 8.1.7.4
    We have done one simulation and the overall time of upgrade has been 17 days.
    The server is the Sun E450: 4 processors and 2GB memory.
    Seems to us that the majories problems were the Categories 3 and 4, specifically:
    - Run AutoUpgrade (adaimgr) => ran for 20 hours
    - Upgrade Sales and Service => ran for 30 hours
    - Update Database (u2669606.drv) => ran for 95 hours !!
    The database has 350GB and we can not drop any tables for reduce the database size. It is necessary to upgrade the overall database.
    Has somebody some experience about upgrade and can give us any tips and tricks to reduce the downtime, please?
    Has somebody some experience about upgrade on Sun E6500 server with 16 processors and 16GB memory? Is possible to estimate that the 17 days will be significantly reduced on E6500?
    Thanks a lot.
    [email protected]

    Hi, Joel.
    I am from Brazil.
    Do you speak portuguese?
    We are using the "Oracle Applications Release 11i(11.5.9) Part No. B10639-01" manual.
    The database will be not upgrade to 9i. It continue being 8.1.7.4
    Thanks.
    Edson
    [email protected]

  • 11gR2 DBCA ORA-00959: tablespace 'EXAMPLE' does not exist

    Hello everyone,
    I have searched for this specific error but found nothing on it (wonder why I am always the only one having those weird problem!!!)
    When I use DBCA, interactive graphical tool, to create a database the process won't end normally if I include example schema.
    Somewhere during the process I have an error message with the following : ORA-00959: tablespace 'EXAMPLE' does not exist. <-- well, the reason why it doesn't exist is because YOU are supposed to create it .... duh!
    Anyone have experienced the same problem?
    Database, Oracle 11gR2
    OS : Solaris 10 release 10/08
    Hardware : sparc, Sun E450
    Thank you for your time and support

    up

Maybe you are looking for