Building eveything from source with ABS

Hi. Im amazed with the ABS system. It´s aewsome, since I love to build all the software in my system from source, and compiling it and make it a binary package is just genious. But I have some questions, here they go:
1 - Im compiling everything using the ABS tree using makepkg -b, so it compiles and generates packages also for its dependencies and I edited makepkg.conf so all the generated packages go to a folder (i.e.  /packages) so I can install them later using pacman -U package. My question is: If I later install a given packages, that depends on another, will that package be automatically installed when it´s needed? And is there a way to automatically redo all the source compiling and package generation automatically upon a source update for the packages I previously generated (like syncing in pacman)?
2- Im trying to build my desktop from source the ABS way the cleanest way possible, without all that kde programs, just the core of its window manager, so I would like to know what sources to compile. I guess it would be something like xorg -> kde -> nvidia drivers -> compiz-fusion (not supported by ABS) . Any directions, guys? Thanks in advance.
Last edited by Arthanis (2008-01-28 00:32:24)

Arthanis wrote:Sorry, it´s because i didn´t know how to move the post, I saw that if fit in another part of the forum
Don't worry too much.  I suppose I was being mean given you are new here. It is just that help tends to be better when clustered in one place. 
jacko wrote:I thought about doing this for myself at some point, there is a lot of things I just do not need that is compiled in by default which I could rid myself of but, is all the time worth it in the end? Would like to hear someone elses expertise on this issue.
Well, you could also add in more optimization for your specific processor.  But I honestly don't think you need this for every package.  Perhaps the kernel, glic and a couple of other often used and big packages, but in the end it is barely noticeable given Arch is fairly optimized by default and can make you system less stable.
The only real reason to recompile is to add/remove options.  If the option is easy to add and doesn't bloat the package. the devs will probably add it for you if you ask in the bug tracker anyway.  I think the only package I now recompile are mozilla ones because I want the branding.

