• Upgrading 25.11.2008 Comments Off
    1. Download patchset 6728000 from http://updates.oracle.com/ARULink/PatchSearch/process_form?bug=6728000#uage=0&process=Submit
    2. unzip the patchset zip files. They will create a directory ‘6728000′.
    3. Run admsi.pl (patch application assistant). This must be done from console or via remote desktop connection as it requires a GUI interface.
  • AutoConfig 20.11.2008 Comments Off

    The environment variable CONTEXT_FILE will contain the correct path to the context file respectively for the apps and db tiers (when logged in as the db ower and apps owner respectively).

    APPS

    The command adconfig.sh should also exist on the respective user’s path. Run the adconfig.sh command. It will ask for the context file path and the password for the db APPS user.

    DB

    adconfig.sh is located at $ORACLE_HOME/appsutil/bin/adconfig.sh

    It will also need the context file path and the APPS password

    BACKOUT APPS CHANGES

    restore script is located at $INST_TOP/admin/out/restore.sh

  • Patching 20.11.2008 Comments Off

    unzip the patch then run:

    adpatch defaultsfile=$APPL_TOP/admin/<INST_NAME>/adalldefaults.txt  patchtop=<path_to_top_patch_dir>

  • SQL & PL/SQL, SQLPLUS 17.11.2008 Comments Off
    SELECT a, b, c
    FROM
    ( SELECT a, b, c, ROWNUM rn
      FROM
      ( SELECT a, b, c FROM RECORD
        WHERE AVAIL='Y"
        ORDER BY DATE DESC
      )
      WHERE ROWNUM <= 25
    )
    WHERE rn >= 21;
    
    This clunky code is the equivalent of mysql's elegant:
    select a,b,c from record limit 5 offset 4;
  • HEADS UP, Linux, SQLPLUS 11.11.2008 Comments Off

    install rlwrap (available from http://utopia.knoware.nl/~hlub/rlwrap/)

    then add this to the bash_profile:

    alias sqlplus=’rlwrap sqlplus’

  • Cloning 06.11.2008 Comments Off

    run export KSH_VERSION=’@(#)PD KSH v5.2.14 99/07/13.2′

    before running adcfgclone.pl on both dbTier and appsTier

    metalink docid 406982.1

  • Problems 06.11.2008 Comments Off

    iptables -A OUTPUT -p tcp -s 0/0 -d  141.146.57.56 –dport 25 -j REJECT –reject-with tcp-reset