Urgently! remove oracle database domain name

I have changed my database's global_name.
here is the script:
alter database rename global_name to testdb.com
then I want to change the database name back to testdb, how to do that?

You need to recreate control file to make the change effective.
http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref338
For example, to create a database with a global database name of test.us.acme.com, edit the parameters of the new parameter file as follows:
DB_NAME = test
DB_DOMAIN = us.acme.com
You can rename the GLOBAL_NAME of your database using the ALTER DATABASE RENAME GLOBAL_NAME statement. However, you must also shut down and restart the database after first changing the DB_NAME and DB_DOMAIN initialization parameters and re-creating the control file.

Similar Messages

  • Removing Oracle Database Enterprise Edition Release 11.2.2.0 on linux 5

    I have installed Pre-Built Developer-VM (for Oracle VM VirtualBox) named Database App Development VM, including Oracle Database 11g Release 2 Enterprise Edition.
    VirtualBox VMs for Developers</title><meta name="Title" content="VirtualBox VMs for Developers&q…
    I would like to remove Oracle Database Enterprise Edition Release 11.2.2.0 on linux 5, but I am getting the error "command not found".
    [oracle@localhost ~]$ cd $ORACLE_HOME
    [oracle@localhost dbhome_2]$ cd deinstall
    [oracle@localhost deinstall]$ ls -ltr
    -rwxr-xr-x 1 oracle oracle 32343 Dec 16  2009 sshUserSetup.sh
    -rw-r--r-- 1 oracle oracle 489   Nov 16  2009 readme.txt
    -rw-r--r-- 1 oracle oracle 3466  Mar 19  2010 deinstall.xml
    -rwxr-xr-x 1 oracle oracle 9369  Jun 10  2010 bootstrap.pl
    -rwxr-xr-x 1 oracle oracle 14776 Jul 15  2010 deinstall.pl
    drwxr-xr-x 2 oracle oracle 4096  Oct  2  2010 response
    drwxr-xr-x 2 oracle oracle 4096  Oct  2  2010 jlib
    -rwxr-xr-x 1 oracle oracle 8474  Oct  2  2010 deinstall
    [oracle@localhost deinstall]$ ./deinstall
    Checking for required files and bootstrapping ...
    Please wait ...
    ./deinstall: line 217: ERROR:: command not found
    Does anybody have an idea?

    Hello Asif,
    I opened deinstall.pl with vi and jumped to line 217. There is nothing in line 217. Its the end of file. In line 216 is the following command:
    $TOOL_DIR/perl/bin/perl $TOOL_DIR/deinstall.pl $HOME_VER $TEMP_LOC $TOOL_DIR $ARCHITECTURE_FLAG $TOOL_ARGS
    I cannot find the problem.
    deinstall.pl
    # $Header: install/utl/scripts/db/deinstall /main/3 2010/05/28 20:12:57 ssampath Exp $
    # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
    #    NAME
    #      deinstall - wrapper script that calls deinstall tool.
    #    DESCRIPTION
    #      This script will set all the necessary variables and call the tools
    #      entry point.
    #    NOTES
    #      <other useful comments, qualifications, etc.>
    #    MODIFIED   (MM/DD/YY)
    #    mwidjaja    04/29/10 - XbranchMerge mwidjaja_bug-9579184 from
    #                           st_install_11.2.0.1.0
    #    mwidjaja    04/15/10 - Added SHLIB_PATH for HP-PARISC
    #    mwidjaja    01/14/10 - XbranchMerge mwidjaja_bug-9269768 from
    #                           st_install_11.2.0.1.0
    #    mwidjaja    01/14/10 - Fix help message for params
    #    ssampath    12/24/09 - Fix for bug 9227535. Remove legacy version_check
    #                           function
    #    ssampath    12/01/09 - XbranchMerge ssampath_bug-9167533 from
    #                           st_install_11.2.0.1.0
    #    ssampath    11/30/09 - Set umask to 022.
    #    prsubram    10/12/09 - XbranchMerge prsubram_bug-9005648 from main
    #    prsubram    10/08/09 - Compute ARCHITECTURE_FLAG in the script
    #    prsubram    09/15/09 - Setting LIBPATH for AIX
    #    prsubram    09/10/09 - Add AIX specific code check java version
    #    prsubram    09/10/09 - Change TOOL_DIR to BOOTSTRAP_DIR in java cmd
    #                           invocation of bug#8874160
    #    prsubram    09/08/09 - Change the default shell to /usr/xpg4/bin/sh on
    #                           SunOS
    #    prsubram    09/03/09 - Removing -d64 for client32 homes for the bug8859294
    #    prsubram    06/22/09 - Resolve port specific id cmd issue
    #    ssampath    06/02/09 - Fix for bug 8566942
    #    ssampath    05/19/09 - Move removal of /tmp/deinstall<timestamp> to java
    #                           code.
    #    prsubram    04/30/09 - Fix for the bug#8474891
    #    mwidjaja    04/29/09 - Added user check between the user running the
    #                           script and inventory owner
    #    ssampath    04/29/09 - Changes to make error message better when deinstall
    #                           tool is invoked from inside ORACLE_HOME and -home
    #                           is passed.
    #    ssampath    04/15/09 - Fix for bug 8414555
    #    prsubram    04/09/09 - LD_LIBRARY_PATH is ported for sol,hp-ux & aix
    #    mwidjaja    03/26/09 - Disallow -home for running from OH
    #    ssampath    03/24/09 - Fix for bug 8339519
    #    wyou        02/25/09 - restructure the ohome check
    #    wyou        02/25/09 - change the error msg for directory existance check
    #    wyou        02/12/09 - add directory existance check
    #    wyou        02/09/09 - add the check for the writablity for the oracle
    #                           home passed-in
    #    ssampath    01/21/09 - Add oui/lib to LD_LIBRARY_PATH
    #    poosrini    01/07/09 - LOG related changes
    #    ssampath    11/24/08 - Create /main/osds/unix branch
    #    dchriste    10/30/08 - eliminate non-generic tools like 'cut'
    #    ssampath    08/18/08 - Pickup srvm.jar from JLIB directory.
    #    ssampath    07/30/08 - Add http_client.jar and OraCheckpoint.jar to
    #                           CLASSPATH
    #    ssampath    07/08/08 - assistantsCommon.jar and netca.jar location has
    #                           changed.
    #    ssampath    04/11/08 - If invoking the tool from installed home, JRE_HOME
    #                           should be set to $OH/jdk/jre.
    #    ssampath    04/09/08 - Add logic to instantiate ORA_CRS_HOME, JAVA_HOME
    #                           etc.,
    #    ssampath    04/03/08 - Pick up ldapjclnt11.jar
    #    idai        04/03/08 - remove assistantsdc.jar and netcadc.jar
    #    bktripat    02/23/07 -
    #    khsingh     07/18/06 - add osdbagrp fix
    #    khsingh     07/07/06 - fix regression
    #    khsingh     06/20/06 - fix bug 5228203
    #    bktripat    06/12/06 - Fix for bug 5246802
    #    bktripat    05/08/06 -
    #    khsingh     05/08/06 - fix tool to run from any parent directory
    #    khsingh     05/08/06 - fix LD_LIBRARY_PATH to have abs. path
    #    ssampath    05/01/06 - Fix for bug 5198219
    #    bktripat    04/21/06 - Fix for bug 5074246
    #    khsingh     04/11/06 - fix bug 5151658
    #    khsingh     04/08/06 - Add WA for bugs 5006414 & 5093832
    #    bktripat    02/08/06 - Fix for bug 5024086 & 5024061
    #    bktripat    01/24/06 -
    #    mstalin     01/23/06 - Add lib to pick libOsUtils.so
    #    bktripat    01/19/06 - adding library changes
    #    rahgupta    01/19/06 -
    #    bktripat    01/19/06 -
    #    mstalin     01/17/06 - Modify the assistants deconfig jar file name
    #    rahgupta    01/17/06 - updating emcp classpath
    #    khsingh     01/17/06 - export ORACLE_HOME
    #    khsingh     01/17/06 - fix for CRS deconfig.
    #    hying       01/17/06 - netcadc.jar
    #    bktripat    01/16/06 -
    #    ssampath    01/16/06 -
    #    bktripat    01/11/06 -
    #    clo         01/10/06 - add EMCP entries
    #    hying       01/10/06 - netcaDeconfig.jar
    #    mstalin     01/09/06 - Add OraPrereqChecks.jar
    #    mstalin     01/09/06 -
    #    khsingh     01/09/06 -
    #    mstalin     01/09/06 - Add additional jars for assistants
    #    ssampath    01/09/06 - removing parseOracleHome temporarily
    #    ssampath    01/09/06 -
    #    khsingh     01/08/06 - fix for CRS deconfig
    #    ssampath    12/08/05 - added java version check
    #    ssampath    12/08/05 - initial run,minor bugs fixed
    #    ssampath    12/07/05 - Creation
    #MACROS
    if [ -z "$UNAME" ]; then UNAME="/bin/uname"; fi
    if [ -z "$ECHO" ]; then ECHO="/bin/echo"; fi
    if [ -z "$AWK" ]; then AWK="/bin/awk"; fi
    if [ -z "$ID" ]; then ID="/usr/bin/id"; fi
    if [ -z "$DIRNAME" ]; then DIRNAME="/usr/bin/dirname"; fi
    if [ -z "$FILE" ]; then FILE="/usr/bin/file"; fi
    if [ "`$UNAME`" = "SunOS" ]
    then
        if [ -z "${_xpg4ShAvbl_deconfig}" ]
        then
            _xpg4ShAvbl_deconfig=1
            export _xpg4ShAvbl_deconfig
            /usr/xpg4/bin/sh $0 "$@"
            exit $?
        fi
            AWK="/usr/xpg4/bin/awk"
    fi
    # Set umask to 022 always.
    umask 022
    INSTALLED_VERSION_FLAG=true
    ARCHITECTURE_FLAG=32
    TOOL_ARGS=$* # initialize this always.
    # Since the OTN and the installed version of the tool is same, only way to
    # differentiate is through the instantated variable ORA_CRS_HOME.  If it is
    # NOT instantiated, then the tool is a downloaded version.
    # Set HOME_VER to true based on the value of $INSTALLED_VERSION_FLAG
    if [ x"$INSTALLED_VERSION_FLAG" = x"true" ]
    then
       ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2
       HOME_VER=1     # HOME_VER
       TOOL_ARGS="$ORACLE_HOME $TOOL_ARGS"
    else
       HOME_VER=0
    fi
    # Save current working directory
    CURR_DIR=`pwd`
    # If CURR_DIR is different from TOOL_DIR get that location and cd into it.
    TOOL_REL_PATH=`$DIRNAME $0`
    cd $TOOL_REL_PATH
    DOT=`$ECHO $TOOL_REL_PATH | $AWK -F'/' '{ print $1}'`
    if [ "$DOT" = "." ];
    then
      TOOL_DIR=$CURR_DIR/$TOOL_REL_PATH
    elif [ `expr "$DOT" : '.*'` -gt 0 ];
    then
      TOOL_DIR=$CURR_DIR/$TOOL_REL_PATH
    else
      TOOL_DIR=$TOOL_REL_PATH
    fi
    # Check if this script is run as root.  If so, then error out.
    # This is fix for bug 5024086.
    RUID=`$ID|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'`
    if [ ${RUID} = "root" ];then
    $ECHO "You must not be logged in as root to run $0."
    $ECHO "Log in as Oracle user and rerun $0."
    exit $ROOT_USER
    fi
    # DEFINE FUNCTIONS BELOW
    computeArchFlag() {
       TOOL_HOME=$1
       case `$UNAME` in
          HP-UX)
             if [ "`/usr/bin/file $TOOL_HOME/bin/kfod | $AWK -F\: '{print $2}' | $AWK -F\- '{print $2}' | $AWK '{print $1}'`" = "64" ];then
                ARCHITECTURE_FLAG="-d64"
             fi
          AIX)
             if [ "`/usr/bin/file $TOOL_HOME/bin/kfod | $AWK -F\: '{print $2}' | $AWK '{print $1}' | $AWK -F\- '{print $1}'`" = "64" ];then
                ARCHITECTURE_FLAG="-d64"
             fi
             if [ "`/usr/bin/file $TOOL_HOME/bin/kfod | $AWK -F\: '{print $2}' | $AWK '{print $2}' | $AWK -F\- '{print $1}'`" = "64" ];then
                  ARCHITECTURE_FLAG="-d64"
             fi
       esac
    if [ $HOME_VER = 1 ];
    then
       $ECHO "Checking for required files and bootstrapping ..."
       $ECHO "Please wait ..."
       TEMP_LOC=`$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/deinstall/bootstrap.pl $HOME_VER $TOOL_ARGS`
       TOOL_DIR=$TEMP_LOC
    else
       TEMP_LOC=`$TOOL_DIR/perl/bin/perl $TOOL_DIR/bootstrap.pl $HOME_VER $TOOL_ARGS`
    fi
    computeArchFlag $TOOL_DIR
    $TOOL_DIR/perl/bin/perl $TOOL_DIR/deinstall.pl $HOME_VER $TEMP_LOC $TOOL_DIR $ARCHITECTURE_FLAG $TOOL_ARGS
    Best regards

  • Application is not working when changing of oracle server domain name

    Hi friends
    We decided to change oracle server domain name due to some reason .. we changed the domain name but application running on the other server cannot connect to this domain i don't know whats the problem . I change the enterprise manager ( emca -config dbcontrol db -repos recreate_) according to the new domain but some of the future not working like date,etc. can anyone help me how to rectify it plz.

    Mohd khalid wrote:
    Hi friends
    We decided to change oracle server domain name due to some reason .. we changed the domain name but application running on the other server cannot connect to this domain i don't know whats the problem . I change the enterprise manager ( emca -config dbcontrol db -repos recreate_) according to the new domain but some of the future not working like date,etc. can anyone help me how to rectify it plz.I am really confused that what's not working? What I have understood is that you recreated the EM repository. So where does "some of the future not working like date,etc." come into it? Are you checking date from EM ? Which application is not working, your application or EM or both or somethingn else? Tell us the complete version, error information and also post the output of
    emctl status dbconsoleHTH
    Aman....

  • What is maximum  length of oracle database objects name

    Hi all,
    Can anyone tell me what is maximum length of oracle database objects name .
    I guess it is 30 ,correct me if i am wrong thank you.
    regards,
    P Prakash

    Some objects (like synonyms or java classes) can have longer names than 30 chars:
    SQL> create or replace synonym empempempempempempempempempempempempemp for emp
    Synonym created.though internally oracle will generate short names for such objects:
    SQL> select synonym_name from user_synonyms where synonym_name like '%EMPEMPEM%'
    SYNONYM_NAME                 
    /969ea190_EMPEMPEMPEMPEMPEMPEM
    1 row selected.and not always will the long name be actually usable:
    SQL> select * from empempempempempempempempempempempempemp
    Error at line 1
    ORA-00972: identifier is too long

  • Remove oracle database without accessing   registery

    Hi
    Can I remove oracle from my machine without accessin g
    registery?
    I have been told by my teacher that is possible
    but as my experience in oracle installation that causes installtion to stop somewhere?
    can you suggest please?
    oracle 10g
    windows xp Os

    Hi;
    Please see:
    Note 124353.1 WIN: Manually Removing all Oracle Components on Microsoft Windows Platforms
    Regard
    Helios

  • Oracle database object name 30 characters  limit

    Hi,
    I'm working with Oracle since version 8 and I know about this restriction. I was hopping that this will be eliminated in the future, but I saw that in Oracle 11i the same restriction exists.
    Does anyone know if it will be eliminated in a future release?
    I would like to know if there is a reason why this limitation exists. We are currently developing an JPA application and we have tables that have name with more than 30 characters.
    Thanks!

    because all table/index names must be stored in the data dictionary and that storage is only allocated for 30 characters
    Also check
    http://stackoverflow.com/questions/1378133/why-are-oracle-table-column-index-names-limited-to-30-characters

  • 4503 VTP Domain Name

    I have a lab that consists of 2 - 4503 with SUPII running cat4000-i9s-mz.122-25.EWA14.bin as the core devices.  I have been practicing for the BCMSN test and was working with the different VTP confiuration options.  Here are the two issues that I am having.  One of which from reading other posts, I may have answered, but want to verify.
    1- 4503 (Core_1) was configured as Server, but no VTP summary advertisements where being propegated to the other clients.  I verified the configuration multiple times to ensure accuracy.  All VTP Domain names where empty (factory default).  Not until I changed the VTP Domain name to Test, did I get propegation of vtp advertisements.  I have in the past been able to set up vtp on 3550, 3560 switches with no VTP Domain name and VTP worked as expected.  From reading, it appears the non propegation of vtp summary advertisements is the norm for 4503.  Can someone verity this.
    2- How do you remove the VTP Domain name from the 4503?  I was able to remove the name from the other devices, 3550, 3560 by doing the following:
         del flash:vlan.dat
          wr er
          reload
         On the 4503 I did the following:
          Switch#del /r /f cat4000_flash:vlan.dat
          reload
         After reload, everything was back.  I also assumed when the 4503 was booting, it may have recieved the VTP information from the other 4503.  So I isolated both by disconnecting the uplinks to all other devices.  Still no go.  I have copied the start-up config to a tftp server, modified the config by removing all vtp information then copied back to running-config and this worked.  But it seems like there should be a better (easier) way of getting the vtp domain name removed on a 4503
         Switch#sh vtp status
    VTP Version                     : 2
    Configuration Revision          : 0
    Maximum VLANs supported locally : 1005
    Number of existing VLANs        : 5
    VTP Operating Mode              : Transparent
    VTP Domain Name                 : null2
    VTP Pruning Mode                : Disabled
    VTP V2 Mode                     : Enabled
    VTP Traps Generation            : Disabled
    MD5 digest                      : 0x10 0x14 0xFD 0x3C 0x2C 0xD2 0xFC 0x4C
    Configuration last modified by 0.0.0.0 at 3-1-93 01:19:35
    Any help would be appreciated
    Thanks in advance.

    I have a lab that consists of 2 - 4503 with SUPII running
    cat4000-i9s-mz.122-25.EWA14.bin as the core devices.  I have been
    practicing for the BCMSN test and was working with the different VTP
    confiuration options.  Here are the two issues that I am having.  One
    of which from reading other posts, I may have answered, but want to
    verify.1- 4503 (Core_1) was configured as Server, but no VTP
    summary advertisements where being propegated to the other clients.  I
    verified the configuration multiple times to ensure accuracy.  All VTP
    Domain names where empty (factory default).  Not until I changed the
    VTP Domain name to Test, did I get propegation of vtp advertisements.
    I have in the past been able to set up vtp on 3550, 3560 switches with
    no VTP Domain name and VTP worked as expected.  From reading, it
    appears the non propegation of vtp summary advertisements is the norm
    for 4503.  Can someone verity this.2-
    How do you remove the VTP Domain name from the 4503?  I was able to
    remove the name from the other devices, 3550, 3560 by doing the
    following:     del flash:vlan.dat      wr er      reload     On the 4503 I did the following:      Switch#del /r /f cat4000_flash:vlan.dat      reload   
    After reload, everything was back.  I also assumed when the 4503 was
    booting, it may have recieved the VTP information from the other 4503.
    So I isolated both by disconnecting the uplinks to all other devices.
    Still no go.  I have copied the start-up config to a tftp server,
    modified the config by removing all vtp information then copied back to
    running-config and this worked.  But it seems like there should be a
    better (easier) way of getting the vtp domain name removed on a 4503     Switch#sh vtp statusVTP Version                     : 2Configuration Revision          : 0Maximum VLANs supported locally : 1005Number of existing VLANs        : 5VTP Operating Mode              : TransparentVTP Domain Name                 : null2
    Hi,
    Deleting the vlan.dat from cisco switches will delete the complete vlan and vtp information from database and if you are not able to delete the domain name in these type of situation try configuring the some bogus name with mode as transperent mode so that other should not get impacted.
    check out the below link for more information
    http://www.ciscosystems.com.ro/en/US/docs/switches/lan/catalyst4500/12.1/12ew/configuration/guide/vtp.html#wp1029449
    http://www.cisco.com/en/US/tech/tk389/tk689/technologies_configuration_example09186a00807d5d42.shtml
    Hope to Help !!
    Ganesh.H
    Remember to rate the helpful post

  • Find portal oracle database host and port

    HI ,
    We have EP 7.0 sp15 with oracle database,
    Is there a way to find the host and port of oracle database programatically

    Hello namit,
    I'm the same problem, do you solved it ?
    Tks,
    best regards.

  • Can Oracle Database 10g and Oracle Database 10g Express Edition co-exist ?

    I just installed Oracle Database 10g Express Edition. But I also want to access isql*plus for study purposes.
    Can I download/install Oracle Database 10g without removing Oracle Database 10g Express Edition ?

    I decided to download and install Oracle 10g myself and it was pretty quick to install. So I answered my own question : Oracle 10g Express is definitely able to co-exist with Oracle 10g no problem.
    I want to post/share this answer for others who started with Oracle 10g express first - the journey I started.
    The url isql*plus is displayed near the end of the installation together with the enterprise manager url. Pretty cool.
    Now I can learn both Oracle 10g enterprise edition and Oracle 10g Express which is based on apex engine.

  • Uix get Oracle DB attribute name

    I have a uix sort event calling a java method. In the java method, I can get the view object attribute name for the column to be sorted from the page event.
    I need to obtain the Oracle database attribute name associated with the view object attribute name so I can construct an ORDER BY clause for the sort.
    Does anyone know how to do this?
    Right now I am trying to get my java program to retrieve the Oracle DB name.
    If this is not easy to do in java, is there a way in the uix code I could set a page property for the column selected to be sorted, with the Oracle DB attribute name in it? The idea would be to set the page property with the proper value when someone clicked on the column header to cause the sort to happen.
    I really appreciate any help you can give.
    Best regards,
    Steve

    This topic is closed. I solved the problem another way.

  • Problems with domain name in global_name and database links

    I have to create a database link on Oracle 9i **without** a domain. Somehow whenever I create a database link, a domain is added. This domain seems to be the domain that is also added to the database global name (and is the same as my TCP/IP domain on my windows machine).
    I tried to create the db link:
    create database link "TEST"
    connect to remotedb
    identified by mypassword
    using 'myservicename';
    and get:
    TEST.DOMAIN.COM instead of TEST.
    I also tried to change my database global name:
    alter database rename global_name to NEWNAME
    and still the database name is NEWNAME.DOMAIN.COM
    So there does not seem to be any way to remove the domain.
    Note that:
    - db_domain is not set in init.ora
    - names.default_domain is not set in sqlnet.ora
    - global_names = false
    So... how to get rid of the domain part?

    Hi,
    this is not what you want to hear, but once a global_name has a domain associated with it you can't get rid of it, you can change it to a different domain with the alter database command but not to null and it is this domain that will always get appended as default to your db link name so your stuck with it

  • Domain Names and Oracle

    Hi,
    I am preparing to install Oracle 8i on my Windows NT machine,
    and I stumped into something that I can find no answer for.
    Oracle asks me to say what my domain name is (e.g. suse.com). It
    uses this to manage the different Oracle instances, e.g.,
    server1.suse.com and server2.suse.com. Well, the problem is that
    our machines do not have our domain name. That is, the machine I
    am using (as well as all our servers) does not have a DNS name
    xxx.intelsystech.com. Their names are managed by our ISP, and
    for all I know they change it once in a while. Our machines do
    have unique IP numbers, though (e.g. 43.25.44.32). We have
    managed to do just about everything else using these fixed IP
    numbers (e.g. ftp, http, etc.). Also, names are not a problem
    because all machines are in the Windows Active Directory domain,
    and therefore have a "local" name (e.g. Monet) in the Windows
    LAN.
    What should I enter when Oracle asks for my domain name? And for
    the machine name? Can I use the IP number? Or the IP pattern
    (e.g. 43.25.44.)? How will I be able to refer to an Oracle
    service (listener, database name) without a domain name?
    Thanks,
    Taha

    Oracle asks me to say what my domain name is (e.g. suse.com). It
    uses this to manage the different Oracle instances, e.g.,
    server1.suse.com and server2.suse.com. These domain names are not the same as ip domain names. You need
    the domain names only if you want to have different oracle db's
    connected to each other, e.g. for replication.
    If you are using this db alone, then just choose any name.
    How will I be able to refer to an Oracle
    service (listener, database name) without a domain name? You can use ip-addresses for listener and tnsnames, but it is
    better to use dns-names.
    Hop this helps.
    Thomas

  • Not able to start the listener in oracle 10g  after the domain name changed

    Hi
    I had installed the oracle 10g on zLinux. It was working fine( was able to mount the database and start the listener). Now my server's domain name got changed. So i have added the new domain name in the tnsnames.ora and listeners.ora file . now i could able to mount the databases but am not able to start the listener . whille starting the listener , am getting the following error
    oracle@ptcr4d00:~> lsnrctl start
    LSNRCTL for Linux: Version 10.2.0.2.0 - Production on 05-AUG-2009 10:31:05
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /opt/oracle/10g/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.2.0 - Production
    System parameter file is /opt/oracle/10g/network/admin/listener.ora
    Log messages written to /opt/oracle/10g/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PTCR4D00)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12547: TNS:lost contact
    TNS-12560: TNS:protocol adapter error
    TNS-00517: Lost contact
    Linux Error: 104: Connection reset by peer
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PTCR4D00)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    I have posted the contents of the tnsnames.ora and listeners.ora
    TNSNAMES.ORA
    TC =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = PTCR4D00)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TC)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    LISTENERS.ORA
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/10g)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = PTCR4D00)(PORT = 1521))
    Could you please help me to resolve this issue ?
    Regards
    Mani

    Hi
    Please find the content of the /etc/hosts below
    # IP-Address Full-Qualified-Hostname Short-Hostname
    #127.0.0.1 localhost
    9.124.114.49 PTCR4D00
    # special IPv6 addresses
    ::1 localhost ipv6-localhost ipv6-loopback
    fe00::0 ipv6-localnet
    ff00::0 ipv6-mcastprefix
    ff02::1 ipv6-allnodes
    ff02::2 ipv6-allrouters
    ff02::3 ipv6-allhosts
    9.124.114.49 PTCR4D00 PTCR4D00
    Regards
    Mani

  • Urgent: oracle.jbo.domain.Number Bug (continued)

    Dear Shailesh(JDeveloper Team):
    To catch your attention, I posted the topic here again:
    [original topic]
    We are developing a BC4J application for our US customer. Our web server (iAS) and database (Oracle 8i) are installed on RS/6000, AIX 4.3.3
    When we try to set a Number type field value (Number is the only type in Oracle database to stand for a number, either a float field or sequence number). On AIX iAS, if the value is integer, larger than 100 and is not multiple of 100 ( such as 123, 112, 5676, 43435 ), the system(ont our jsp, web bean, but handled by low level classes) will automatically add two zeroes at the end of the number before insert to database table. For example:
    123---->12300
    112---->11200
    5676--->567600
    43435-->4343500.
    It is incorrect! On the other hand, when we try to retrieve value from a field which type is Number, if the value is a integer but larger than 100, and is not multiple of 100 ( such as 123, 112, 5676, 43435 ), the system will automatically add two zeroes at the end of the number after got from database table. For example:
    123---->12300
    112---->11200
    5676--->567600
    43435-->4343500
    We check the xml file of the BC4J, Number field type in the middle-tier is denoted as oracl.jbo.domain.Number, so we wrote a program (JSP) without accessing database, like this one:
    <%
    for (int i=0 ; i<1000; i++) {
    %>
    <p> <%=new oracle.jbo.domain.Number(i).toString() %></p>
    <%}%
    The program runs correctly in JDeveloper developing environment on NT workstation( in the developing environment, NT mimic a local virtual middle-tier):
    0
    1
    99
    100
    101
    598
    599
    600
    999
    But after we deployed the jsp to iAS on RS/6000 and browse it, the output result is very inconceivable:
    0
    1
    99
    100
    10100 (Should be 101)
    59800 (Should be 598)
    59900 (Should be 599)
    600
    99900 (Should be 999)
    We checked all through the deployed Jar files on iAS and the oracl.jbo.domain.Number class, we found that the class is extended from oracle.sql.NUMBER, and the toString method is also inherited from oracle.sql.NUMBER.
    We even test below simple jsp program using oracl.jbo.domain.Number type:
    <%@ page contentType="text/html" autoFlush="true" import="java.lang.*,LocaMotion.*"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <%
    String strI="123";
    %>
    <p> <%=new oracle.jbo.domain.Number(strI)%></p>
    </BODY>
    </HTML>
    In JDeveloper developing environment, it prints 123 in browser, but when deployed to iAS, it prints 12300.
    Why the same Java class has different behavior under different OS (NT and RS/6000)? We think it is a bug on implementation of oracle.sql.NUMBER. We assume this is caused by the machine CPU register length: NT: 32 bits, RS/6000: 64 bits.
    This bug must be fixed to ensure the BC4J application workable. Would you please resolve this problem for us at your time?
    We are eager to waiting for your answer, as we are in FVT phase, our customer is BITCO enterprises inc. in Virginia.
    Thanks,
    [Answer from Shailesh(JDeveloper Team)]:
    I'd suspect this is an issue in oracle.sql.NUMBER implementation. Could you help us by verifying that oracle.sql.NUMBER.toString() also reproduces the same problem. A potential fix I could think of is to use the jdbc libraries that come with RS/6000-AIX version of the database.
    [Our test result]:
    We test the oracle.sql.NUMBER.toString() method, it also reproduces the same problem.
    What's the "jdbc libraries that come with RS/6000-AIX version of the database"?
    ,who offer it? IBM or Oracle. Where could I find it and how to use it? Will oracle.sql.NUMBER problem for AIX fixed?
    null

    As a follow up , could you tell the specific database version of Oracle8i you are using.(i.e 8.1.6 or 8.1.7/ also if you have applied any patches)
    . Just wondering if you had tried a simple JDBC program (without BC4J) (eg: a command line program) which uses oracle.sql.Number and produced the same erroneous results.
    appericiate if you could provide any additional information.
    thanks and best regards
    raghu

  • Urgent: oracle.jbo.domain.Number Bug (continued I)

    Dear Shailesh and Raghu (JDeveloper Team):
    To catch your attention, I posted the topic here again:
    ------------------------------------------------------------------------------------------[original topic]
    We are developing a BC4J application for our US customer. Our web server (iAS) and database (Oracle 8i) are installed on RS/6000, AIX 4.3.3
    When we try to set a Number type field value (Number is the only type in Oracle database to stand for a number, either a float field or sequence number). On AIX iAS, if the value is integer, larger than 100 and is not multiple of 100 ( such as 123, 112, 5676, 43435 ), the system(ont our jsp, web bean, but handled by low level classes) will automatically add two zeroes at the end of the number before insert to database table. For example:
    123---->12300
    112---->11200
    5676--->567600
    43435-->4343500.
    It is incorrect! On the other hand, when we try to retrieve value from a field which type is Number, if the value is a integer but larger than 100, and is not multiple of 100 ( such as 123, 112, 5676, 43435 ), the system will automatically add two zeroes at the end of the number after got from database table. For example:
    123---->12300
    112---->11200
    5676--->567600
    43435-->4343500
    We check the xml file of the BC4J, Number field type in the middle-tier is denoted as oracl.jbo.domain.Number, so we wrote a program (JSP) without accessing database, like this one:
    <%
    for (int i=0 ; i<1000; i++) {
    %>
    <p> <%=new oracle.jbo.domain.Number(i).toString() %></p>
    <%}%
    The program runs correctly in JDeveloper developing environment on NT workstation( in the developing environment, NT mimic a local virtual middle-tier):
    0
    1
    99
    100
    101
    598
    599
    600
    999
    But after we deployed the jsp to iAS on RS/6000 and browse it, the output result is very inconceivable:
    0
    1
    99
    100
    10100 (Should be 101)
    59800 (Should be 598)
    59900 (Should be 599)
    600
    99900 (Should be 999)
    We checked all through the deployed Jar files on iAS and the oracl.jbo.domain.Number class, we found that the class is extended from oracle.sql.NUMBER, and the toString method is also inherited from oracle.sql.NUMBER.
    We even test below simple jsp program using oracl.jbo.domain.Number type:
    <%@ page contentType="text/html" autoFlush="true" import="java.lang.*,LocaMotion.*"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <%
    String strI="123";
    %>
    <p> <%=new oracle.jbo.domain.Number(strI)%></p>
    </BODY>
    </HTML>
    In JDeveloper developing environment, it prints 123 in browser, but when deployed to iAS, it prints 12300.
    Why the same Java class has different behavior under different OS (NT and RS/6000)? We think it is a bug on implementation of oracle.sql.NUMBER. We assume this is caused by the machine CPU register length: NT: 32 bits, RS/6000: 64 bits.
    This bug must be fixed to ensure the BC4J application workable. Would you please resolve this problem for us at your time?
    We are eager to waiting for your answer, as we are in FVT phase, our customer is BITCO enterprises inc. in Virginia.
    Thanks,
    [Answer from Shailesh(JDeveloper Team)]:
    I'd suspect this is an issue in oracle.sql.NUMBER implementation. Could you help us by verifying that oracle.sql.NUMBER.toString() also reproduces the same problem. A potential fix I could think of is to use the jdbc libraries that come with RS/6000-AIX version of the database.
    [Our test result]:
    We test the oracle.sql.NUMBER.t oString() method, it also reproduces the same problem.
    What's the "jdbc libraries that come with RS/6000-AIX version of the database"?
    ,who offer it? IBM or Oracle. Where could I find it and how to use it? Will oracle.sql.NUMBER problem for AIX fixed?
    [Answer from Raghu(JDeveloper Team)]:
    JDev Team
    unregistered posted January 04, 2001 10:14 AM
    Hi
    we are trying to follow up internally on this. Did you file a bug with Oracle Support on this. ?
    If not I would suggest to do that, but at the same time we would be following up on that with the respecitive product group which works on that.
    thanks and best regards
    raghu
    IP: Logged
    JDev Team
    unregistered posted January 04, 2001 04:08 PM
    As a follow up , could you tell the specific database version of Oracle8i you are using.(i.e 8.1.6 or 8.1.7/ also if you have applied any patches)
    . Just wondering if you had tried a simple JDBC program (without BC4J) (eg: a command line program) which uses oracle.sql.Number and produced the same erroneous results.
    appericiate if you could provide any additional information.
    thanks and best regards
    raghu
    Larry's answer:
    Yes. We opened a Tar on http://metalink.oracle.com (Tar number is 1350841.999), but still no solution provided.
    Our software platform is AIX 4.3.3., Oracle 8i is 8.1.6, iAS is 1.0.
    Below program is a very simple Jsp that uses oracle.sql.NUMBER but no BC4J classed used.
    <%@ page contentType="text/html" autoFlush="true" import="java.lang.*,oracle.sql.*"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <%
    String strI="123";
    %>
    <p> <%=new oracle.sql.NUMBER(strI).stringValue()%></p>
    </BODY>
    </HTML>
    In JDeveloper developing environment (WINDOWS NT), it prints 123 in browser, but when deployed to iAS on AIX, it prints 12300.
    null

    thanks for the extra information. We have passed the information to specific product group and they are looking into it.
    As it looks like specific issue we can take this offline.
    can you send your email id [email protected]
    and we can let you know on the status.
    raghu

