Problem with software compilation with Solaris 10 x86

Hi!
I installed Solaris 10 (entire distribution) and realized that my gcc compiler can't compile even a very simple application.
#include<stdio.h>
int main()
printf("abc");
return 0;
}This is output from terminal screen:
# gcc test.cpp
Undefined first referenced
symbol in file
__gxx_personality_v0 /var/tmp//ccYJ4DSu.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
Please help!
Thank you.

GCC does different things depending on how the file is named. cpp should refer to a file that needs to go through the c preprocessor, not C code.
Try renaming test.cpp to test.c.
bash-3.00# gcc foo.cpp
Undefined first referenced
symbol in file
__gxx_personality_v0 /var/tmp//ccvnZHGr.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
bash-3.00# mv foo.cpp foo.c
bash-3.00# gcc foo.c
bash-3.00# ./a.out
abcbash-3.00#
Darren

Similar Messages

  • Many problems with software activation with software purchased online

    All:
    In the last few weeks, I have had a lot of problems with software activation.  
    I purchased 10 copies of Office.  5 would not activate.  I took the software back to the local as suggested by customer service, but was denied an exchange.
    I purchased 7 copies of Adobe Photoshop elements. 3 activated, the rest did not.
    What is going on?  Can I get these replaced, refunded, or activated?
    Thanks.

    Greetings captainkeys,
    That’s quite the amount of software to purchase! I’m sure you were quite disappointed to find that not all of the software codes seemed to be activated, delaying your use of the software. I’m glad you’ve reached out to us in multiple ways to see what options are available to you, and I apologize if we have been unable to find a resolution for you.
    Using the email address you registered with the forum, I was only able to locate eight copies of Microsoft Office, and couldn’t locate any copies of the Adobe Photoshop Elements. That being said, I was able to see that some of the codes did fail to process through the activation process. I would be happy to look into getting these activated for you.
    That being said, I am sending you a private message to gather further information from you. You may check your private messages by signing into the forum and clicking the envelope icon in the top right corner of the page.
    Sincerely, 
    Tasha|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Java 6u24 won't launch signed JNLP app with classes compiled with JDK 1.4.2

    Anyone else having a problem launching a JNLP app compiled with Java 1.4 using Java 6u24 on the client? Anyone have a Java 1.4-compiled app that does launch with Java 6u24?
    I am, and I have isolated the problem to some change in 6u24's java web start launching logic. The splash screen appears and then javaws just quits with no error. Trace shows it is not getting past checking of the first .jar. My JNLP app, fully signed with CA-issued certificate, when compiled with Java 1.4.2 will not launch on JRE 6u24 (or 6u25-b03). The same exact app launches perfectly fine when it is compiled with JDK 1.5 or 1.6. It is not a signing problem, though it is related to certificate checking logic or a concurrency flaw in javaws' AppPolicy and TrustDecider classes. It is not a host server or network problem as those have been varied with same results. It is not a specific .jar problem as I have varied what is the first .jar with same results. I have eliminated all other variables to find the only difference is what Java version the app is compiled with. Well, all but one other variable - I have not tried with apps other than mine.
    My app is compiled with JDK 1.4.2 so I can still support older platforms. That requirement is going away soon but this is still a regression from 6u23 that is causing a big problem for at least this developer.

    You can try to use the version of the jarsigner JDK 1.5 or later.
    Has changed the management of files in META-INF.
    So compile with 1.4 but sign with 1.5 or later

  • Urgent Solution needed--Problem in JSP compilation with JDK 1.5 and JDK 1.6

    Hi,
    I m using JDK 1.5 and Tomcat 5.0 the problem is that after starting server when I m going to access my application at that time instead of displaying HomePage it directly display the blank page on screen.
    After analyzing tomcat log I have found that there was a problem with JSP page compilation.
    The exception logged in Tomcat Log is given below
    An error occurred at line: 1 in the generated java file
    The type Collection is not generic; it cannot be parameterized with arguments <? extends E>
    Stacktrace:
    *     at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)*
    *     at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)*
    *     at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)*
    *     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)*
    *     at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)*
    *     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)*
    *     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)*
    *     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)*
    *     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
    *     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)*
    *     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)*
    *     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)*
    *     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447)*
    *     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
    *     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)*
    *     at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)*
    *     at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)*
    *     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)*
    *     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)*
    *     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)*
    *     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)*
    *     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)*
    *     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)*
    *     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)*
    *     at java.lang.Thread.run(Thread.java:619)*
    After getting this kind of error I have analyzed my code furhter then I came to know that there was problem with static include tag.
    In my jsp page I have used following line which is the main cause of error
    <%@ include file="top.jsp" %>If I ommit this line then it is working properly.
    Instead of static include I have used jsp:include also.
    Still I m getting same problem.
    We have to migrated from JDK 1.5 to 1.6 and Tomcat 5.0.28 to 6.0.14, still same problem is there.
    We have tried a lot but didnt get success to overcome this problem.
    If anybody having any solution then ur each reply will be appreciated.
    Thanks in advance..........!!!!!!!
    Edited by: JBOSS2000 on Jan 15, 2008 9:29 AM

    Hi "mshanu" and "amit" Thanks for ur replies Here I m posting the code of "top.jsp"........!!!!
    <%@ page errorPage="errordisplay.jsp"%>
    <table cellpadding="0"
           cellspacing="0"  height=50 width=780>
           <tbody>
             <tr class="header">
               <td class="logo"><IMG SRC="assets/Logo.gif" BORDER=0 ALIGN=top></td>
               <td align="right"><span class="applicationtitle"><%@ include file="/contents/logo.htm" %></span><br>
               <span class="companyname"><%@ include file="/contents/companyname.htm" %></span></td>
             </tr>
            </tbody>
    </table>To include top.jsp I have tried
    <jsp:include page="top.jsp" flush="true">
    </jsp:include>
             AND       
    <%@ include file="top.jsp"%>but none of this worked.
    If I remove the include then It is working properly.
    But I need inluded file too so that I am wondoring for the solution.
    This problem seems very wiered to me. I dont know why it is happening.
    This problem is started only when I used the TOMCAT 6.14.
    Is it the bug of TOMCAT 6.14 or What somebody Plz help.
    I got stuck here.........!!!!!!!!!!
    It doesn't seem any problem with top.jsp. As per my thinking the problem is there in include due to that it doesn't compile the JSP page in Tomcat 6.0.
    Earlier I am having same code running on the Tomcat 5.0.28 and JDK 1.5.0.
    But problem occured when I have used Tomcat 6.x...!!

  • How to determine line # from printstack() with cc compiler on Solaris 10

    Hi,
    printstack() when called produces a stack trace per the following:
    /lib/libc.so.1:0xc5364
    /lib/libc.so.1:0xb9e64
    /platform/sun4u-us3/lib/libc_psr.so.1:memcpy+0x660 [ Signal 11 (SEGV)]
    /opt_outside_local_disk/opt/zim/bin/program_name:function_name+0x160
    How does one determine what the line # is in the C program for the above offset 0x160?
    Thanks in advance.
    Joe

    Hi Joe,
    I don't know what is the best way, but here is a 3-steps procedure to find the line.
    I inserted a printstack(2) line in my program, and got this output:
    /export/home/nikm/SunStudioProjects/4Queens/NQueens'main+0x711 [0x4023f9]I use Sun Studio 12 update 1 to compile my program.
    It includes Performance Analyzer tools, and one of its utilities, "er_src", can help to find the line.
    First of all, let's run it with "-disasm" option to find the line number, that corresponds to the address 4023f9:
    nikm@OS-Dec2008:~$  er_src -disasm main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | grep 4023f9
                    [137]   4023ed:  jle     .+0xc [ 0x4023f9 ]
                    [141]   4023f9:  movq    0x11280(%rip),%rsiBasically, that's it, we have the line number - it is 141.
    Let's verify that this is correct:
    nikm@OS-Dec2008:~$  er_src -src main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | grep -n '141\.'
    214:           141.     return total_pos;Well, it points to the line after the printstack(2) statement. Let's verify this:
    nikm@OS-Dec2008:~$  er_src -src main  /export/home/nikm/SunStudioProjects/4Queens/NQueens | head -214 | tail -5
               137.     if (debug > 0) {
               138.         printstack(2);
               139.     }
               140.
               141.     return total_pos;
    nikm@OS-Dec2008:~$ That's it. The line is 138, and printstack(2) actually points to the next line.
    Thanks.
    Nik
    Edited by: NikMolchanov on Aug 29, 2009 10:10 PM
    Edited by: NikMolchanov on Aug 29, 2009 10:11 PM

  • ORACLE TABLESPACE CREATION PROBLEM IN SAN STORAGE FROM SOLARIS X86 Machine

    Hi everybody,
    i am new in this forum and i am also new in solaris operating system with SAN storage.
    I am using oracle database 10g in a sun x86 machine with solaris 5.10.
    While i am trying to create a tablepsace in SAN storage in a mount point of 2.1TB the following error occurs:
    SQL> create tablespace test datafile '/appbrm01/oracle/oradata/test1.dbf' size 100M;
    create tablespace test datafile '/appbrm01/oracle/oradata/test1.dbf' size 1M
    ERROR at line 1:
    ORA-01119: error in creating database file '/appbrm01/oracle/oradata/test1.dbf'
    ORA-27037: unable to obtain file status
    Intel SVR4 UNIX Error: 79: Value too large for defined data type
    Additional information: 45
    SQL>
    But when i am trying to create a tablepsace in SAN storage in a mount point of 1.8TB it works fine.
    So, please if any body can help me to solve this issue i will be very glad
    Thanks
    Reshad

    Also, Datapump from NAS device would perform slow.
    Take a look at this:
    10gR2 "database backup" to nfs mounted dir results in ORA-27054 NFS error
    Note:356508.1 - NFS Changes In 10gR2 Slow Performance (RMAN, Export, Datapump) From Metalink.

  • Jre for solaris x86

    hi,
    I know that there is a separate JRE for Solaris X86. But my problem is that i have Solaris x86 installed an amd 64 bit machine and also on an Intel 64 bit machine.
    I would like to know if it is possible to use the same jre for both the machines.
    Edited by: Diganth.A on Feb 4, 2009 11:16 AM

    Diganth.A wrote:
    hi,
    I know that there is a separate JRE for Solaris X86. But my problem is that i have Solaris x86 installed an amd 64 bit machine and also on an Intel 64 bit machine.
    I would like to know if it is possible to use the same jre for both the machines.
    Edited by: Diganth.A on Feb 4, 2009 11:16 AMThis all depends on the operating system your are using and the type of 64 bit hardware architecture type.
    Can you please provide more specific details about the architecture and operating systems you are trying to install your JRE on?
    Typically you will want to download a pre-configured JRE for your OS platform and hardware architecture.

  • Help!Apache compiling with gcc in Solaris 10

    Greetings
    I am having problems with Apache 1.3.
    When I am running the script ./src/Configure my output is:
    #./Configure
    Using config file: Configuration
    Creating Makefile
    + configured for Solaris 2100 platform
    + setting C pre-processor to gcc -E
    + using "tr [a-z] [A-Z]" to uppercase
    + checking for system header files
    + adding selected modules
    ./helpers/TestCompile: make: not found
    + using builtin Expat
    ./Configure: make: not found
    + checking sizeof various data types
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    + doing sanity check on compiler and options
    ./helpers/TestCompile: make: not found
    ** A test compilation with your Makefile configuration
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.
    ======== Error Output for sanity check ========
    ./helpers/TestCompile: make: not found
    ============= End of Error Report =============
    Aborting!
    I am root, my PATH is
    /usr/bin:/usr/ucb:/etc:/usr/local/bin:/opt/netscape:/usr/css/bin/:/bin:/usr/openwin/bin:/usr/sbin:/
    I am missing something stupid, I know but I can't find it!!!!Help please I am a newbie.
    I am curious. Has anyone been able to compile succesfully apache server with gcc in Solaris 10?
    Thanks,

    Thanks,
    It was only that.!!!
    But now I have the following problem, I can't create executables when I type make. The output is:
    when I am in the src/folder
    #make
    ===> regex
    <=== regex
    ===> os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> $i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== $i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    but when I am typing one step up is.
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    I am newbie with Solaris and gcc so I have no so much idea what is missing there.
    Thanks,
    Juan

  • Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0

    Hello,
    Maybe you can help me (new on RMAN backup) in doing this.
    I have configured a single Oracle 10g database to have backup with RMAN with following steps:
    1. $ mkdir $ORACLE_BASE/rman_scripts
    2. $ mkdir $ORACLE_BASE/logs
    3. $ mkdir $ORACLE_BASE/tracking
    4. $ mkdir $ORACLE_BASE/c_backup
    5. $ sqlplus sys/<password> as sysdba
    6. SQL> alter system set db_recovery_file_dest_size = 50G scope=both;
    7. SQL> alter system set db_recovery_file_dest='${ ORACLE_BASE}/flash_recovery_ area' scope=both;
    8. SQL> alter system set log_archive_dest_10='location= use_db_recovery_file_dest';
    9. SQL> shutdown immediate
    10. SQL> startup nomount
    11. SQL> alter database archivelog;
    12. SQL> alter database open;
    13. SQL> alter database enable block change tracking using file '${ORACLE_BASE}/tracking/rman_ change_track.f';
    14. $ rman target /
    15. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK
    TO '/var/opt/oracle/flash_ recovery_area/ORCL/c_backup/% F';
    16. RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    17. RMAN> CONFIGURE BACKUP OPTIMIZATION ON;
    18. RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    19. RMAN> exit
    I need to configure incremental backup with RMAN on a two node Solaris x86 with Oracle RAC 10g Enterprise Edition Release 10.2.0.3.0 installation.
    We also use ASM to store database files, and have Oracle software installed on separate file systems (two Oracle roots for Node1 and Node2).
    I have following questions:
    1) where to put Flash Recovery Area (FRA)?
    I saw recommendations to put FRA on the ASM, is this the best way to do it?
    2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
    3) Is it possible/recommended to run RMAN from Node1 only?
    Below is the script used to run RMAN on the normal Oracle database (without RAC) which I need to change :
    =============================================================================================
    2.0 Oracle backup script: /opt/app/oracle/rman_scripts/backup.sh
    Use this for daily backups, possiblly as a cron job.
    Once a week run this: /opt/app/oracle/rman_scripts/backup.sh FULL
    All other days of the week: /opt/app/oracle/rman_scripts/backup.sh INCREMENTAL
    Note: You may have to change ORACLE_SID, ORACLE_BASE below to match your database.
    =============================================================================================
    #!/usr/bin/ksh
    ORACLE_SID=orcl
    ORACLE_BASE=/opt/app/oracle
    ORACLE_HOME=${ORACLE_BASE}/product/10.2.0/db_1
    PATH=${ORACLE_HOME}/bin:/usr/bin
    LOGDIR=${ORACLE_BASE}/logs
    LOGFILE=${LOGDIR}/rman.log
    if [[ $# < 1 ]]
    then
    echo "usage: backup.sh FULL|INCREMENTAL"
    exit;
    fi
    BACKUPTYPE=${1}
    full='FULL'
    incremental='INCREMENTAL'
    if [[ $BACKUPTYPE == $full ]]
    then
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup database;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    echo ''
    fi
    if [[ $BACKUPTYPE == $incremental ]]
    then
    $ORACLE_HOME/bin/rman target / nocatalog log ${LOGFILE} append << eof
    run {
    backup database;
    backup incremental level 1 database;
    SQL 'alter system archive log current';
    backup archivelog all;
    delete noprompt obsolete;
    exit;
    eof
    echo ''
    fi

    Hi [email protected],
    Q1) where to put Flash Recovery Area (FRA)?
    A1) With RAC: on the shared storage
    I saw recommendations to put FRA on the ASM, is this the best way to do it?
    If you want your backups to be available for both nodes you have to use shared storage or tape using an mml library.
    So if you want to use the FRA for rman backups and the database is on ASM just make ASM the standard for the FRA as well.
    Q2) Can I put FRA on another file system (not on the ASM) which is available only from Node1? This way I can save space on the ASM.
    A2) Than you cannot recover in case Node1 is down. Best would be to send your storage admin to a training course so he can manage the clustered raw devices needed for ASM.
    Q3) Is it possible/recommended to run RMAN from Node1 only?
    A3) No see A2.
    Regards,
    Tycho

  • Solaris x86 with card on-board

    Hi all,
    I got a problem when installing Solaris9 x86 on ibm NetVista Machine.
    I have installed 2 other machines with separated network card sucessfully. I can configure to connecto to my LAN network.
    But when install on 2 ibm NetVista machines (which include onboard network card ), It is fail to be configured to connect to the network in both following cases:
    Case 1: I choose proper driver as Sun suggest for Intel VE Pro(R) 10/100 : iprb. And the Solaris detect successfully. I checked by "ifconfig -a" and saw the network card active on "iprb0".
    Next, I following correct instructions to configure the network card to connect to the LAN. But when i ping IP (9.187.186.18) to other computer in our same subnet LAN,
    The system display eg: "No anwer from 9.187.186.18"
    I run the "snoop" command to view broadcasr ARP in an other terminal. The snoop terminal displays ARP signal boradcasting from the Solaris. However, it can nerver get ARPs from other computer in LAN.
    Case 2: I add 3COM network driver to the solaris ( onboard card is no loger used ). The system can auto-detected this card and i can configure to connect to the network. The problem remain unchange.
    Is there any special in IBM Netvista machine need to be configure under Solaris x86 or any particular configuarion for on-board network card. ???
    Can any boy help me to solve this problem ??
    Best regards,
    Thang,
    Vietsoftware Developer

    However, it can nerver get ARPs from other computer in LAN.Are you perhaps running "snoop" on a box different from the one that you're trying to ping, and are you using
    a switched ethernet? In that case it would be OK if you only see the ARP broadcast, because the ping target
    box will send the ARP reply directly to the MAC of the requesting station (i.e. there's no ARP broadcast reply),
    and an ethernet switch will send the ARP reply directly to the port where the station with the given destination
    MAC is connected - no other port should see the reply.
    If you're trying to ping 9.187.186.18 from the new Solaris x86 box, try to run snoop on the 9.187.186.18
    system. 9.187.186.18 should see the ARP broadcast from the LAN, and the 9.187.186.18 box should list the
    ARP response it sends back to the LAN.
    Is there any special in IBM Netvista machine need to be configure under Solaris x86 or any particular
    configuarion for on-board network card. ???I guess the interrupt handler for the NIC is not working, so the Solaris x86 sees no incomming packets.
    See the "troubleshooting" section on the following page:
    http://solaris-x86.org/documents/tutorials/rtls.mhtml

  • Compiler failures with Studio 11 on Solaris 10 x64

    The compiler gives me the following error when I try to compile the larger tests in my environment:
    "Tests.cc", [main]:ube: error: Assert has been violated at '/set/venus_patch/builds.intel-S2/build.0509/intel-S2/lang/ube/opt/src/cfg.c 3150'.
    I am using the following compilation command:
    /opt/SUNWspro/bin/CC -xtarget=opteron -xarch=amd64 -xO0 -library=stlport4 [includes] -c -o obj/lib/Tests.o lib/Tests.cc
    I get a different error if I change the optimization level to 2:
    compiler(iropt) error: connect_labelrefs: undefined label L175 in main
    And yet another message if I use no optimization option at all:
    Assembler: Tests.cc
    "/tmp/yabeAAAX7aqaq", line 20533 : Illegal subtraction in ... ".L209 - .L_y162"
    Failure in /opt/SUNWspro/prod/bin/fbe, status = 0x7f00
    Fatal Error exec'ing /opt/SUNWspro/prod/bin/fbe
    My patches are up to date as of right now, according to smpatch:
    smpatch analyzeNo patches required.
    I am not running compilations in parallel. I have 4 GB free in my swap.
    Any ideas?

    The machine came preinstalled with Solaris 10 and Studio 11. The compiler has been kept up to date by smpatch, as far as I can tell. I remember the update manager installing 120759 and 121018, for example.
    Is this correct?
    comptest> /opt/SUNWspro/bin/CC -V -O hello.cc
    CC: Sun C++ 5.8 Patch 121018-11 2007/05/02
    ir2hf: Sun Compiler Common 11 Patch 120759-14 2007/06/25
    ube: Sun Compiler Common 11 Patch 120759-14 2007/06/25
    /opt/SUNWspro/prod/bin/c++filt: Sun C++ 5.8 2005/10/13
    ccfe: Sun C++ 5.8 Patch 121018-11 2007/05/02
    iropt: Sun Compiler Common 11 Patch 120759-14 2007/06/25
    ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.486
    Thanks for your prompt replies.

  • Problem with Linux executable in solaris

    Hello
    I have a problem. We have sunblade workstation with OS solaris 2.8 version. I have downloaded a program which is developed under RedHat 5.1 and complied with Egcs-1.0.2. when i execute this program i am getting the message like bash: ./Al: cannot execute binary file
    I would be thankfull if someone tell me how to solve the problem.
    Thanks Raji

    You need lxrun do be able to run Linux binaries on Solaris x86. You can get it at
    http://soldc.sun.com/freeware/details/detail_lxrun_0.9.6.1_8_Intel.html
    I've never used it, so please post your results here.

  • Problem initializing libsapsecu.so on Solaris 10 with SAP NW2004s.

    We have developed a Java application that we intend to serve with SAP NetWeaver 7.0 (NW2004s). Our NetWeaver system is running on Solaris 10 with an Oracle DB. We want our application to be able to extract usernames from SAP Login Tickets and to do these we need the external libraries <b>libsapsecu.so</b> and <b>libsapssoext.so</b>. However, when our application tries to initialize these libraries an exception is thrown:
    Mysapinitialize failed. rc=14
    However, we are using Windows versions of these libraries on another server and they work.
    Does anybody have experience using these libraries on Solaris, and if so, has anybody had similar problems.
    Any help would be greatly appreciated.

    Standard C++ defines two versions of qsort (and also bsearch): one that takes a pointer to a C function, and one that takes a pointer to a C++ function.
    Recall that in standard C++, a pointer to a C function has a different type than a pointer to a C++ function. This issue is discussed at length in the C++ Migration Guide that comes with the compiler.
    The version of qsort that takes a pointer to a C function is the C version of qsort, and is in libc.so (the basic Solaris runtime library that all programs use).
    The version of qsort that takes a pointer to a C++ function is in the C++ runtime library libCrun.so that all C++ programs use.
    But because it took a while for Solaris headers to be updated to the C++ requirement, early versions of libCrun did not have the C++ version of qsort (or bsearch). If you get the latest C++ runtime library patch (SUNWlibC) for your system, your program should link. You can get patches here:
    http://developers.sun.com/prodtech/cc/downloads/patches/index.html
    Not only the system where you build the program needs updating, but every system that runs the program you build.
    Alternatively, you can declare the comparison function extern "C" so that the C version of qsort will be used.
    extern "C"
    int comp(const void pv1, const void pv2)
    But if the comparison function is in a namespace or is a class member function, you cannot usefully declare it extern "C".

  • Using 4.2 compiler with solaris 8?

    Does anyone know if it is possible to get/use the 4.2 compiler with Solaris 2.8? If not, have people found that compat=4 was an adequate workaround? Thanks, John Ranta
    Feel free to copy reply to my email
    [email protected]

    i don't know if it is possible to use the 4.2 compiler with solaris 8.
    however we have used the compat=4 option for some ported code that
    did not compile under the Forte 6 compiler without compat. we
    have not seen a problem using compat=4 as a workaround.

  • Problems with software the update with Nokia 6233

    Problems with software the update with Nokia 6233
    Hello,
    I have so far some-paints tries my software to update.
    Each time the update procedure begins, sometime stands then on the telephone “test mode”.
    On the computer wars I the reference in the update manager “connection to the telephone broken off” and wants the update to again start.
    If I change my profile attitudes since that for example, then after a telephone restart again deleted.
    What there can I make?
    GreetingsMessage Edited by adisaily on 24-Aug-2007 09:03 AM

    It sounds like your 5800 has the earpiece fault that was common with 5800's made before February.
    You need to take it to a nokia care point for repair under warranty.
    Care points/service centres and repair info:
    UK • Europe • Asia-Pacific • USA •
    Canada • Middle East and Africa
    Elsewhere: Click here, select your country, go to the support section, then select repair.

Maybe you are looking for

  • HP Slate 21 Pro: WiFi connection issues

    Hi, I recently ordered two HP Slate 21 Pro devices. Unfortunately, both of them have WiFi connection issues. After some time the properly configured WiFi connection will be dropped, which results in connectionless devices. The WiFi AP is disabled aft

  • How many systems can be accessed to a single SQL Server?

    I am a C# developer. I am developing a C# application. I need to install application in all the client PC's and I am planning it to install SQL Server in a single pc or server. I am planning to give the connection to sql server from the client pc's.

  • Performance issue in customized program

    Hi, We have a performance issue in customized program. In this program he used do-enddo twice. I mean nested do-endo. How can we increase the performance. And when we did the code inspector it displays 9 errors 'Char. strings w/o text elements will n

  • Illustrator CS5 crashes every time I startup

    I've installed CS5 Design Premium. Everything works except for Illustrator. I've seen other threads and tried their suggestions (deleting prefs, deleting cache).  But still it crashes upon startup. Can ANYONE help me?  Here's the crash report: Proces

  • Understanding the basics

    You know you are in trouble when you cannot complete step #2 of a tutorial.  The good news is I understand all the AS3 code, I am a programmer by trade. The tutorial in question is Build a Dynamic Flash Gallery with Slider Controland I am stuck on cr