DG Broker oracle 10g

Good Mrng Guru's
Oracle Version : 10.2.0.4
Host : x86_64 x86_64 x86_64 GNU/Linux
We are having Primary /Secondary database (Physical standby) on the same server - Now we are planning to configure DG Broker - So before configuring DG Broker what are precaution need to take to avoid any failure/issue?

- the most important parameter to set before creating the configuratiion is to have a different value for the parameter DB_UNIQUE_NAME on each database
on primary <SID>_SITE1 and on standby <SID>_SITE2 for example
- use a different SID for the Standby database
- the listener must have a service  <DB_UNIQUE_NAME>_DGMGRL,<DB_DOMAIN> for each database
- DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT must be configured because Primary and Standby file can't be in the same location on a server

Similar Messages

  • Hardening Linux for Oracle 10g

    I have been working on creating a bare-bones RHEL 5 installation which will act as an Oracle 10g database server. For hardening Linux, I have restricted to a bare minimum of packages to make it more secure. This installation did not have X-Windows, Gnome/KDE and a host of other services that will not be required on Production servers. I selected only the BASE installation which was further customized to include just the following (there is scope to trim this further, so feedback is welcome):
    NetworkManager
    readahead
    smartmontools
    yum-updatesd
    irqbalance
    acpid
    crash
    cryptsetup-luks
    dos2unix
    dump
    finger
    gnugpg
    ksh
    libaio
    logwatch
    m2crypto
    man-pages
    mdadm
    nano
    numactl
    openssh-clients
    openssh-servers
    pam_ccreds
    pam_krb5
    pam_passwdqc
    sendmail
    setuptools
    stunnel
    sudo
    symlinks
    system-config-network
    tree
    unix2dos
    unzip
    vconfig
    wget
    which
    yum
    yum-rhn-plugin
    yum-security
    zip
    Since I do not intend to use nfs, nis, samba – associated packages were not included. Further hardening was achieved by deleting non-required services (kudzu, avahi, gpm, atd, netfs, ip6tables).
    The challenge comes when I begin setting up Oracle 10g using the oracle validated rpm method. In an attempt to resolve dependencies, YUM ends up installing 70 packages that do not apparently seem to have anything to do with an RDBMS (sound libraries, Gnome, X libraries and tools etc.). For me the libraries/binaries required for linking appear to be justified but the rest appear to be installed only for the Installer.
    This package addition also ends up installing gamin which provides the gam_server which has bugs in it that lead to > 90% CPU consumption.
    I further tried erasing some of the packages to see if anything broke. Till now nothing is broken and the database is running fine. Till now I have removed:
    gamin
    gamin-python
    gnome-mount
    gnome-vfs2
    libbonoboui
    libgnome
    libgnomeui
    oracle-validated
    yum-updatesd
    esound
    hicolor-icon-theme
    GConf2
    gnome-keyring
    gtk2
    libglade2
    libgnomecanvas
    libnotify
    libwnck
    notification-daemon
    audiofile
    cups-libs
    gnome-mime-data
    cairo
    pango
    My questions:
    • How have you created a production/hardened Linux based Oracle installation?
    • Can you share your experiences in hardening Linux for Oracle and deploying the Oracle 10g RDBMS without installing the scores of packages which themselves might compromise the server?
    • What exactly is the dependency for the Oracle 10g RDBMS on X11, Gnome, Gamin and graphic libraries such as Cairo and Pango (to name a few)?
    • Which Linux system services are really mandatory for Oracle?
    • Does a non-default secure installation compromise Oracle support?
    The current memory footprint for this setup (without any workload) is (figures in MB):
    total used free shared buffers cached
    Mem: 1010 458 552 0 19 377
    -/+ buffers/cache: 61 949
    Swap: 2047 0 2047
    …of this 290 MB belongs to Oracle ☺
    I will be working with the other route – without using the oracle-validated rpm.
    Please let me have your feedback.
    BR
    Aniruddha

    Hi,
    I'll paste the rpm -qa of a RHEL5 server I have installed through rpm -ivh (not yum at all)
    aspell-0.60.3-7.1
    aspell-en-6.0-2.1
    aspell-es-0.50-13.2.2
    at-3.1.8-82.fc6
    atk-1.12.2-1.fc6
    audit-libs-1.7.13-2.el5
    audit-libs-1.7.13-2.el5
    audit-libs-python-1.7.13-2.el5
    authconfig-5.3.21-6.el5
    avahi-0.6.16-6.el5
    avahi-compat-libdns_sd-0.6.16-6.el5
    basesystem-8.0-5.1.1
    bash-3.2-24.el5
    bc-1.06-21
    binutils-2.17.50.0.6-12.el5
    bitmap-fonts-0.3-5.1.1
    bitstream-vera-fonts-1.10-7
    bzip2-1.0.3-4.el5_2
    bzip2-libs-1.0.3-4.el5_2
    cairo-1.2.4-5.el5
    checkpolicy-1.33.1-4.el5
    chkconfig-1.3.30.1-2
    compat-libstdc++-33-3.2.3-61
    compat-libstdc++-33-3.2.3-61
    coreutils-5.97-23.el5
    cpio-2.6-23.el5
    cpp-4.1.2-46.el5
    cracklib-2.8.9-3.3
    cracklib-dicts-2.8.9-3.3
    crontabs-1.10-8
    cryptsetup-luks-1.0.3-5.el5
    cups-1.3.7-11.el5
    cups-libs-1.3.7-11.el5
    cyrus-sasl-2.1.22-5.el5
    cyrus-sasl-lib-2.1.22-5.el5
    db4-4.3.29-10.el5
    db4-4.3.29-10.el5
    dbus-1.1.2-12.el5
    dbus-glib-0.73-8.el5
    dbus-libs-1.1.2-12.el5
    dbus-python-0.70-7.el5
    Deployment_Guide-en-US-5.2-11
    Deployment_Guide-es-ES-5.2-11
    desktop-file-utils-0.10-7
    device-mapper-1.02.32-1.el5
    device-mapper-1.02.32-1.el5
    device-mapper-event-1.02.32-1.el5
    device-mapper-multipath-0.4.7-30.el5
    diffutils-2.8.1-15.2.3.el5
    dmidecode-2.9-1.el5
    dmraid-1.0.0.rc13-53.el5
    dmraid-events-1.0.0.rc13-53.el5
    e2fsprogs-1.39-23.el5
    e2fsprogs-devel-1.39-23.el5
    e2fsprogs-devel-1.39-23.el5
    e2fsprogs-libs-1.39-23.el5
    e2fsprogs-libs-1.39-23.el5
    ed-0.2-39.el5_2
    eject-2.1.5-4.2.el5
    elfutils-0.137-3.el5
    elfutils-libelf-0.137-3.el5
    elfutils-libelf-devel-0.137-3.el5
    elfutils-libelf-devel-static-0.137-3.el5
    elfutils-libs-0.137-3.el5
    ethtool-6-3.el5
    expat-1.95.8-8.2.1
    file-4.17-15.el5_3.1
    filesystem-2.4.0-2
    findutils-4.2.27-6.el5
    fipscheck-1.2.0-1.el5
    fipscheck-lib-1.2.0-1.el5
    fontconfig-2.4.1-7.el5
    freetype-2.2.1-21.el5_3
    freetype-2.2.1-21.el5_3
    gawk-3.1.5-14.el5
    gcc-4.1.2-46.el5
    gcc-c++-4.1.2-46.el5
    gdbm-1.8.0-26.2.1
    gettext-0.14.6-4.el5
    glib2-2.12.3-4.el5_3.1
    glib2-2.12.3-4.el5_3.1
    glib2-devel-2.12.3-4.el5_3.1
    glib2-devel-2.12.3-4.el5_3.1
    glibc-2.5-42
    glibc-2.5-42
    glibc-common-2.5-42
    glibc-devel-2.5-42
    glibc-devel-2.5-42
    glibc-headers-2.5-42
    gnutls-1.4.1-3.el5_2.1
    grep-2.5.1-55.el5
    groff-1.18.1.1-11.1
    grub-0.97-13.5
    gtk2-2.10.4-20.el5
    gzip-1.3.5-10.el5
    hal-0.5.8.1-52.el5
    hdparm-6.6-2
    hesiod-3.1.0-8
    hicolor-icon-theme-0.9-2.1
    hmaccalc-0.9.6-1.el5
    htmlview-4.0.0-2.el5
    hwdata-0.213.16-1.el5
    info-4.8-14.el5
    initscripts-8.45.30-2.el5
    iproute-2.6.18-10.el5
    iptables-1.3.5-5.3.el5
    iptables-ipv6-1.3.5-5.3.el5
    iputils-20020927-46.el5
    kbd-1.12-21.el5
    kernel-2.6.18-164.el5
    kernel-headers-2.6.18-164.el5
    keyutils-libs-1.2-1.el5
    kpartx-0.4.7-30.el5
    krb5-libs-1.6.1-36.el5
    ksh-20080202-2.el5
    kudzu-1.2.57.1.21-1
    less-394-6.el5
    libacl-2.2.39-3.el5
    libaio-0.3.106-3.2
    libaio-0.3.106-3.2
    libaio-devel-0.3.106-3.2
    libattr-2.4.32-1.1
    libcap-1.10-26
    libdaemon-0.10-5.el5
    libdmx-1.0.2-3.1
    libdrm-2.0.2-1.1
    libgcc-4.1.2-46.el5
    libgcc-4.1.2-46.el5
    libgcrypt-1.4.4-5.el5
    libgomp-4.4.0-6.el5
    libgomp-4.4.0-6.el5
    libgpg-error-1.4-2
    libhugetlbfs-1.3-3.el5
    libhugetlbfs-1.3-3.el5
    libICE-1.0.1-2.1
    libICE-1.0.1-2.1
    libjpeg-6b-37
    libpng-1.2.10-7.1.el5_3.2
    libselinux-1.33.4-5.5.el5
    libselinux-1.33.4-5.5.el5
    libselinux-python-1.33.4-5.5.el5
    libselinux-utils-1.33.4-5.5.el5
    libsemanage-1.9.1-4.4.el5
    libsepol-1.15.2-2.el5
    libsepol-1.15.2-2.el5
    libSM-1.0.1-3.1
    libSM-1.0.1-3.1
    libstdc++-4.1.2-46.el5
    libstdc++-4.1.2-46.el5
    libstdc++-devel-4.1.2-46.el5
    libstdc++-devel-4.1.2-46.el5
    libsysfs-2.0.0-6
    libtermcap-2.0.8-46.1
    libtermcap-2.0.8-46.1
    libtiff-3.8.2-7.el5_3.4
    libusb-0.1.12-5.1
    libuser-0.54.7-2.el5.5
    libvolume_id-095-14.21.el5
    libvolume_id-095-14.21.el5
    libX11-1.0.3-11.el5
    libX11-1.0.3-11.el5
    libXau-1.0.1-3.1
    libXau-1.0.1-3.1
    libXau-devel-1.0.1-3.1
    libXaw-1.0.2-8.1
    libXcursor-1.1.7-1.1
    libXdmcp-1.0.1-2.1
    libXdmcp-1.0.1-2.1
    libXext-1.0.1-2.1
    libXext-1.0.1-2.1
    libXfixes-4.0.1-2.1
    libXft-2.1.10-1.1
    libXi-1.0.1-3.1
    libXinerama-1.0.1-2.1
    libxml2-2.6.26-2.1.2.8
    libxml2-python-2.6.26-2.1.2.8
    libXmu-1.0.2-5
    libXp-1.0.0-8.1.el5
    libXp-1.0.0-8.1.el5
    libXp-devel-1.0.0-8.1.el5
    libXpm-3.5.5-3
    libXrandr-1.1.1-3.1
    libXrender-0.9.1-3.1
    libXt-1.0.2-3.1.fc6
    libXt-1.0.2-3.1.fc6
    libXtst-1.0.1-3.1
    libXtst-1.0.1-3.1
    libXv-1.0.1-4.1
    libXxf86dga-1.0.1-3.1
    libXxf86misc-1.0.1-3.1
    libXxf86vm-1.0.1-3.1
    lm_sensors-2.10.7-4.el5
    logrotate-3.7.4-9
    lsscsi-0.17-3.el5
    lvm2-2.02.46-8.el5
    m4-1.4.5-3.el5.1
    mailx-8.1.1-44.2.2
    make-3.81-3.el5
    MAKEDEV-3.23-1.2
    man-1.6d-1.1
    man-pages-es-1.28-10.1.1
    mcstrans-0.2.11-3.el5
    mesa-libGL-6.5.1-7.7.el5
    microcode_ctl-1.17-1.48.el5
    mingetty-1.07-5.2.2
    mkinitrd-5.1.19.6-54
    mkinitrd-5.1.19.6-54
    mktemp-1.5-23.2.2
    module-init-tools-3.3-0.pre3.1.54.el5
    nano-1.3.12-1.1
    nash-5.1.19.6-54
    ncurses-5.5-24.20060715
    net-tools-1.60-78.el5
    newt-0.52.2-12.el5
    nspr-4.7.4-1.el5_3.1
    nspr-4.7.4-1.el5_3.1
    nss-3.12.3.99.3-1.el5_3.2
    nss-3.12.3.99.3-1.el5_3.2
    ntp-4.2.2p1-9.el5_3.2
    ocfs2-2.6.18-164.el5-1.4.2-1.el5
    ocfs2console-1.4.2-1.el5
    ocfs2-tools-1.4.2-1.el5
    ocfs2-tools-devel-1.4.2-1.el5
    openldap-2.3.43-3.el5
    openssh-4.3p2-36.el5
    openssh-clients-4.3p2-36.el5
    openssh-server-4.3p2-36.el5
    openssl-0.9.8e-12.el5
    oracleasm-2.6.18-164.el5-2.0.5-1.el5
    oracleasmlib-2.0.4-1.el5
    oracleasm-support-2.1.3-1.el5
    pam-0.99.6.2-6.el5
    pango-1.14.9-6.el5
    paps-0.6.6-18.el5
    passwd-0.73-1
    patch-2.5.4-29.2.3.el5
    pax-3.4-1.2.2
    pciutils-2.2.3-7.el5
    pcre-6.6-2.el5_1.7
    perl-5.8.8-27.el5
    pkgconfig-0.21-2.el5
    pm-utils-0.99.3-10.el5
    policycoreutils-1.33.12-14.6.el5
    popt-1.10.2.3-18.el5
    prelink-0.4.0-2.el5
    procmail-3.22-17.1
    procps-3.2.7-11.1.el5
    psmisc-22.2-7
    pycairo-1.2.0-1.1
    pygobject2-2.12.1-5.el5
    pygtk2-2.10.1-12.el5
    python-2.4.3-27.el5
    python-numeric-23.7-2.2.2
    readline-5.1-3.el5
    readline-5.1-3.el5
    redhat-logos-4.9.16-1
    redhat-lsb-3.1-12.3.EL
    redhat-menus-6.7.8-3.el5
    redhat-release-5Server-5.4.0.3
    redhat-release-notes-5Server-29
    rhpl-0.194.1-1
    rootfiles-8.1-1.1.1
    rpm-4.4.2.3-18.el5
    rpm-libs-4.4.2.3-18.el5
    rsh-0.17-38.el5
    rsync-2.6.8-3.1
    sed-4.1.5-5.fc6
    selinux-policy-2.4.6-255.el5
    selinux-policy-targeted-2.4.6-255.el5
    sendmail-8.13.8-2.el5
    setools-3.0-3.el5
    setserial-2.17-19.2.2
    setup-2.5.58-7.el5
    sgpio-1.2.0_10-2.el5
    shadow-utils-4.0.17-14.el5
    slang-2.0.6-4.el5
    smartmontools-5.38-2.el5
    sqlite-3.3.6-5
    sysfsutils-2.0.0-6
    sysklogd-1.4.1-44.el5
    sysstat-7.0.2-3.el5
    system-config-securitylevel-tui-1.6.29.1-2.1.el5
    SysVinit-2.86-15.el5
    tar-1.15.1-23.0.1.el5
    tcl-8.4.13-4.el5
    tcl-8.4.13-4.el5
    tcp_wrappers-7.6-40.7.el5
    tcp_wrappers-7.6-40.7.el5
    telnet-0.17-39.el5
    termcap-5.5-1.20060701.1
    time-1.7-27.2.2
    tmpwatch-2.9.7-1.1.el5.2
    tzdata-2009k-1.el5
    udev-095-14.21.el5
    udftools-1.0.0b3-0.1.el5
    unzip-5.52-3.el5
    usermode-1.88-3.el5.2
    util-linux-2.13-0.52.el5
    vim-common-7.0.109-6.el5
    vim-minimal-7.0.109-6.el5
    vixie-cron-4.1-76.el5
    vte-0.14.0-2.el5
    which-2.16-7
    wireless-tools-28-2.el5
    xorg-x11-filesystem-7.1-2.fc6
    xorg-x11-utils-7.1-2.fc6
    xorg-x11-xauth-1.0.1-2.1
    zabbix-agent-1.4.6-1.el5
    zip-2.31-2.el5
    zlib-1.2.3-3
    Hope to help,
    Mario Alcaide

  • To create standby database using oracle 10g standared edition

    my producation database is oracle 10G standard edition .Can i implement a oracle dataguard or standby database using standard edition licenses.if standby database is possiable in standard edition .what are the steps for creating a standby database using oracle 10g standard edition.

    General answer is http://download.oracle.com/docs/cd/B19306_01/license.102/b14199/editions.htm#BABJICBB.
    For Data Guard you cannot :
    - use instance parameters to automatically send archived redo logs
    - use instance parameters to resolve archived redo logs gaps
    - create a logical standby
    - use SQL statements to do switchover / failover
    - use Data Guard Broker.

  • Regarding ORacle 10g installation

    Hi,
    I am getting this error while installing oracle 10g database in windows machine.
    i am getting this error "nmesrvc.exe".
    Thanks in advance.

    What error are you getting? "nmservc.exe" looks like an executable file name.
    FYI, if you're installing Oracle 10g on a laptop or another machine whose IP address might change you'll need to install a loopback adaptor first. The loopback adaptor prevents problems with the database and related components should the IP address change - I failed to do this on my laptop a few years back and used it in a hotel to check my email address. Everything oracle-related broke. I managed to fix the database and Apex, but never did get OEM or iSQLPLUS to work again. There are instructions on installing a loopback adaptor on line and (I think) here on OTN; you should get a warning about this when you try to install.

  • Broker (dataguard 10g)

    I try to work with the broker (datagurad 10g) but when I do a switchover, the system do his job but return an error before starting the database, and I have to start it manually.
    I found this error in the sqlnet.log
    Thanks for your help
    Fabrice
    Fatal NI connect error 12514, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=mymachine)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=test_DGMGRL)(INSTANCE_NAME=test)(SERVER=dedicated)(CID=(PROGRAM=dgmgrl)(HOST=mymachine)(USER=oracle))))
    VERSION INFORMATION:
    TNS for Solaris: Version 10.2.0.1.0 - Production
    Oracle Bequeath NT Protocol Adapter for Solaris: Version 10.2.0.1.0 - Production
    TCP/IP NT Protocol Adapter for Solaris: Version 10.2.0.1.0 - Production
    Time: 30-MAY-2006 16:01:55
    Tracing not turned on.
    Tns error struct:
    ns main err code: 12564
    TNS-12564: TNS:connection refused
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0

    Check out what you have the parameter service_names set to. If it is currently set to test then set it instead to test,test_DGMGRL.
    If you the examine the output of
    lsnrctl service
    you should see that both test and test_DGMGRL services are running.
    Oops. I think I got a little bit too clever. If you want Data Guard Broker to start your instance, then that probably means that the instance isn't running so the broker will not be able to find the service. :)
    Instead, what you need to do is define the service the old fashioned way in listener.ora.
    After you reconfigure the listener, you will find the new service supported by the listener whether it is running or not.
    Chris

  • Error while installing Oracle 10g on Fedora Core 1

    Error while installing Oracle 10g on Fedora Core 1. After 40% of the Installation is thru, the progress bar is showing 40%, it gives error "Not connected to Oracle" and the installation has to be terminated.
    We have tried by using the on-line procedure and changing the required script to make believe it as said.

    Are you createing DB also???

  • Error while sending a mail using UTP_MAIL package in Oracle 10g

    Hi,
    We are using UTP_MAIL package to send a mail from Oracle 10g.We have follwed the following steps ...
    SQL> connect sys/password as sysdba
    Connected.
    SQL> @$ORACLE_HOME/rdbms/admin/utlmail.sql
    Package created.
    Synonym created.
    SQL> @$ORACLE_HOME /rdbms/admin/prvtmail.plb
    Package body created.
    SQL > alter system set smtp_out_server = '<mail_server_ip:25>' scope =spfile;
    System altered..
    Now we try the code
    begin
    utl_mail.send(
    sender => 'sender's mail',
    recipients => 'receiver mail',
    CC => 'optional',
    subject => 'Testing utl_mail',
    message => 'Test Mail'
    end;
    But we get the following error...
    ERROR at line 1:
    ORA-29278: SMTP transient error: 421 Service not available
    ORA-06512: at "SYS.UTL_SMTP", line 21
    ORA-06512: at "SYS.UTL_SMTP", line 97
    ORA-06512: at "SYS.UTL_SMTP", line 139
    ORA-06512: at "SYS.UTL_MAIL", line 405
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 2
    We also tried connecting to the mail server through telnet .But it is not getting connected..
    Please help us to solve the issue.

    From your own posting you may have the clue, if you try to access your mail server through telnet and it is not successful, it means the service is down or there are networking issues.
    On pre 10gR2 versions there was a bug 4083461.8. It could affect you if you are on 10gR1
    "Bug 4083461 - UTL_SMTP.OPEN_CONNECTION in shared server fails with ORA-29278 Doc ID:      Note:4083461.8"
    This was fixed on 10gR2 base and on 9.2.0.8.0
    ~ Madrid

  • FRM-41211 Integration Error SSL - OracleAS 10g

    Hi.
    I have error Frm-41211 Integration Error SSL Failure Running Another Product error while calling a report from web form in oracleAS 10g.
    I have problem with RUN_REPORT_OBJECT in web forms.
    I have error: FRM-41211 SSL integration error .....
    OracleAS server began on Windoes XP SP2.
    Do you help me ?

    Hi,
    I remember having seen this issue in teh apst. My best recommendation is to work with customer support (metalink.oracle.com)
    Frank

  • Stopping the Enterprise Manager Console (Oracle 10g on SuSE 9.1)

    I'm trying to stop the Enterprise Manager Console by issuing the command:
    ${ORACLE_HOME}/bin/emctl stop dbconsole
    Unfortunately, the command fails to stop the EM Console. Here's the output I get:
    TZ set to US/Pacific
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    http://<hostname>:5505/em/console/aboutApplication
    Stopping Oracle Enterprise Manager 10g Database Control ...
    --- Failed to shutdown DBConsole Gracefully ---
    failed.
    The only way I can stop the EM Console (and related services--i.e., emagent) is to kill its process.
    Everything (Listener, DB Instance, EM Console) starts fine. I can stop the Listener and DB Instance without any problems. It's just the EM Console shutdown that doesn't happen cleanly.
    Has anyone else encountered the same condition? If so, what was the solution?
    Here's my operating environment:
    SuSE 9.1 (Kernel 2.6.5-7.108-default)
    Oracle 10g
    Thanks in advance for any help/insight.

    Has anyone else encountered the same condition? If so, what was the solution?Yes. Shutdown/reboot of the system made the error go away.
    Sorry, no better clues,
    Toni

  • Migration from Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 Server

    I am working on migrating Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 from Old server to new server. We have db around 500 GB and 3 schemas. I installed Oracle 10G on new server, created tablespaces, schema's blah blah and now doing export and import at schema level from old server to new server.
    Import is taking more than 4 to 5 hours on new server. My manager is saying, window time is bit longer and he wants me to try possiblities to make this process faster. Can some one help me on this, to use the best possible method to complete this process faster?
    Will below step work, if I try?
    If I install, oracle 9i and 10g both on new server in different home directories and take the hot backup from old machine and restore on new machine in 9i home directory and use the upgrade configuration assistant from 10g and do the upgrade? Pls advice.
    Thanks in advance,
    Hari babu
    Edited by: user6367891 on Mar 2, 2010 5:28 AM

    It looks good.
    I have one question in below steps:
    To migrate an Oracle9i or older database to an Oracle Database 10g Release 1 (10.1) database for 64-bit Windows:
    1 Perform steps 1 - 11 in "Migrating an Oracle Database 10g Release 1 (10.1) Database".
    2 Shut down the database on the 64-bit computer:
    SQL> SHUTDOWN IMMEDIATE;
    3 Start the database migration:
    SQL> STARTUP MIGRATE;
    4 Migrate the database as described in Chapter 3, "Upgrading a Database to the New Oracle Database 10g Release" in Oracle Database Upgrade Guide.
    In step 4, it says, migrate database as described in chapter 3. In chapter 3, it says, to do the upgrade the process using dbca or manually. Pls confirm whether do the upgrade process after issuing startup migrate or not.
    Thanks in advance.

  • Oracle 10G New Feature........Part 1

    Dear all,
    from last couple of days i was very busy with my oracle 10g box,so i think this is right time to
    share some intresting feature on 10g and some internal stuff with all of you.
    Have a look :-
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Oracle 10g Memory and Storage Feature.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1.Automatic Memory Management.
    2.Online Segment Shrink
    3.Redolog Advisor, checkpointing
    4.Multiple Temporary tablespace.
    5.Automatic Workload Repository
    6.Active Session History
    7.Misc
    a)Rename Tablespace
    b)Bigfile tablespace
    c)flushing buffer cache
    8.ORACLE INTERNAL
    a)undocumented parameter (_log_blocks_during_backup)
    b)X$ view (x$messages view)
    c)Internal Structure of Controlfile
    1.Automatic memory management
    ================================
    This feature reduce the overhead of oracle DBA.previously mostly time we need to set diff oracle SGA parameter for
    better performance with the help of own experience,advice views and by monitoring the behaviour
    of oracle database.
    this was just time consuming activity.........
    Now this feature makes easy life for oracle DBA.
    Just set SGA_TARGET parameter and it automatically allocate memory to different SGA parameter.
    it focus on DB_CACHE_SIZE
    SHARED_POOL_SIZE
    LARGE_POOL
    JAVA_POOL
    and automatically set it as
    __db_cache_size
    __shared_pool_size
    __large_pool_size
    __java_pool_size
    check it in alert_log
    MMAN(memory manager) process is new in 10g and this is responsible for sga tuning task.
    it automatically increase and decrease the SGA parameters value as per the requirement.
    Benefit:- Maximum utlization of available SGA memory.
    2.Online Segment Shrink.
    ==========================
    hmmmmm again a new feature by oracle to reduce the downtime.Now oracle mainly focus on availablity
    thats why its always try to reduce the downtime by intrducing new feature.
    in previous version ,reducing High water mark of table was possible by
    Exp/imp
    or
    alter table move....cmd. but on these method tables was not available for normal use for long hrs if it has more data.
    but in 10g with just few command we can reduce the HWmark of table.
    this feature is available for ASSM tablespaces.
    1.alter table emp enable row movement.
    2.alter table emp shrink space.
    the second cmd have two phases
    first phase is to compact the segment and in this phase DML operations are allowed.
    second phase(shrink phase)oracle shrink the HWM of table, DML operation will be blocked at that time for short duration.
    So if want to shrink the HWM of table then we should use it with two diff command
    first compact the segment and then shrink it on non-peak hrs.
    alter table emp shrink space compact. (This cmd doesn't block the DML operation.)
    and alter table emp shrink space. (This cmd should be on non-peak hrs.)
    Benefit:- better full table scan.
    3.Redolog Advisor and checkpointing
    ================================================================
    now oracle will suggest the size of redo log file by V$INSTANCE_RECOVERY
    SELECT OPTIMAL_LOGFILE_SIZE
    FROM V$INSTANCE_RECOVERY
    this value is influence with the value of FAST_START_MTTR_TARGET .
    Checkpointing
    Automatic checkpointing will be enable after setting FAST_START_MTTR_TARGET to non-zero value.
    4.Multiple Temporary tablespace.
    ==================================
    Now we can manage multiple temp tablespace under one group.
    we can create a tablespace group implicitly when we include the TABLESPACE GROUP clause in the CREATE TEMPORARY TABLESPACE or ALTER TABLESPACE statement and the specified tablespace group does not currently exist.
    For example, if group1 is not exists,then the following statements create this groups with new tablespace
    CREATE TEMPORARY TABLESPACE temp1 TEMPFILE '/u02/oracle/data/temp01.dbf'
    SIZE 50M
    TABLESPACE GROUP group1;
    --Add Existing temp tablespace into group by
    alter tablespace temp2 tablespace group group1.
    --we can also assign the temp tablespace group on database level as default temp tablespace.
    ALTER DATABASE <db name> DEFAULT TEMPORARY TABLESPACE group1;
    benefit:- Better I/O
    One sql can use more then one temp tablespace
    5.AWR(Automatic Workload Repository):-
    ================================== AWR is built in Repository and Central point of Oracle 10g.Oracle self managing activities
    is fully dependent on AWR.by default after 1 hr, oracle capure all database uses information and store in AWR with the help of
    MMON process.we called it Memory monitor process.and all these information are kept upto 7 days(default) and after that it automatically purge.
    we can generate a AWR report by
    SQL> @?/rdbms/admin/awrrpt
    Just like statspack report but its a advance and diff version of statspack,it provide more information of Database as well as OS.
    it show report in Html and Text format.
    we can also take manually snapshot for AWR by
    BEGIN
    DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();
    END;
    **The STATISTICS_LEVEL initialization parameter must be set to the TYPICAL or ALL to enable the Automatic Workload Repository.
    [oracle@RMSORA1 oracle]$ sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Mar 17 10:37:22 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> @?/rdbms/admin/awrrpt
    Current Instance
    ~~~~~~~~~~~~~~~~
    DB Id DB Name Inst Num Instance
    4174002554 RMSORA 1 rmsora
    Specify the Report Type
    ~~~~~~~~~~~~~~~~~~~~~~~
    Would you like an HTML report, or a plain text report?
    Enter 'html' for an HTML report, or 'text' for plain text
    Defaults to 'html'
    Enter value for report_type: text
    Type Specified: text
    Instances in this Workload Repository schema
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    DB Id Inst Num DB Name Instance Host
    * 4174002554 1 RMSORA rmsora RMSORA1
    Using 4174002554 for database Id
    Using 1 for instance number
    Specify the number of days of snapshots to choose from
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Entering the number of days (n) will result in the most recent
    (n) days of snapshots being listed. Pressing <return> without
    specifying a number lists all completed snapshots.
    Listing the last 3 days of Completed Snapshots
    Snap
    Instance DB Name Snap Id Snap Started Level
    rmsora RMSORA 16186 16 Mar 2006 17:33 1
    16187 16 Mar 2006 18:00 1
    16206 17 Mar 2006 03:30 1
    16207 17 Mar 2006 04:00 1
    16208 17 Mar 2006 04:30 1
    16209 17 Mar 2006 05:00 1
    16210 17 Mar 2006 05:31 1
    16211 17 Mar 2006 06:00 1
    16212 17 Mar 2006 06:30 1
    16213 17 Mar 2006 07:00 1
    16214 17 Mar 2006 07:30 1
    16215 17 Mar 2006 08:01 1
    16216 17 Mar 2006 08:30 1
    16217 17 Mar 2006 09:00 1
    Specify the Begin and End Snapshot Ids
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Enter value for begin_snap: 16216
    Begin Snapshot Id specified: 16216
    Enter value for end_snap: 16217
    End Snapshot Id specified: 16217
    Specify the Report Name
    ~~~~~~~~~~~~~~~~~~~~~~~
    The default report file name is awrrpt_1_16216_16217.txt. To use this name,
    press <return> to continue, otherwise enter an alternative.
    Benefit:- Now DBA have more free time to play games.....................:-)
    Advance version of statspack
    more DB and OS information with self managing capabilty
    New Automatic alert and database advisor with the help of AWR.
    6.Active Session History:-
    ==========================
    V$active_session_history is view that contain the recent session history.
    the memory for ASH is comes from SGA and it can't more then 5% of Shared pool.
    So we can get latest and active session report from v$active_session_history view and also get histortical data of
    of session from DBA_HIST_ACTIVE_SESS_HISTORY.
    v$active_session_history include some imp column like:-
    ~SQL identifier of SQL statement
    ~Object number, file number, and block number
    ~Wait event identifier and parameters
    ~Session identifier and session serial number
    ~Module and action name
    ~Client identifier of the session
    7.Misc:-
    ========
    Rename Tablespace:-
    =================
    in 10g,we can even rename a tablespace by
    alter tablespace <tb_name> rename to <tb_name_new>;
    This command will update the controlfile,data dictionary and datafile header,but dbf filename will be same.
    **we can't rename system and sysaux tablespace.
    Bigfile tablespace:-
    ====================
    Bigfile tablespace contain only one datafile.
    A bigfile tablespace with 8K blocks can contain a 32 terabyte datafile.
    Bigfile tablespaces are supported only for locally managed tablespaces with automatic segment-space management.
    we can take the advantage of bigfile tablespace when we are using ASM or other logical volume with RAID.
    without ASM or RAID ,it gives poor response.
    syntax:-
    CREATE BIGFILE TABLESPACE bigtbs
    Flushing Buffer Cache:-
    ======================
    This option is same as flushing the shared pool,but only available with 10g.
    but i don't know, whats the use of this command in prod database......
    anyway we can check and try it on test server for tuning n testing some query etc....
    SQL> alter system flush buffer_cache;
    System altered.
    ++++++++++++++++++
    8.Oracle Internal
    ++++++++++++++++++
    Here is some stuff that is not related with 10g but have some intresting things.
    a)undocumented parameter "_log_blocks_during_backup"
    ++++++++++++++++++++++++
    as we know that oracle has generate more redo logs during hotbackup mode because
    oracle has to maintain the a complete copy of block into redolog due to split block.
    we can also change this behaviour by setting this parameter to False.
    If Oracle block size equals the operating system block size.thus reducing the amount of redo generated
    during a hot backup.
    WITHOUT ORACLE SUPPORT DON'T SET IT ON PROD DATABASE.THIS DOCUMENT IS JUST FOR INFORMATIONAL PURPOSE.
    b)some X$ views (X$messages)
    ++++++++++++++++
    if you are intresting in oracle internal architecture then x$ view is right place for getting some intresting things.
    X$messages :-it show all the actions that a background process do.
    select * from x$messages;
    like:-
    lock memory at startup MMAN
    Memory Management MMAN
    Handle sga_target resize MMAN
    Reset advisory pool when advisory turned ON MMAN
    Complete deferred initialization of components MMAN
    lock memory timeout action MMAN
    tune undo retention MMNL
    MMNL Periodic MQL Selector MMNL
    ASH Sampler (KEWA) MMNL
    MMON SWRF Raw Metrics Capture MMNL
    reload failed KSPD callbacks MMON
    SGA memory tuning MMON
    background recovery area alert action MMON
    Flashback Marker MMON
    tablespace alert monitor MMON
    Open/close flashback thread RVWR
    RVWR IO's RVWR
    kfcl instance recovery SMON
    c)Internal Structure of Controlfile
    ++++++++++++++++++++++++++++++++++++
    The contents of the current controlfile can be dumped in text form.
    Dump Level Dump Contains
    1 only the file header
    2 just the file header, the database info record, and checkpoint progress records
    3 all record types, but just the earliest and latest records for circular reuse record types
    4 as above, but includes the 4 most recent records for circular reuse record types
    5+ as above, but the number of circular reuse records included doubles with each level
    the session must be connected AS SYSDBA
    alter session set events 'immediate trace name controlf level 5';
    This dump show lots of intresting information.
    it also show rman recordes if we used this controlfile in rman backup.
    Thanks
    Kuljeet Pal Singh

    You can find each doc in html and pdf format on the Documentation Library<br>
    You can too download all the documentation in html format to have all on your own computer here (445.8MB)<br>
    <br>
    Nicolas.

  • Oracle 10g - Defining the column name in Non English

    Hi Experts,
    I have an exisitng application which is developed on Windows using ASP Technology and uses Oracle 10g 10.1.0.2.0.
    The application is supported with an instance of Data Base within which multiple tablespaces are created for different clients. The application is developed in such a way that some of the tables arecreated dynamically and the columns are named using the data entered through the UI.
    This application needs to be globalized now. The problem is, the column name entered through the UI can be in any language based on the client's settings and those values in turn will be used for naming the columns in the tables.
    1) Can I have the column names to be named using non english characters in Oracle 10g DB? If so,
    1.1) what should I do to configure the exisiting Oracle instance to support it?
    1.2) To what level is that configuration possible, is it per DB instance level (or) can it be done at Tablespace level. I would like to configure each tablespace to host tables with columns defined with different languages, say for example, tablespace 1 will have tables with Japaenese column names and tablespace 2 will have tables with German column names?
    2) What should I do to make my entire DB to support unicode data i.e., to accept any language strings. Currently all strings are declared as VarChar2, should I change all VarChar2 to NVarChar2 (or) is there a way to retain the VarChar2 as is and make some database wide setting?
    Please note that I do not have an option of retaining the column in English as per the Business Requirement.
    Envionment:
    OS - Windows 2003 32 bit
    Oracle 10g 10.1.0.2.0
    UI forms in ASP
    TIA,
    Prem

    1. Yes, you can.
    SQL> create table ÜÝÞ( ßàá number(10));
    Table created.
    SQL> insert into ÜÝÞ values (10);
    1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
    SQL> create table ÜÝÞ( ßàá varchar2(100));
    Table created.
    SQL> insert into ÜÝÞ values ('âãäçìé');
    1 row created.

  • Oracle 10g - Date format in SELECT query for CFOUTPUT

    Hello, everyone.
    The project that I am working on in the dev environment is connected to an Oracle 11g database, but the production side is Oracle 10g.
    I have a page that is erroring in production (but not development) when it gets to a date that it needs to display.
    A co-worker mentioned that, in 10g, if a date/time is being SELECTed, you have to put it in to_char(), so I did that.
    But it's still erroring, and I'm not getting an error message, so I'm assuming that I have an incorrect format for the date in the SELECT.
    What is the proper format for SELECTing a date/time when using to_char()?  Right now, I have SELECT to_char(create_date,'MM-DD-YYYY HH:MI') FROM tableA .  Is this not correct for CF to output?
    Thank you,
    ^_^

    Please see my original post ("I have a page erroring in production (but not in development) when it gets to a date that it needs to display.")  Sorry if it came across as vague.  It made sense, to me, when I typed it.  But, then, I'm usually typing fast just to get the question out there, when I'm in a hurry.
    Haven't done a CFDUMP, yet, as every time I make a change in development that needs to be tested in production, I have to notify my supervisor that there are files that need to be copied into production, which can sometimes take a while, so I try to do troubleshooting on dev side - it's a pain in the you-know-what, but that's the kind of environment I'm working in.
    As it turns out, changing the format in the SELECT to_char() did the trick.  If anyone else has this issue with Oracle 10g, I'm now using SELECT to_char(create_date,'YYYY/MM/DD HH:MI') FROM tableA, and now the CFOUTPUT is processing the whole page.  I guess the MM-DD-YYYY threw CF into a tizzy, breaking the process?
    Anyhoo, it's working, now.  Thank you, Dan and Adam, for your thoughts on this.
    ^_^

  • Nested tables and multiset operators in Oracle 10g

    Consider the following scenario:
    We have two identical relations R and S defined as:
    CREATE TABLE R(
    a INTEGER,
    b table_type)
    NESTED TABLE b STORE as b_1;
    CREATE TABLE S(
    a INTEGER,
    b table_type)
    NESTED TABLE b STORE as b_2;
    where table_typ is defined as
    CREATE TYPE table_typ AS TABLE OF VARCHAR2(8);
    Suppose we have two instances of R and S, each having one tuple as follows: R(1,table_typ('a','b')) and S(1,table_typ('b','c')).
    I would like to "merge" these two simple instances (e.g., achieve the effect of a simple SELECT * FROM R UNION SELECT * FROM S query) and obtain the following resulting instance: Result(1,table_typ('a','b','c')).
    Would this be possible in Oracle 10g? A simple UNION does not work (I got a "inconsistent datatypes: expected - got SCOTT.TABLE_TYP" error). I also took a look at the MULTISET UNION operator over nested tables available in Oracle 10g, but it doesn't seem to get me anywhere. Any help on this would be greatly appreciated.
    Thank you,
    Laura

    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE OR REPLACE TYPE table_type AS TABLE OF VARCHAR2 (8);
      2  /
    Type created.
    SQL> CREATE TABLE r(
      2    a INTEGER,
      3    b table_type)
      4    NESTED TABLE b STORE as b_1;
    Table created.
    SQL> CREATE TABLE s(
      2    a INTEGER,
      3    b table_type)
      4    NESTED TABLE b STORE as b_2;
    Table created.
    SQL> INSERT INTO r VALUES (1, table_type ('a', 'b'));
    1 row created.
    SQL> INSERT INTO s VALUES (1, table_type ('b', 'c'));
    1 row created.
    SQL> COLUMN c FORMAT A10;
    SQL> SELECT r.a, r.b MULTISET UNION DISTINCT s.b c
      2  FROM   r, s
      3  WHERE  r.a = s.a;
             A C
             1 TABLE_TYPE('a', 'b', 'c')
    SQL>

  • Error in Installing Oracle 10g Express Edition Universal on WIndows2003

    While Installing Oracle 10g XE Universal On WIndows 2003 Server Standard Edition(Which is a standalone Machine). I got an following Error:
    Error No: 0x80040707
    Error Description: DLL Function Call Crashed: GetHostnameDll.getHostname.
    Plz find some solution for the above problem.

    Hi
    Here's the resolution that can work for you:
    Disable the "Print Spooler" service before running the installer.
    1.Open Control Panel: Start --> Settings --> Control Panel
    2.Double-click "Services"
    3.On the list of NT Services, right-click "Print Spooler"
    4.Select "Stop"
    5.Select "Properties"
    6.Under Startup Type, select "manual" or "disabled"
    7.Reboot your NT Server
    8.After rebooting, verify that the Print Spooler is still "stopped".
    9.Delete Program Files\Common Files\Installshield\Engine folder
    10.Re-run the installer.
    11.After installation, re-set the Print Spooler service to Startup type "Automatic" and start the service.
    Also, have a look at the installshield page: http://consumer.installshield.com/kb.asp?id=Q108167
    -Priya

Maybe you are looking for