Maybe you are looking for

  • BADI/USER EXIT for MIGO while generating FI Documents.

    Hi Friends, In MIGO T.Code when posting the GR, we'll get the Material Documnent right, at the same time it will generate an Accounting Document in background and the same will update in  BKPF/BSEG Tables. Mine requirement is when ever the entries ar

  • Downloading videos instead of opening

    Hi all. I am using Safari 5.0.3. I want to download some MPEG videos but when I click on the links a plugin opens to try to play them. I just want to save the files. I can't seem to do the old right-click > "Download linked file as..." as the link ac

  • N70 not working properly

    My N70 is not working properly. Whenever I try to install new softwares, it says 'Corrupted File!'. I can't view my captured images and videos, it says 'Corrupted File!'. It even damages my music tracks. I have formatted my phone memory as well as my

  • Adobe Widgets -Function module not displaying data in flex

    Hello All, I am using a function module to obtain the data of the tables parameter. When i run in the adobe flex its not displaying the table data. I have written even the code also in the adobe flex. I have set all the configurations and even set th

  • Installation of J2EE

    Hi there! What do i have to do after installing J2EE edition that i can actually use it? I would like to include classes/packages with import (e.g. javax.ejb.EntityBean). Do i have to copy the files into rt.jar? Regards, Stefan