Similar Messages

  • Cannot build JDS3 from source

    I recently successfully installed Solaris 10 from the media kit on an x86 machine. I also successfully downloaded the JDS3 source tarballs and bunzip'd and untar'd them. I eventually figured out how to set my PATH (and LD_LIBRARY_PATH) environment variable up so that all the requisite tools for building JDS3 from source are in my path. However, I'm failing miserably when I try to use 'pkgbuild --rebuild /path/to/somepackage-src', as  detailed in the instructions on building JDS3 from source. The errors I get depend on what package I try the pkgbuild on. I really only want to be able to peruse the source code (especially the GNOME sources included with the JDS3 source), so I would be happy just to get the "prep" or maybe the "compile" phases of pkgbuild to work, if not the entire rebuild. I have googled and visited  solaris /jds forums for days, and have yet to discover any good information about how to build JDS3 from source on Solaris 10. Surely there are a bunch of people who successfully do this. Can anyone point me to some helpful info? Thanks in advance...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi,
    I am using the macro _TARGET_PRODUCT_VERSION_ which yields major, minor, service and build version (but without the autoincrement)

  • Building FretsOnFire from source - python problem

    I am trying to build FretsOnFire from source so that I can get a native x86_64 version working.
    So far I have working builds of amanith and pyamanith in AUR.  I know these are working because I can run FretsOnFire directly from python.
    To run FretsOnFire using just python, download both the src and the binary package.  Copy the contents of the data folder from the binary package to the src package.  Then run "python FretsOnFire.py" from the src directory of the source package.  (This works on my i686 machine but I can't remember testing it on my x86_64 one).
    Now I want to make the binary... To do that we need to edit Makefile.unix in the source package. Changes needed are:
    1) CXFREEZE=/usr/share/cx-freeze/FreezePython
    2) PYTHON_LIBS=/usr/lib/python2.5
    3) /usr/local/lib/amanath -> /usr/lib/amanath
    4) remove the following lines (quick hack that needs fixed later...):
               /usr/lib/liblapack.so.3 \
               /usr/lib/libg2c.so.0 \
               /usr/lib/atlas/libblas.so.3 \
    5) cx_freeze and epydoc are needed so intstall them.
    6) copy FretsOnFire (shell script) from the binary package to data/launcher.sh in the source package
    7) make -f Makefile.unix
    Everything builds nicely!  But running FretsOnFire from the newly created dist directory gives:
    ImportError: No module named glx
    What do I need to fix this?

    @Demind:  As I said above, I wanted a native x86_64 build.  I have a hatred for lib32. 
    The problem is that amanith source code is not downloadable anymore.
    I would be very happy to help you building a native x86_64 fretsonfire package but without that source code is impossible.
    I don't know if in the past amanith was easily downloadable but now it doesn't seem to be so.
    That's the real problem in my opinion and that's why i've used lib32.
    However using lib32 is not so bad come on
    Hmmm...  I downloaded it only a couple of weeks ago.  I even put working PKGBUILDs for amanith and pyamanith into AUR.  But I see the company making it has gone all commercial on us.
    Also, lib32 is evil!   I don't use it out of principle.  I was going to forgive FretsOnFire for the non-free songs but not to the extent of having to lib32ify my pure64(TM) system!

  • Building Asterisk from source error

    Hello, I'm fairly new to Arch Linux and have been attempting to build Asterisk from source. Building on a Raspberry Pi and when I try and make, I get this error:
    [pi@alarmpi asterisk-1.4.44]$ make
    [CC] src/add.c -> src/add.o
    gcc: error: unrecognized argument in option '-march=armv6l'
    gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc iwmmxt iwmmxt2 native
    gcc: error: unrecognized argument in option '-march=armv6l'
    gcc: note: valid arguments to '-march=' are: armv2 armv2a armv3 armv3m armv4 armv4t armv5 armv5e armv5t armv5te armv6 armv6-m armv6j armv6k armv6s-m armv6t2 armv6z armv6zk armv7 armv7-a armv7-m armv7-r armv7e-m armv7ve armv8-a armv8-a+crc iwmmxt iwmmxt2 native
    /home/pi/builds/asterisk-1.4.44/Makefile.rules:91: recipe for target 'src/add.o' failed
    make[2]: *** [src/add.o] Error 1
    Makefile:50: recipe for target 'gsm/lib/libgsm.a' failed
    make[1]: *** [gsm/lib/libgsm.a] Error 2
    Makefile:369: recipe for target 'codecs' failed
    make: *** [codecs] Error 2
    I'm not very well versed in diagnosing Makefile errors…but I would assume at least one of the errors would be from gcc not seeing a valid -march option. Any suggestions on where I should look or what I should change to correct this error?
    Last edited by zaplack (2014-11-18 20:23:37)

    I found this repo to be missing several essential tools; as far as I got I "found" that
    unzip and rsync were missing. 
    Just adding a generic cygwin/bin to the path did not work, because an unsuitable version
    of ranlib got into the tool chain. 
    I made some progress by constructing a special bin directory that contained only the
    DLLs from cygwin/bin + unzip + rsync
    The next stumble (still unresolved) is in make "make"
    checking whether the C compiler works... no
    configure: error: in `/cygdrive/c/crossbridge-master/build/win/make':
    configure: error: C compiler cannot create executables

  • Building CrossBridgeSDK from source on Windows

    I would like to build CrossBridge SDK from source on Windows platform - but the first error I recieve:
    make[1]: Entering directory '/cygdrive/f/crossbridge'
    mkdir -p /cygdrive/f/crossbridge/build/extra
    mkdir -p /cygdrive/f/crossbridge/build/win/abclibs
    mkdir -p /cygdrive/f/crossbridge/sdk/usr/lib/bfd-plugins
    mkdir -p /cygdrive/f/crossbridge/sdk/usr/share
    mkdir -p /cygdrive/f/crossbridge/sdk/usr/platform/"cygwin"/bin
    mkdir -p /cygdrive/f/crossbridge/sdk/usr/platform/"cygwin"/libexec/gcc/avm2-unknown-freebsd8
    ln -sfn ../usr /cygdrive/f/crossbridge/sdk/usr/avm2-unknown-freebsd8
    ln -sfn "cygwin" /cygdrive/f/crossbridge/sdk/usr/platform/current
    ln -sfn platform/current/bin /cygdrive/f/crossbridge/sdk/usr/bin
    ln -sfn ../ /cygdrive/f/crossbridge/sdk/usr/platform/usr
    ln: `/cygdrive/f/crossbridge/sdk/usr/platform/usr/..': cannot overwrite directory
    Makefile:899: recipe for target 'base' failed
    make[1]: *** [base] Error 1
    make[1]: Leaving directory '/cygdrive/f/crossbridge'
    Anybody who tried to build this on windows with cygwin and has a step-by-step guide?
    (I'll write one if I succeed).
    Best Regards

    I found this repo to be missing several essential tools; as far as I got I "found" that
    unzip and rsync were missing. 
    Just adding a generic cygwin/bin to the path did not work, because an unsuitable version
    of ranlib got into the tool chain. 
    I made some progress by constructing a special bin directory that contained only the
    DLLs from cygwin/bin + unzip + rsync
    The next stumble (still unresolved) is in make "make"
    checking whether the C compiler works... no
    configure: error: in `/cygdrive/c/crossbridge-master/build/win/make':
    configure: error: C compiler cannot create executables

  • Building ArchLinux from Source

    Hello I am new to Archlinux.
    I come here from a long way through Ubuntu, Debian over Gentoo and finally Linux from Scratch. However none provided me the boot times I wished, so I came to Arch. I don't know wether the question was discussed, at least I could not find it:
    How can I install ArchLinux from Source? I want to benefit from "-O2 -march=native" (or -O3? What is more appropiate for Intel Atom N450, 1GB RAM?). I only find documentation for using the binaries provided.

    tinko wrote:
    .....Ubuntu ... Debian ... Gentoo ...  Linux from Scratch ... none provided me the boot times I wished, so I came to Arch. .....
    How can I install ArchLinux from Source? I want to benefit from "-O2 -march=native" (or -O3? What is more appropiate for Intel Atom N450, 1GB RAM?).
    The beautiful aspect of Arch, to me, is that you can install all of your desired apps from binaries in a very short time and later compile them (or some of them) from source code to optimize performance. I run ArchLinux on a couple of systems with Atom 230 and 330 processors (each with maxed out memory, 3.2GB).  I've noticed a nice improvement in responsiveness as I've moved step-by-step from a system composed entirely of pre-compiled binaries from the repositories to a system composed mostly of the same packages compiled locally with my own CFLAGS ("-march=atom -O2 -msse3 -mfpmath=sse").  I think that installing from source is a reasonable thing to do and is very easy with Arch:
    pbget <package> && cd <package>/ && makepkg --install --noconfirm --log  [-s]
    You can prepare for your daily or weekly upgrade with
    pbget --abs --upgradable && pbget --aur-only --upgradable
    To get a kernel compiled for the atom cpu just use pbget to get the kernel26 package (or pbget --aur-only kernel26-ck to get the ck-patched kernel), edit the PKGBUILD to enable menuconfig (I use "make gconfig"), run makepkg and enable the atom cpu option in the menus.
    Arch doesn't have USE flags (and I'm glad of that) but the equivalent is to edit the PKGBUILD.  You may have to delve into the source code before changing ./configure options:  makepkg --nobuild && <check the configure options> && vim PKGBUILD && makepkg --install
    In general the Arch devs have done well in choosing the right configuration. I'm happy to stick with almost all of their decisions and burn myself once in while when I try to do otherwise

  • Build pygame from source

    Hi,
    I've been trying to install pygame from source on OS X 10.5.5. Following the instructions [here|http://pygame.org/wiki/MacCompile?action=view], everything went fine until I got to the stage
    Edit Setup and put a '#' at the start of the line:
    #scrap src/scrap.c $(SDL) $(X11)
    My Setup file does not contain this line. Attempting to run python setup.py build produces problems...
    Using Darwin configuration...
    Hunting dependencies...
    Framework SDL found
    Framework SDL_ttf found
    Framework SDL_image found
    Framework SDL_mixer found
    Framework smpeg not found
    PNG : found
    JPEG : found
    SCRAP : not found
    If you get compiler errors during install, doublecheck
    the compiler flags in the "Setup" file.
    ~/Downloads/pygame-1.8.1release 2 19 (1781) $ python setup.py build
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.5-i386-2.5
    creating build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/_init_.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/_numpysndarray.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/_numpysurfarray.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/colordict.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/cursors.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/locals.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/mac_scrap.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/macosx.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/pkgdata.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/sndarray.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/sprite.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/surfarray.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/sysfont.py -> build/lib.macosx-10.5-i386-2.5/pygame
    copying lib/version.py -> build/lib.macosx-10.5-i386-2.5/pygame
    creating build/lib.macosx-10.5-i386-2.5/pygame/gp2x
    copying lib/gp2x/_init_.py -> build/lib.macosx-10.5-i386-2.5/pygame/gp2x
    copying lib/gp2x/constants.py -> build/lib.macosx-10.5-i386-2.5/pygame/gp2x
    copying lib/gp2x/locals.py -> build/lib.macosx-10.5-i386-2.5/pygame/gp2x
    creating build/lib.macosx-10.5-i386-2.5/pygame/threads
    copying lib/threads/_init_.py -> build/lib.macosx-10.5-i386-2.5/pygame/threads
    copying lib/threads/Py25Queue.py -> build/lib.macosx-10.5-i386-2.5/pygame/threads
    running build_ext
    building 'pygame.imageext' extension
    creating build/temp.macosx-10.5-i386-2.5
    creating build/temp.macosx-10.5-i386-2.5/src
    gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -Ddarwin -I/Library/Frameworks/SDL.framework/Versions/Current/Headers -I/Library/Frameworks/SDL_image.framework/Versions/Current/Headers -I/usr/local/include -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/imageext.c -o build/temp.macosx-10.5-i386-2.5/src/imageext.o
    In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Pyth on.h:8,
    from src/pygame.h:60,
    from src/imageext.c:31:
    /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pycon fig.h:386:1: warning: "HAVE_PROTOTYPES" redefined
    In file included from /usr/local/include/jpeglib.h:24,
    from src/imageext.c:30:
    /usr/local/include/jconfig.h:5:1: warning: this is the location of the previous definition
    In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Pyth on.h:8,
    from src/pygame.h:60,
    from src/imageext.c:31:
    /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pycon fig.h:516:1: warning: "HAVESTDLIBH" redefined
    In file included from /usr/local/include/jpeglib.h:24,
    from src/imageext.c:30:
    /usr/local/include/jconfig.h:12:1: warning: this is the location of the previous definition
    In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Pyth on.h:8,
    from src/pygame.h:60,
    from src/imageext.c:31:
    /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pycon fig.h:386:1: warning: "HAVE_PROTOTYPES" redefined
    In file included from /usr/local/include/jpeglib.h:24,
    from src/imageext.c:30:
    /usr/local/include/jconfig.h:5:1: warning: this is the location of the previous definition
    In file included from /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Pyth on.h:8,
    from src/pygame.h:60,
    from src/imageext.c:31:
    /System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pycon fig.h:516:1: warning: "HAVESTDLIBH" redefined
    In file included from /usr/local/include/jpeglib.h:24,
    from src/imageext.c:30:
    /usr/local/include/jconfig.h:12:1: warning: this is the location of the previous definition
    src/imageext.c:353: warning: function declaration isn't a prototype
    src/imageext.c: In function 'opengltosdl':
    src/imageext.c:357: warning: unused variable 'formatflag'
    src/imageext.c:357: warning: unused variable 'typeflag'
    src/imageext.c:356: warning: unused variable 'readpixels'
    src/imageext.c:356: warning: unused variable 'pyopengl'
    src/imageext.c:353: warning: function declaration isn't a prototype
    src/imageext.c: In function 'opengltosdl':
    src/imageext.c:357: warning: unused variable 'formatflag'
    src/imageext.c:357: warning: unused variable 'typeflag'
    src/imageext.c:356: warning: unused variable 'readpixels'
    src/imageext.c:356: warning: unused variable 'pyopengl'
    gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/src/imageext.o -L/opt/local/lib -L/opt/local/lib -lpng -ljpeg -o build/lib.macosx-10.5-i386-2.5/pygame/imageext.so -framework SDL -F/Library/Frameworks/ -framework SDL_image -F/Library/Frameworks/
    ld warning: in /opt/local/lib/libpng.dylib, file is not of required architecture
    ld warning: in /opt/local/lib/libjpeg.dylib, file is not of required architecture
    ld: in /opt/local/lib/libz.1.dylib, file is not of required architecture for architecture ppc
    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/tmp//cc0jcawF.out (No such file or directory)
    error: command 'gcc' failed with exit status 1
    In particular, the line gcc -Wl,-F. -bundle -undefined dynamic_lookup -arch i386 -arch ppc build/temp.macosx-10.5-i386-2.5/src/imageext.o -L/opt/local/lib -L/opt/local/lib -lpng -ljpeg -o build/lib.macosx-10.5-i386-2.5/pygame/imageext.so -framework SDL -F/Library/Frameworks/ -framework SDL_image -F/Library/Frameworks/ \[emphasis mine\] seems odd.
    The Setup file doesn't seem to contain anything helpful...
    #This Setup file is used by the setup.py script to configure the
    #python extensions. You will likely use the "config.py" which will
    #build a correct Setup file for you based on your system settings.
    #If not, the format is simple enough to edit by hand. First change
    #the needed commandline flags for each dependency, then comment out
    #any unavailable optional modules in the first optional section.
    SDL = -I/Library/Frameworks/SDL.framework/Versions/Current/Headers -Ddarwin -Xlinker "-framework" -Xlinker "SDL" -Xlinker "-F/Library/Frameworks/"
    FONT = -I/Library/Frameworks/SDL_ttf.framework/Versions/Current/Headers -Xlinker "-framework" -Xlinker "SDL_ttf" -Xlinker "-F/Library/Frameworks/"
    IMAGE = -I/Library/Frameworks/SDL_image.framework/Versions/Current/Headers -Xlinker "-framework" -Xlinker "SDL_image" -Xlinker "-F/Library/Frameworks/"
    MIXER = -I/Library/Frameworks/SDL_mixer.framework/Versions/Current/Headers -Xlinker "-framework" -Xlinker "SDL_mixer" -Xlinker "-F/Library/Frameworks/"
    SMPEG = -ls -lm -lp -le -lg
    PNG = -I/usr/local/include -L/opt/local/lib -lpng
    JPEG = -I/usr/local/include -L/opt/local/lib -ljpeg
    SCRAP = -I.
    #DEBUG = -C-W -C-Wall
    DEBUG =
    #the following modules are optional. you will want to compile
    #everything you can, but you can ignore ones you don't have
    #dependencies for, just comment them out
    imageext src/imageext.c $(SDL) $(IMAGE) $(PNG) $(JPEG) $(DEBUG)
    font src/font.c $(SDL) $(FONT) $(DEBUG)
    mixer src/mixer.c $(SDL) $(MIXER) $(DEBUG)
    mixer_music src/music.c $(SDL) $(MIXER) $(DEBUG)
    _numericsurfarray src/_numericsurfarray.c $(SDL) $(DEBUG)
    _numericsndarray src/_numericsndarray.c $(SDL) $(MIXER) $(DEBUG)
    #movie src/movie.c $(SDL) $(SMPEG) $(DEBUG)
    #scrap src/scrap.c $(SDL) $(SCRAP) $(DEBUG)
    #experimental new movie movie. requires libavcodec and libavformat.
    #add any necessary compile flags to this line and uncomment.
    #movieext src/movie.c src/ffmovie.c $(SDL) -lavcodec -lavformat
    #these modules are required for pygame to run. they only require
    #SDL as a dependency. these should not be altered
    base src/base.c $(SDL) $(DEBUG)
    cdrom src/cdrom.c $(SDL) $(DEBUG)
    color src/color.c $(SDL) $(DEBUG)
    constants src/constants.c $(SDL) $(DEBUG)
    display src/display.c $(SDL) $(DEBUG)
    event src/event.c $(SDL) $(DEBUG)
    fastevent src/fastevent.c src/fastevents.c $(SDL) $(DEBUG)
    key src/key.c $(SDL) $(DEBUG)
    mouse src/mouse.c $(SDL) $(DEBUG)
    rect src/rect.c $(SDL) $(DEBUG)
    rwobject src/rwobject.c $(SDL) $(DEBUG)
    surface src/surface.c src/alphablit.c src/surface_fill.c $(SDL) $(DEBUG)
    surflock src/surflock.c $(SDL) $(DEBUG)
    time src/time.c $(SDL) $(DEBUG)
    joystick src/joystick.c $(SDL) $(DEBUG)
    draw src/draw.c $(SDL) $(DEBUG)
    image src/image.c $(SDL) $(DEBUG)
    overlay src/overlay.c $(SDL) $(DEBUG)
    transform src/transform.c src/rotozoom.c src/scale2x.c $(SDL) $(DEBUG)
    mask src/mask.c src/bitmask.c $(SDL) $(DEBUG)
    bufferproxy src/bufferproxy.c $(SDL) $(DEBUG)
    pixelarray src/pixelarray.c $(SDL) $(DEBUG)
    +Message was edited by: semicolons+

    Hi,
    have you installed the prebuild binaries for libjpeg, and libpng? They are universal binaries.
    Otherwise you can copy/paste the gcc line, and get rid of the ppc part. Then run setup.py again, and it should continue on.
    (otherwise get a python from python.org and use the binaries... they work fine on leopard)
    cheers,

  • Building DLLs from VIs with array as output

    Is there any special way to build DLLs from VIs having arrays as outputs. Suppose I have a VI "Random" with input "nrand" and output an array "the_random2". When I build DLL from the VI, I have something like this in my header file
    void __stdcall Random(long nrand, double the_random2[]);
    Now it returns void. So I have to pass the array as pointer and retrieve it. If I use Mathscript to load the DLL and call this function, how do I pass the pointer to the array "the_random2"? Simply speaking, any useful method to build DLLs with array outputs and the right way to call them from Mathscript would be appreciated.
    Regards
    NRK

    Hi,
    Building DLLs in LabVIEW is described in this tutorial.  
    Mathscript can call shared libraries such as DLLs, however make sure
    that they are compliant with the supported data types as stated here in
    this help page.  All supported functions for calling/loading shared libraries is described here. 
    Note that these functions are not supported with the base package.  The
    details of the sytax of each function is described in their specific
    help page.
    Hope this helps!
    Regards,
    Nadim
    Applications Engineering
    National Instruments

  • Trying to build CyanogenMod from source

    Hello. Probably wrong forum but I don't know where o post it. When I try to run this command:
    $make -j`grep 'processor' /proc/cpuinfo | wc -l` I get an error-message saying:
    make: *** No target and makefile found. Stopping.
    (sorry if not correct translated, I have it in Swedish)
    All commands are like this. From XDA-Developers:
    Howto build for GT-I9000:
    mkdir -p ~/android/system
    cd ~/android/system/
    repo init -u git://github.com/codeworkx/android.git -b froyo
    repo sync
    cd ~/android/system/vendor/cyanogen/
    ./get-rommanager
    ./get-google-files -v HDPI
    cd ~/android/system/
    cp ./vendor/cyanogen/products/cyanogen_galaxys.mk ./buildspec.mk
    . build/envsetup.sh
    lunch cyanogen_galaxys-eng
    make -j`grep 'processor' /proc/cpuinfo | wc -l`
    I don't get any errors from previous commands. Just the last one.
    I wonder if someone can help me with this. I'm on an Arch x86_64 install.

    Thankyou! I didn't move the makefile to my build-dir. That was the mistake. At last. Now I have to download the PRODUCT_POLICY or something like that. I'll found out what to do, I think.
    Edit! Wasn't that easy. Now I get another error:
    $ make -j`grep 'processor' /proc/cpuinfo | wc -l`
    File "build/tools/findleaves.py", line 95
    print r
    ^
    SyntaxError: invalid syntax
    File "build/tools/findleaves.py", line 95
    print r
    ^
    SyntaxError: invalid syntax
    frameworks/policies/base/PolicyConfig.mk:22: *** No module defined for the given PRODUCT_POLICY (android.policy_phone). Stopping.
    Anyone who knows about this. Can be something with the Java-version. It seems like I need Java-1.6 but I don't know how to get it. I think my version is 1.9.
    EDIT! It is due to Python. I need Python2. I am giving up. To complicated for me.
    Last edited by jai134 (2010-11-21 21:15:15)

  • How to build applications from LabVIEW with Diadem?

    Dear all,
    I got a question regarding a LabVIEW application with integrated DIADEM report VIs (DIADEM Report). My problem is that the computer, on which the application shall run, has no DIADEM installed.
    For LabVIEW it is clear to install the RUNTIME engine, which works on PCs without installed LabVIEW, but is there something similar for DIADEM available?
    Thanks for your help in advance.
    Best regards,
    RidderM
    Message Edited by RidderM on 01-09-2008 07:39 AM

    No, I don't think it is possible.
    The LabVIEW VIs call the Activex interface of DIADem, I was also exploring this and the best I could think of is to contact a computer that has DIADem installed to run the LabVIEW-DIADem connection there.
    However I didn't ask it to NI.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Cant uninstall application installed from source with pacman.

    I made and installed the songbird-nightly program. It couldnt import a library, thus, wasnt even worth fully testing, unless I was going to manually get it to read all of my songs-- which I will not do.
    Now, to get this off my computer, I tried several things, and then determined that I must not be using the right package name, so I ran:
    pacman -Q | grep songbird
    and it returned :
    songbird-nightly 20080720-1
    thus, I did:
    pacman -Rsc songbird-nightly-20080720-1
    and it returned:
    error: 'songbird-nightly-20080720-1': could not find or read package
    So, how do I get this poo off my computer.
    Ok, its not poo. I love mozilla and virtually every program they make, but right now, its poo.

    Misfit138 wrote:
    miesnerd wrote:i hate that it was that easy.
    Thanks though. Still learning the in's and out's of pacman. It's not exactly apt-get.
    Don't hate pacman for being perfect.
    If pacman is perfect, then how come it won't improve anymore?

  • About building Apache and PHP from source

    Hello,
    I figured my question should be posted here, if it should be done somewhere else, I apologize.
    I'm in the process of exploring solaris 9 (I have RH5 - 9, FC1-3 and FreeBSD 4.7> experience). I was wondering which tools I need to build stuff from source, like Apache and PHP. I am aware of www.sunfreeware.com, which helped me out with mc and other useful stuff.
    The problem I see is that when I install packages from sunfreeware.com, I must rely on the package maintainer to release a new package for newer Apache/PHP versions (with bug/security fixes in it). I plan to run a public webserver on this config, so I figured it'd be best to build what I need from the source so I can update it anytime I like.
    What I installed from sunfreeware.com:
    autconf
    automake
    gcc
    make
    bison
    expect
    mc
    libiconv
    ncurses
    flex
    What else do I need to successfully build software from the source?
    Are there any people running a public web/dns/mailserver on Solaris (whatever the version)?
    If someone could answer to those questions, I'd be most grateful.
    Bas

    Have you installed the companion CD? All you need is there.
    Have you tried to compile?
    If so, what errors do you get?

  • Help with ABS

    Hi. 2 days ago, I managed to setup photoshop cs4 runing on wine, but suddenly it stopped working today when after system upgrade. I noticed that wine version changed, so I searched on wiki to find how to get previous versions. Now... I found article on ABS, so I copied wine folder from abs tree, to my home/my username/abs directory. In wine pkgbuild I found in copied directory, I modified version to 1.2.2 which is last stable as I read on winehq. When I go to abs/wine and run makepkg -s I get this:
    ==> Making package: wine 1.2.2-1 (Sat Feb 5 15:37:06 CET 2011)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Found wine-1.2.2.tar.bz2
    ==> Validating source files with md5sums...
    wine-1.2.2.tar.bz2 ... FAILED
    ==> ERROR: One or more files did not pass the validity check!
    Anyway, I thought that abs is created so that I can get source from some completely unknown software, and, I don't know.., compile it and make some sort of installation script for arch, and this is same as downloading from aur and running makepkg -si. Am I getting something wrong? Because, I've allready downloaded source from winehq, so I was kind of disappointed. I expected that I'll have to put this source into abs/wine folder and then do something with it.
    Any ideas how to make this work? Here's PKGBUILD:
    # $Id: PKGBUILD 38999 2011-02-04 20:31:47Z svenstaro $
    # Maintainer: Sven-Hendrik Haase <[email protected]>
    # Contributor: Jan "heftig" Steffens <[email protected]>
    # Contributor: Eduardo Romero <[email protected]>
    # Contributor: Giovanni Scafora <[email protected]>
    pkgname=wine
    pkgver=1.2.2
    pkgrel=1
    _pkgbasever=${pkgver/rc/-rc}
    source=(http://ibiblio.org/pub/linux/system/emulators/$pkgname/$pkgname-$_pkgbasever.tar.bz2)
    md5sums=('e6d4cd7e51678f90760e2193893637aa')
    pkgdesc="A compatibility layer for running Windows programs"
    url="http://www.winehq.com"
    arch=(i686 x86_64)
    license=(LGPL)
    install=wine.install
    depends=(
    fontconfig lib32-fontconfig
    mesa lib32-mesa
    libxcursor lib32-libxcursor
    libxrandr lib32-libxrandr
    libxdamage lib32-libxdamage
    libxxf86dga lib32-libxxf86dga
    alsa-lib lib32-alsa-lib
    makedepends=(autoconf ncurses bison perl fontforge flex prelink
    'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2'
    giflib lib32-giflib
    libxpm lib32-libxpm
    libpng lib32-libpng
    libxinerama lib32-libxinerama
    libxcomposite lib32-libxcomposite
    libxmu lib32-libxmu
    libxxf86vm lib32-libxxf86vm
    libxml2 lib32-libxml2
    libxslt lib32-libxslt
    libldap lib32-libldap
    lcms lib32-lcms
    mpg123 lib32-mpg123
    openal lib32-openal
    jack lib32-jack
    libcups lib32-libcups
    gnutls lib32-gnutls
    v4l-utils lib32-v4l-utils
    optdepends=(
    giflib lib32-giflib
    libpng lib32-libpng
    libldap lib32-libldap
    lcms lib32-lcms
    libxml2 lib32-libxml2
    mpg123 lib32-mpg123
    openal lib32-openal
    jack lib32-jack
    libcups lib32-libcups
    gnutls lib32-gnutls
    v4l-utils lib32-v4l-utils
    if [[ $CARCH == i686 ]]; then
    # Strip lib32 etc. on i686
    depends=(${depends[@]/*32-*/})
    makedepends=(${makedepends[@]/*32-*/})
    makedepends=(${makedepends[@]/*-multilib*/})
    optdepends=(${optdepends[@]/*32-*/})
    else
    provides=("bin32-wine=$pkgver" "wine-wow64=$pkgver")
    conflicts=('bin32-wine' 'wine-wow64')
    replaces=('bin32-wine')
    fi
    build() {
    cd "$srcdir"
    # Allow ccache to work
    mv $pkgname-$_pkgbasever $pkgname
    # Get rid of old build dirs
    rm -rf $pkgname-{32,64}-build
    mkdir $pkgname-32-build
    if [[ $CARCH == x86_64 ]]; then
    msg2 "Building Wine-64..."
    mkdir $pkgname-64-build
    cd "$srcdir/$pkgname-64-build"
    ../$pkgname/configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --libdir=/usr/lib \
    --with-x \
    --enable-win64
    make
    _wine32opts=(
    --libdir=/usr/lib32
    --with-wine64="$srcdir/$pkgname-64-build"
    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
    fi
    msg2 "Building Wine-32..."
    cd "$srcdir/$pkgname-32-build"
    ../$pkgname/configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --with-x \
    "${_wine32opts[@]}"
    make
    package() {
    msg2 "Packaging Wine-32..."
    cd "$srcdir/$pkgname-32-build"
    if [[ $CARCH == i686 ]]; then
    make prefix="$pkgdir/usr" install
    else
    make prefix="$pkgdir/usr" \
    libdir="$pkgdir/usr/lib32" \
    dlldir="$pkgdir/usr/lib32/wine" install
    msg2 "Packaging Wine-64..."
    cd "$srcdir/$pkgname-64-build"
    make prefix="$pkgdir/usr" \
    libdir="$pkgdir/usr/lib" \
    dlldir="$pkgdir/usr/lib/wine" install
    fi
    # vim:set ts=8 sts=2 sw=2 et:
    EDIT: Just to make a note. I uninstalled official wine version with pacman and removed .wine from my home. And btw, I'm seeing this md5 checksums all over the web lately, so I'm guessing it's some way to check weather package is corrupted or not? If someone can explane me how can I check package with md5checksum in addition, that would be cool.
    EDIT: One more thing. It says in wiki "now you just need to build that from source..." does that mean I have tounpack tar I just got from running makepkg -s and run install script?
    Last edited by BlackArts (2011-02-05 14:49:55)

    thisoldman wrote:
    You didn't want to use the ABS, you wanted to downgrade the Wine package.  I expect you may still downgrade without too much trouble.
    You should use this wiki article as your guide: https://wiki.archlinux.org/index.php/Do … g_Packages
    BlackArts wrote:I'm seeing this md5 checksums all over the web lately, so I'm guessing it's some way to check weather package is corrupted or not? If someone can explane me how can I check package with md5checksum in addition, that would be cool.
    An md5sum is an integrity check to ensure that copies of a file match the original file.  You can easily Google for linux howtos.
    An ABS pkgbuild contains md5sums for the files in the current Arch version of the software.  The md5sums should not match previous versions of the software.  The files are not the same.
    If you have problems downgrading Wine, others will help, I'm sure.
    Thank you, you're awesome. I'm using linux for about 3.5 weeks now, and I never would have thought that there would be something like A.R.M. Now I can test those wine versions to see with which photoshop work best. Linux is awesome! XD (had to say that, but can't say arch explicitly, cos I haven't tried other versions )

  • Building report from PL/SQL cursor

    Hello,
    is there any way to build APEX report using just PL/SQL cursor?
    I don't have grant to SELECT from views or tables, but I can use some functions returning row types and cursors. I know I can use them to build table from scratch with htp.p etc., but it’s not very nice. I want to do it using APEX reporting with filtering and pagination functionality.
    Is it possible?
    Regards,
    Przemek

    Apologies for the delay, I was out of the office.
    Below is a package serving as the basis for creating a view based on a pipelined function. The package is just a skeleton and will not compile in its current form, you will need to go through it filling in the blanks as described by the comments.
    If you want some control over what rows are returned by the view from a larger result set, use the set_parameters function in the WHERE clause, E.G.:
    select * from really_big_complicated_slow_view where 1 = view_pkg.set_parameters(something_that_reduces_the_view_result_set_size);
    Or, a more concrete example:
    select result_text from view_to_convert_to_csv where 1 = view_pkg.set_parameters(pi_table => 'my_table', pi_where = 'whatever');
    In the spirit of full disclosure, I got the idea for using the "set_parameters" function in the view WHERE clause from a post or blog somewhere a couple of years ago but have lost track of who actually deserves the credit for the good idea.
    -Tom
    create or replace package demo_vw as
    -- Package to serve as the basis for a view based on a function
    -- Customize this record so that it represents a row from this view...
    type row_type is record (
    -- record fields here
    type table_type is table of row_type;
    -- This function is used in the DDL to define the view, for example:
    -- create or replace view my_view (col1, col2, ..., colN) as
    -- select * from table(my_view_vw.get_view);
    function get_view
    return table_type
    pipelined;
    -- Customize this function header to accept the parameters for this view, if
    -- any. If this view does not require any parameters, the set_parameters
    -- function may be deleted.
    -- This function should always return 1 and is called as follows
    -- select <whatever>
    -- from my_view
    -- where 1 = my_view_vw.set_parameters(p1, p2, p3, ..., pN);
    function set_parameters (pi_whatever1 in whatever,
    pi_whateverN in whatever)
    return number;
    end demo_vw;
    show error package demo_vw
    create or replace package body demo_vw as
    -- Customize this list of private global variables to match the parameters
    -- required by the view. These variables are set, reset, and validated by
    -- set_parameters, reset_parameters, and valid_parameters respectively...
    g_var1 whatever;
    g_varN whatever;
    function set_parameters (pi_whatever1 in whatever,
    pi_whateverN in whatever)
    return number
    is
    -- Customize this function header to accept the parameters for this view, if
    -- any. If this view does not require any parameters, the set_parameters
    -- function may be deleted.
    -- This function should always return 1 and is called as follows
    -- select col1, col2, ..., colN
    -- from my_view
    -- where 1 = my_view_vw.set_parameters(p1, p2, p3, ..., pN);
    begin
    g_var1 := pi_whatever1;
    g_varN := pi_whateverN;
    return 1;
    end set_parameters;
    function valid_parameters
    return boolean
    is
    -- Customize...
    -- Assumes that set_parameters has been called to set the value of the view
    -- parameters.
    l_valid boolean := true;
    begin
    return l_valid;
    end valid_parameters;
    procedure reset_parameters
    is
    -- Customize...
    -- This is called at the end of the get_view function to reset the view
    -- parameters for the next caller.
    begin
    g_var1 := null;
    g_varN := null;
    end reset_parameters;
    function get_view
    return table_type
    pipelined
    is
    -- build and return each row for the view...
    l_row row_type;
    begin
    if valid_parameters then
    -- do your process to populate the l_row variable here...
    pipe row (l_row);
    end if;
    reset_parameters;
    exception
    when others then
    reset_parameters;
    raise;
    end get_view;
    end demo_vw;
    show error package body demo_vw
    create or replace view demo
    as
    select * from table(demo_vw.get_view);

  • Failure with cloning database structure and then restore from source db

    Hello, dear experts!
    I am trying to duplicate a database.
    First step was to use the DBCA to create a template. Because there is no downtime possible, I only created a template of the structure without user schema and without objects.
    At another destination I used this template to create a new database "CLON".
    This worked successful. The database is up and running. (But quite empty).
    Then I transferred the latest full backup of my source database to the new database. I have the same structure at the destiantion as at the
    source.
    Now I want to use rman restore to build up the clone with this backup. Therefore I start RMAN and connect to the target without catalog.
    "RMAN> restore database;"
    leads to:
    Starten restore um 27.09.07
    Kanal ORA_DISK_1 wird benutzt
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/27/2007 16:26:16
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 709 found to restore
    RMAN-06023: no backup or copy of datafile 708 found to restore
    RMAN-06023: no backup or copy of datafile 707 found to restore
    "RMAN> list backup;"
    does not show any results.
    "RMAN> crosscheck backup;"
    Zugewiesener Kanal: ORA_DISK_1
    Kanal ORA_DISK_1: SID=17 Gerõtetyp=DISK
    "RMAN> list backup;"
    does not show any results.
    To me this looks as if RMAN does not identify the/any backup.
    What has to be done to solve the problem?
    Thank you in advance,
    Hergen.

    Hi, I assume that by clone you mean a duplicate of the DB including ALL tablespaces and not just a few right? YOu want to also rename the DB according to what I read.
    As a note, your new database does not see the backups because you do not connect to the catalog, and you have no backup info as a result.
    Correct me if I am wrong if I misundestand your situation:
    First if you want to duplicate, you do not need to create an empty DB. Just create an new instance without any controlfiles or datafiles. Then you restore your rman backup
    You could perhaps adapt this procedure I have used recently to clone databases with RMAN backups: You just need RMAN backups, taken as hot backups is fine. You also need the controlfile autobackup from RMAN. If you do not want to use the catalog, you can use the controlfile as catalog, and register the backup info to the controlfile, then restore.
    Here is the procedure:
    RMAN RESTORE DB FROM COMPLETE LOSS (without use of catalog)
    1-     Install oracle db home and patch.
    Note: As much as possible, patch to the same version of the DB to be restored. If you do not, you should patch to a later release (do not do this if at all possible, as problems may occur). After opening with reset logs, you will have to startup with the upgrade option and run the cat upgrade script to update the DB to the current patchset.
    2-     Install or configure an instance on the desired node. It is not necessary to create a database.
    a.     Run oradim to create the instance.
    Oradim –new –SID sid –SYSPWD sysdbapass –STARTMODE manual|automatic –PFILE ‘….path to pfile….\initsid.ora’
    NOTE: The pfile is optional, required if you do not use a spfile
    b.     Create and configure a listener, as rman requires oracle net connectivity.
    i.     Use oracle utilities to create listener.
    ii.     Use oracle utilities to configure listener to register the instance just created. (or manually edit the listener.ora file).
    c.     Configure a tnsnames.ora file so that rman can reach the database through the listener.
    d.     Create all directories for datafiles, admin, redologs, archive, flash_recovery_area etc if required.
    3-     Create a pfile or get one (ideally the backups should include it).
    a.     Change paths in the pfile to reflect new file structure. Also change any settings that are relevant.
    Note: if using an spfile, then the rman controlfile autobackup will have it. In that case startup in nomount, start RMAN after setting ORACLE_SID=sid, with ‘RMAN target / NOCATALOG.
    Run this in rman
    RUN {
    SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘………………..\CONTROL_%F’;
    RESTORE SPFILE TO PFILE ‘………\initsid.ora’ FROM AUTOBACKUP;
    SHUTDOWN ABORT;
    NOTE:
    -     If you do not have a specific archive file location (archivelog mode only) the flash recovery area size may need to be increased, depending on the number of archive files to recover.
    -     If restoring to a different instance (want to restore an old backup to a different db name, set the db_name in the pfile the same as the db name in the backups. You can rename the db later.
    4-     Get the backups desired to restore the DB, and make them available to the node where the restore is to be done.
    5-     Startup the database in nomount mode. Startup the service is necessary, then startup the database in nomount mode: specify the pfile location if not in a standard location.
    ‘STARTUP NOMOUNT PFILE=’……\initsid.ora’’;
    6-     Get DB id from controlfile autobackup. Get the most recent controlfile autobackups from the backup files, and find the database id. Below is an example
    # CONTROL_c-XXXXXXXXXX-YYYYMMDD-ZZ
    # XXXXXXXXXX IS THE DBID
    7-     START RMAN after setting ORACLE_SID=sid, with ‘RMAN target / NOCATALOG’.
    8-     SET DBID. Get the dbid from above. Run ‘SET DBID XXXXXXXXXXXX;’
    9-     Restore controlfile
    RUN {
    SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '… \CONTROL_%F';
    RESTORE CONTROLFILE FROM AUTOBACKUP;
    ALTER DATABASE MOUNT;
    NOTE: If restoring old files, then you must add MAXDAYS=xxx to the restore controlfile command, so that it will find the desired file. Default is 7 days. (explaining why it can’t find older then 7 days).
    10-     Catalog backup files. It is probable that the backup files restored will be in a different location once restored (applicable to disk backups). You need to catalog them in RMAN so that RMAN knows about them. List all backup files and run these commands for each backup and controlfile autobackup:
    ‘CATALOG BACKUPPIECE ….\CONTROL_C-310452700-20070918-01';’
    ‘CATALOG BACKUPPIECE …\BACKUP_HEIS8FIK_1_1';
    NOTES: If the backups are in the same location as they have always been, then a recatalog is not necessary, as the control file has the right backup files information.
    If the backups were restored to a different location, then a recatalog must be done so that RMAN can find them. If the regular location of backups is not available, then rman needs to be updated to reflect that. In that case run these commands:
         CROSSCHECK BACKUPS;
         DELETE EXPIRED BACKUP;
         CROSSCHECK ARCHIVELOG ALL;
         DELETE EXPIRED ARCHIVELOG ALL;
    If this is test restore (to test disaster recovery for example), likely all the backups are still there, but it is desired to use the restored backup files only. RMAN needs to be updated to reflect that the regular backups do not exist. Make the regular backup files unavailable to RMAN (such are renaming a directory, or preventing access through security), and then run the above commands.
    11-     Find the datafile names and numbers. This is only required if datafiles are in a different location on the database to be restored.
    Using SQLPlus, set the oracle_sid, then run sqlplus / ;
    Run the following command
         Select file# as “file/grp#’, name from v$datafile; (for datafiles).
         Select group#, member from v$logfile. (for redologs)
    12-     Restore the database
    (use only if all datafile locations are the same!)
    RUN
    # allocate a channel to disk
    ALLOCATE CHANNEL c1 DEVICE TYPE DISK MAXPIECESIZE 2 G FORMAT '…path…\BACKUP_%U';
    RESTORE DATABASE;
    RECOVER DATABASE;
    (use if datafiles are not in the same location)
    RUN
    ALLOCATE CHANNEL C1 DEVICE TYPE DISK FORMAT ‘…\BACKUP_%U';
    SET NEWNAME FOR DATAFILE 1 TO ‘….\SYSTEM01.DBF';
    SET NEWNAME FOR DATAFILE 2 TO '…\UNDOTBS01.DBF';
    SET NEWNAME FOR DATAFILE 3 TO '…\SYSAUX01.DBF';
    SET NEWNAME FOR DATAFILE 4 TO '…\USERS01.DBF';
    SET NEWNAME FOR DATAFILE 5 TO '…\TOOLS_01.DBF ';
    # add other tablespace locations here.
    # We need to tell the controlfile the new location for the redologs
    SQL "ALTER DATABASE RENAME FILE ''…\REDO01.LOG'' TO      ''…\REDO01.LOG''";
    SQL "ALTER DATABASE RENAME FILE ''…\REDO02.LOG'' TO      ''…\REDO02.LOG''";
    SQL "ALTER DATABASE RENAME FILE ''…\REDO03.LOG'' TO      ''…\REDO03.LOG''";
    RESTORE DATABASE;
    # we need to tell the controlfile the location of the new datafiles.
    SWITCH DATAFILE ALL;
    RECOVER DATABASE;
    13-     Reset the logs. ALTER DATABASE OPEN RESETLOGS;
    NOTE: If the oracle home is of a newer revision then the database, the open resetlogs will generate an error. In that case open the database with the upgrade option and then run the catalog upgrade as per patch instructions.
    14-     Create a temporary tablespace. The system thinks it has a temp tablespace, but it needs to be recreated
    a.     Create another temp tablespace (modify as needed).
         CREATE TEMPORARY TABLESPACE temp2
              TEMPFILE '......\temp02.dbf' SIZE 128M REUSE
              AUTOEXTEND ON NEXT 16M MAXSIZE unlimited
              EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    b.     Point the server to the new file
    ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
    c.     Delete the missing one:
              DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES;
    d.     RECREATE THE temp tablespace;
              CREATE TEMPORARY TABLESPACE temp
                   TEMPFILE 'd:\......\temp_01.dbf' SIZE 128M REUSE
              AUTOEXTEND ON NEXT 16M MAXSIZE unlimited
              EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    e.     Change system default tablespace again to temp:
              ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;
    f.     Delete the transition temp tablespace temp2:
    DROP TABLESPACE temp2 INCLUDING CONTENTS AND DATAFILES;
    15-     Rename the database if the restored database name needs to change.
    Use the nid utility to rename the db. IMPORTANT: the temporary tablespace needs to exist for this to work, or the db rename will fail and a restore will have to be done.
    Use :
    -     Shutdown database in immediate mode.
    -     Startup in nomount.
    -     Open command prompt.
    -     set oracle_sid = sid
    -     nid sys/pass dbname=newname logfile=….\logfile.txt
    -     shutdown the db (if required)
    -     Change the dbname in the pfile or spfile to the new dbname
    -     Create a new password file:
    o     Orapwd file=….. password=…
    IMPORTANT NOTE: if you rename a DB, your existing backups will not be valid, do backups of the newly renamed db!!!
    16-     Open the database and test.
    NOTE: Whenever you open with resetlogs, YOU MUST BACKUP YOUR DATABASE. Your old backups can only be used to restore the old DB.
    I hope this helps.

Maybe you are looking for

  • How to Delete Category Modeler Schema in Deployed status

    Please help. We have a challenge of deleting Schema's which were created to test out during the Dev phase. We have deployed these schema and would like to delete them for various reason. Any help in this regards will be highly appreciated.

  • WIndows 7 Pro 64 Bit Update Error ode 537

    The Office 2013 Update installed on 10 PCs but failed on 1 with the error code 537- unknown error. I tried rebooting, running FixIt and SFC /scannow but I get the same error message every time.

  • How to get the latest versions of SCOM MP

    Hi, Last week I installed Update Rollup 5 on my SCOM 2012 SP1. There are many Retail MPs in this SCOM instance like IIS, SQL , DNS, DHCP, Operating Systems, HP, Dell, etc.. I wanted to know how will I get notified if there are newer versions of these

  • Integration Server Service 9.3.1 (EIS) entering a stopped state

    Integration Server Service (EIS) is stopping multiple times during the day and sometimes during the nightly processing. There seems to be no reason to when or why it stops. Sometimes users may be running drill through reports, sometimes no one is. We

  • How to call webservices publish on PI from SAP BI ?

    All, We have few webservices published on SAP PI system. Please let me know the approach to call these webservices from SAP BI system Regards, Reddy