DNS Alias / Database name

Hi folks!
I have one question, is it possible to create alias name on DNS server for database (instance) name? I have test db on one machine and after migration i want to use alias name which is called test for second database server machine without changing host name locally or in application.
Is thios possible and what to put in tnsnames?
I have already tried but i fails.
I have done :
Created alias name TEST on DNS name and in its description put host name of server, and ping of it went ok
I wanted to test is this working in case of dblink createion and recevie error Error : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
I have put in tnsnames this:
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = TEST)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
If this situation is specific please could you provide me correct entry for my case in tnsnames file?
Thanks!

rootsman wrote:
Hi folks!
I have one question, is it possible to create alias name on DNS server for database (instance) name? I have test db on one machine and after migration i want to use alias name which is called test for second database server machine without changing host name locally or in application.
Is thios possible and what to put in tnsnames?
I have already tried but i fails.
I have done :
Created alias name TEST on DNS name and in its description put host name of server, and ping of it went ok
I wanted to test is this working in case of dblink createion and recevie error Error : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
I have put in tnsnames this:
TEST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = TEST)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = test)
If this situation is specific please could you provide me correct entry for my case in tnsnames file?
Thanks!Just to expand and clarify a bit of what LkrBrn posted ..
In your above TNSNAMES.ORA entry, note the following:
HOST=TEST "TEST" must resolve (via dns or local hosts file) to the ip address of a machine hosting an oracle listener
PORT=1521 means the target machine ('TEST', in your case) must be listening on port 1521
SERVICE_NAME=test means the listener using port 1521 on server 'TEST' must know of a database service called "test"
whereas the entry name ("TEST = ...") can be anything, but that is the name which the client uses to refer to the database to which it wants to connect.

Similar Messages

  • Change from Actual Host Name to a DNS alias

    Here is our current standalone Oracle Application Server 10g configuration:
    Platform
    UNIX Owner = ora10g (all services run from this account)
    Red Hat Enterprise Linux AS release 4
    All services run from this host
    Database version 10.2.0.4.0
    Infrastructure
    Version = 10.1.2.3
    Installation Type Identity Management
    OHome = /ins01_app01/oracle/oraInfra
    UNIX Owner = ora10g
    MiddleTier
    Version = 10.1.2.3
    Installation Type = Business Intelligence and Forms
    OHome = /ins01_app01/oracle/oraMidtier
    Only two mid tier components contain apps we use:
    Discoverer Viewer (integrated with EBS) and OC4J_Portal (for Web Services).
    I’m new at this so please bear with me. I want to change the URL from the actual host name to a DNS alias. For example, the current URL for Discover Viewer:
    https://actualhost.dom.com/discoverer/viewer
    I want to change the URL to use a DNS alias, such as this:
    https://devhost.dom.com/discoverer/viewer
    I have reviewed the following documentation on how I might accomplish this task:
    Oracle® Application Server Administrator's Guide 10g Release 2 (10.1.2)
    Chapter 8 Changing Network Configurations
    8.2.2 Changing the Hostname, Domain Name, or IP Address of a Middle-Tier Installation
    ID 734821.1 - chgiphost.sh Fails with java.lang.UnsatisfiedLinkError Can't find library pass (libpass.so or .so) in
    sun.boot.library.path or java.library.path
    However, there are some questions I want to resolve before proceeding:
    1) Am I on the correct path with section “8.2.2 Changing the Hostname”
    2) How can I confirm the middle-tier instance is registered with Oracle Internet Directory and therefore must supply the orcladmin password during this procedure.
    3) Are there any specific to our installation that I might be missing.
    Thanks,
    Pat

    1. Yes you are on the right track.
    2. You can confirm by going to AS Control Console for Midtier; click on Infrastructure link, among the top left links; and see which OID it points to.
    3. you seem to be having it all.
    AMN

  • SQL1013N  The database alias name or database name "FCS" could not be found

    Hi All,
    Solution manager is running on win2003 server with db2 database.When i m trying to connect db2 from command promt i m getting error.I m following these step.
    1.Loging with db2 user
    2.In command promt when i m tring to check the cfg file getting error.
    DB2 get db cfg for fcs.
    SQL1013N  The database alias name or database name "FCS" could not be found.
    SQLSTATE=42705
    I m pasting the snapshot of of database manager.
    C:\>db2 get snapshot for dbm
                Database Manager Snapshot
    Node name                                      =
    Node type                                      = Enterprise Server Edition with
    local and remote clients
    Instance name                                  = DB2
    Number of database partitions in DB2 instance  = 1
    Database manager status                        = Active
    Product name                                   = DB2 v9.1.600.703
    Service level                                  = s081007 (WR21415)
    Private Sort heap allocated                    = 0
    Private Sort heap high water mark        = 0
    Post threshold sorts                                = Not Collected
    Piped sorts requested                          = 0
    Piped sorts accepted                           = 0
    Start Database Manager timestamp      = 07/29/2010 11:35:25.534766
    Last reset timestamp                           =
    Snapshot timestamp                             = 08/03/2010 18:43:14.492590
    Remote connections to db manager               = 0
    Remote connections executing in db manager     = 0
    Local connections                              = 0
    Local connections executing in db manager      = 0
    Active local databases                         = 0
    High water mark for agents registered          = 2
    High water mark for agents waiting for a token = 0
    Agents registered                              = 2
    Agents waiting for a token                     = 0
    Idle agents                                    = 0
    Committed private Memory (Bytes)               = 11141120
    Switch list for db partition number 0
    Buffer Pool Activity Information  (BUFFERPOOL) = OFF
    Lock Information                        (LOCK) = OFF
    Sorting Information                     (SORT) = OFF
    SQL Statement Information          (STATEMENT) = OFF
    Table Activity Information             (TABLE) = OFF
    Take Timestamp Information         (TIMESTAMP) = ON  07/29/2010 11:35:25.534766
    Unit of Work Information                 (UOW) = OFF
    Agents assigned from pool                      = 2542
    Agents created from empty pool                 = 4
    Agents stolen from another application         = 0
    High water mark for coordinating agents        = 2
    Max agents overflow                            = 0
    Hash joins after heap threshold exceeded       = 0
    Total number of gateway connections            = 0
    Current number of gateway connections          = 0
    Gateway connections waiting for host reply     = 0
    Gateway connections waiting for client request = 0
    Gateway connection pool agents stolen          = 0
    Memory usage for database manager:
        Memory Pool Type                           = Database Monitor Heap
           Current size (bytes)                    = 65536
           High water mark (bytes)                 = 65536
           Configured size (bytes)                 = 327680
        Memory Pool Type                           = Other Memory
           Current size (bytes)                    = 10092544
           High water mark (bytes)                 = 10092544
           Configured size (bytes)                 = 4292870144
    KIndly suggest me where i m getting wrong.
    REgards

    Dear Sir,
           Please check the DB2DART log
    Command line output:
    C:\Users\Administrator.MAXXMOBILEDLH>db2dart db2smn /CHST /WHAT DBBP OFF
                        DB2DART Processing completed with error!
                            Complete DB2DART report found in:
    C:\PROGRAMDATA\IBM\DB2\DB2COPY1\DB2\DART0000\DB2SMN.RPT
    db2smn.rpt:
    Error: Failed sqledosd API on open system database directory.
    SQL1057W  The system database directory is empty.
    Error: This phase encountered an error and did not complete.
                        DB2DART Processing completed with error!
                                      WARNING:                       
                        The inspection phase did not complete!        
                            Complete DB2DART report found in:
    C:\PROGRAMDATA\IBM\DB2\DB2COPY1\DB2\DART0000\DB2SMN.RPT
        _______    D A R T    P R O C E S S I N G    C O M P L E T E    _______"
    Please help me to sort out this issue!!
    Our Solution Manager is down.
    Regards!!!

  • DNS alias name for portal server

    Hi
    I am using sun ONE portal server 6.2. We have added the DNS alias for the hostname in the DNS server for the portal server.
    I have added this alias hostname configuration in
    a. organizational alias name of the amconsole
    b.Have modified the gateway.virtualhost name parameter in the /etc/opt/SUNWps/platform.conf.default file.
    Kindly let me know if I have to add to any other places as we are using SUN ONE webserver, application server, IM server.
    Waiting for your reply
    Best Regards
    Ramkumar Raghavan

    you also might need to add an entry into /opt/SUNWam/lib/AMConfig.properties and add a FQDN entry for your new dns alias.

  • MBAM 2.5 SPN Issue with DNS alias and reporting

    We have one server with administration and monitoring website and self-service portal setup on it. We have another server with the Databases and the reports running on it. When I initially set it up I set it up with a SPN that matched the host name. At this
    point reporting worked.
    We found that HTTP SPN that matches host/FQDN name ibreaks WINRM to the server (powershell remoting).  See this: https://connect.microsoft.com/PowerShell/feedback/details/751307/psremoting-breaks-because-it-used-spn-name-with-class-http-instead-of-using-wsman
    To fix that we created a DNS alias, mbam.ourdomain.com, and created http SPN's for that account mapped to our MBAM ID
    When we did this we initially got stuck even logging on with single sign-on. we made a change to the endpoint address in the web.config and pointed it to the alias -- this resolved that issue.
    However now when trying to open any one of the reports we get the resource can not be found http 404 error.
    Is this fixable by changing something in a config file somewhere or do I need rebuild the servers and reinstall?

    Yes, We set both of those. We also set the delegation for the apppooluser to "trust this user for delegation to any service".<o:p></o:p>
    Today we uninstalled and reinstalled/configured IIS, the Administration and Monitoring website, and the self-service portal.<o:p></o:p>
     We no longer get an error when clicking on one of the 3 reports. Instead it does nothing. If I choose to open it in another tab or window it
    opens an about:blank page.<o:p></o:p>

  • DNS Alias to named instance

    Hi, I have been recommended to create DNS aliases for the sql server instances so it be much more flexible for us to later migrated databases from server/instances to other server/instances... I really like this approach, but my SQL server consist of several
    named intances, one for every service/application. 
    Its easy to create a dns alias for a server name, but is it even possible to create DNS aliases for each named instance?
    And question two, is it possible to run all named instances on port 1433?
    Thanks in advance.

    Its easy to create a dns alias for a server name, but is it even possible to create DNS aliases for each named instance?
    A DNS entry will resolve the host name to an IP address, but the instance name (or port number) will still need to be specified in client connection strings.  This will allow you to move a named instance to a different server without changing client
    connection strings as long as you retain the same instance name (or port number if you use a port number instead of instance name).
    For example, if you have 2 named instances on SERVERA named INSTANCE1 and INSTANCE2, you could create DNS records INSTANCE1.EXAMPLE.COM and INSTANCE2.EXAMPLE.COM both pointing to SERVERA.  The client connection string will still need to specify
    the instance name (e.g. INSTANCE1.EXAMPLE.COM\INSTANCE1 and INSTANCE2.EXAMPLE.COM\INSTANCE2).  That would allow you to move a named instance to different host transparently with only a DNS change (e.g. move INSTANCE1 to SERVERB and change INSTANCE1.EXAMPLE.COM
    to point to SERVERB.
    And question two, is it possible to run all named instances on port 1433?
    No (assuming the same IP address).  Each instance on a host must listen on a different port number.  It is ultimately the IP address and port number that uniquely identify an instance.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Problem using alias field names in a sql query

    Hello,
    I have a question regarding a simple Oracle database SQL query writeup:
    In the following (badly written but properly working) SQL query:
    Query 1:
    select
    soe.field1,
    (soe.field2 + soe.field3) as field4,
    (soe.field5 - (soe.field2 + soe.field3)) as field6,
    (select comp.parValue*soe.field7
    from
    CompTable comp) as parValue,
    (select soe.field8 - (comp.parValue*soe.field7+ soe.field9)
    from
    CompTable comp) as field10
    from
    SomeTable soe
    PROBLEM 1:
    I am re writing the code (soe.field2 + soe.field3) to get the alias field4 or column name field4 that I have created on the fly in the previously for use with the following fields. Can't I rewrite the query as follows. There is something simple missing!
    Query 2:
    select
    soe.field1,
    (soe.field2 + soe.field3) as field4,
    soe.field5 - field4 as field6, <<< field4 does not work here
    (select
    comp.parValue*soe.field7
    from
    CompTable comp) as parValue,
    (select
    soe.field8 - (comp.parValue*soe.field7+ soe.field9)
    from
    CompTable comp) as field10
    from
    SomeTable soe
    PROBLEM 2:
    Similar to the above problem, I was thinking to get a field parValue out of the CompTable table and re-use many times rather than the code shown in Query 1:
    Query 3:
    select
    soe.field1,
    (soe.field2 + soe.field3) as field4,
    soe.field5 - field4 as field6,
    soe.field7* (select comp.parValue from CompTable comp) as parValue1,
    soe.field8 - (parValue1*soe.field7+ soe.field9) as field10      <<<< parvalue1 does not work here
    parValue1*soe.field9 as TaxCondition               <<<< parvalue1 does not work here
    from
    SomeTable soe
    See that the query becomes so simple, but the above query does not work. There is something fundamentally wrong in my usage of the alias field names in creating other fields. The Query1 seems to be the only working option but its very slow as I am redoing and re-writing the whole code again and again to get the parValue field out of the CompTable table for use to create many other fields.
    I will appreciate if you can guide me in the right direction on this issue.
    Thanks and Regards
    Rama

    SELECT tmp.contract_no, tmp.Actual, tmp.Actual - tmp.NbHours
    FROM ( SELECT t.contract_no, sum(l.hrs) AS Actual, (c.labour_hours * c.labour_progress_per) / 100 AS NbHours
    FROM TASK_DELEGATION t
    INNER JOIN COST_CODE c
    ON t.cost_code = c.cost_code AND t.contract_no = c.contract_no AND t.is_inactive=0
    INNER JOIN Labour.dbo.LABOURALLOT l
    ON l.contractNo = c.contract_no AND l.costcode = c.cost_code AND l.pm = 'N'
    GROUP BY t.contract_no, c.labour_hours, c.labour_progress_per
    ) tmp

  • How can i identify the environment name or database name in the PL/SQL code

    Hi,
    I am using UTL_FILE to genearate the files.,
    My problem is, I have to design the common sql file , which can be executed in 2 diffrent environments ( Say QA & DEV ) , with no parameters. It has to identify the environment and based on the environment , it has to generate the concern files.,
    The only change needs to be incorporated is , file names , which will change based on the environment.,
    can nay one tell me , how can i identify the environment name or database name in the PL/SQL code ??
    Raja

    In this case, USEC_GI_DEV.NA.XXXNET.NET is a TNS alias. That alias exists only on the client machine. There is no way to access that information on the database server.
    You would have to find something in the v$database or v$instance table that uniquely identifies the database (and you may need some help from the DBAs to do this because you need to ensure that the data element you choose is compatible with whatever refresh process(es) are used in your environment).
    Now, if you are writing a stand-alone SQL*Plus script, SQL*Plus, as a client tool, does have access to the TNS alias in later versions. But that is a client-side determination, not a server-side determination.
    Justin

  • Views to check the catalog database name from target database.

    Hi,
    Please help me to find view to check the catalog database name which is connected to my target database because I am new to the current environment where I am working now and the previous DBA have done the set up having 2 catalog database. I want view to check from target database, which can show the catalog database name to which it is connected to.
    We can check the catalog database name from the following ways but I want views to check it from target database.
    1.TNSnames.ora
    2.Any backup script connecting to catalog database.
    3.From catalog database we can use rc_database view to check the databases registered with the catalog database.

    Please help me to find view to check the catalog database name which is connected to my target databaseYou can check for any RMAN backup jobs that been scheduled on the server.
    In the scheduled script check rman command.
    You can then identify the database alias (of the catalog db) that is used in the rman backup script.
    Once you have found the database alias, check for the database alias entry in tnsnames.ora file present in your target database server.
    Once the entry is found, you can find the IP address and catalog db name from the tns entry.
    Edited by: st. osh on Nov 22, 2012 11:38 PM

  • Database not found/Error: ORA-16621: database name for ADD DATABASE must be

    I am new to Data Guard and am trying to set up Data Guard Broker. I had created a configuration file with both my primary and standby databases and at one time I could show both databases. But now I can no longer show the standby database nor can I enable, disable or reinstate it. Here is what I have:
    Primary Database: orcl10g
    Standby Database: 10gSB
    DGMGRL> show configuration
    Configuration
    Name: orcl10g
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    orcl10g - Primary database
    10gSB - Physical standby database
    Current status for "orcl10g":
    SUCCESS
    DGMGRL> show database verbose orcl10g
    Database
    Name: orcl10g
    Role: PRIMARY
    Enabled: YES
    Intended State: ONLINE
    Instance(s):
    orcl10g
    Properties:
    InitialConnectIdentifier = 'orcl10g'
    LogXptMode = 'ASYNC'
    Dependency = ''
    DelayMins = '0'
    Binding = 'OPTIONAL'
    MaxFailure = '0'
    MaxConnections = '1'
    ReopenSecs = '300'
    NetTimeout = '180'
    LogShipping = 'ON'
    PreferredApplyInstance = ''
    ApplyInstanceTimeout = '0'
    ApplyParallel = 'AUTO'
    StandbyFileManagement = 'AUTO'
    ArchiveLagTarget = '0'
    LogArchiveMaxProcesses = '30'
    LogArchiveMinSucceedDest = '1'
    DbFileNameConvert = '10gSB, orcl10g'
    LogFileNameConvert = '/oracle/oracle/product/10.2.0/oradata/orcl10g/redo01.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo01.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo02.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo02.log, /oracle/oracle/product/10.2.0/oradata/orcl10g/redo03.log, /oracle/oracle/product/10.2.0/oradata/10gSB/redo03.log'
    FastStartFailoverTarget = ''
    StatusReport = '(monitor)'
    InconsistentProperties = '(monitor)'
    InconsistentLogXptProps = '(monitor)'
    SendQEntries = '(monitor)'
    LogXptStatus = '(monitor)'
    RecvQEntries = '(monitor)'
    HostName = 'remarkable.mammothnetworks.com'
    SidName = 'orcl10g'
    LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521))'
    StandbyArchiveLocation = '/oracle/flash_recovery_area/orcl10g/archivelog'
    AlternateLocation = ''
    LogArchiveTrace = '1024'
    LogArchiveFormat = '%t_%s_%r.arc'
    LatestLog = '(monitor)'
    TopWaitEvents = '(monitor)'
    Current status for "orcl10g":
    SUCCESS
    DGMGRL> show database verbose 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> remove database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> reinstate database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> enable database 10gSB
    Object "10gsb" was not found
    DGMGRL>
    DGMGRL> add database '10gSB' as
    connect identifier is 10gSB
    maintained as physical;Error: ORA-16621: database name for ADD DATABASE must be unique
    Failed.
    How can I get Data Guard to see the standby database correctly again?

    Thank you for the constructive feedback. I have been able to make progress on this issue.
    I did check the Data Guard Log files as you suggested. I did not find anything when I checked them before but this time I found the following:
    DG 2011-06-16-17:23:18 0 2 0 RSM detected log transport problem: log transport for database '10gSB' has the following error.
    DG 2011-06-16-17:23:18 0 2 0 RSM0: HEALTH CHECK ERROR: ORA-16737: the redo transport service for standby database "10gSB" has an error
    DG 2011-06-16-17:23:18 0 2 0 NSV1: Failed to connect to remote database 10gSB. Error is ORA-12514
    DG 2011-06-16-17:23:18 0 2 0 RSM0: Failed to connect to remote database 10gSB. Error is ORA-12514
    DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
    DG 2011-06-16-17:23:18 0 2 753988034 Operation CTL_GET_STATUS cancelled during phase 2, error = ORA-16778
    I verified that I am able to connect to both the primary and standby databases via external connections:
    -bash-3.2$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 17-JUN-2011 12:41:03
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 17-JUN-2011 01:40:30
    Uptime 0 days 11 hr. 0 min. 32 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Listener Log File /oracle/oracle/product/10.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=remarkable.mammothnetworks.com)(PORT=1521)))
    Services Summary...
    Service "10gSB" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "10gSB_DGB" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "10gSB_XPT" has 1 instance(s).
    Instance "10gSB", status READY, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl10g" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10gXDB" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10g_DGB" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    Service "orcl10g_XPT" has 1 instance(s).
    Instance "orcl10g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    -bash-3.2$
    -bash-3.2$
    -bash-3.2$ sqlplus system/dbas4ever@orcl10g
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:41 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> quit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    -bash-3.2$ sqlplus system/dbas4ver@10gSB
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 12:43:59 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress <== I think this is normal since the database is in mount mode
    Enter user-name:
    I also checked the listener log file and did see and error associated with a known bug:
    WARNING: Subscription for node down event still pending
    So I added the following to the listener.ora file and bounced the listener:
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    That seems to have taken care of the error.
    The following is my listener.ora file:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (SID_DESC = ( GLOBAL_DBNAME = 10gsb_DGMGRL.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
    ( SID_NAME = 10gsb )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = orcl10g_DGMGRL.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
    ( SID_NAME = orcl10g )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = orcl10g.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = orcl10g.remarkable.mammothnetworks.com )
    ( SID_NAME = orcl10g )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    (SID_DESC = ( GLOBAL_DBNAME = 10gsb.remarkable.mammothnetworks.com )
    ( SERVICE_NAME = 10gsb.remarkable.mammothnetworks.com )
    ( SID_NAME = 10gsb )
    ( ORACLE_HOME = /oracle/oracle/product/10.2.0/db_1 )
    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
    I again tried connecting externally to the standby database:
    -bash-3.2$ sqlplus system/dbas4ever@10gSB
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Jun 17 13:09:00 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    ERROR:
    ORA-01033: ORACLE initialization or shutdown in progress
    Enter user-name:
    and see this in the listener.log file:
    17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11357)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:10:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11358)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:10:24 * service_update * 10gSB * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25119)) * establish * orcl10g * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=perl)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25120)) * establish * orcl10g * 0
    17-JUN-2011 13:10:30 * (CONNECT_DATA=(SID=orcl10g)(CID=(PROGRAM=emagent)(HOST=localhost.localdomain)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=25121)) * establish * orcl10g * 0
    17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11420)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:11:22 * (CONNECT_DATA=(SERVICE_NAME=10gSB_XPT)(SERVER=dedicated)(CID=(PROGRAM=oracle)(HOST=remarkable.mammothnetworks.com)(USER=oracle))) * (ADDRESS=(PROTOCOL=tcp)(HOST=199.187.124.130)(PORT=11422)) * establish * 10gSB_XPT * 0
    17-JUN-2011 13:11:24 * service_update * 10gSB * 0
    I tried again to see the database in Data Guard Broker:
    DGMGRL> show database 10gSB
    Object "10gsb" was not found
    however, I then was able to add the database in Data Guard Broker:
    DGMGRL> add database 10gSB
    as connect identifier is 10gSB
    maintained as physical;Database "10gsb" added <== this is progress!!!
    However the configuration shows the following:
    DGMGRL> show database 10gSB
    Database
    Name: 10gsb
    Role: PHYSICAL STANDBY
    Enabled: NO
    Intended State: OFFLINE
    Instance(s):
    10gSB
    Current status for "10gsb":
    DISABLED <=====
    So I tried to enable the database:
    DGMGRL> enable database 10gSB
    Error: ORA-16626: failed to enable specified object
    Failed.
    and I tried to reinstate the database:
    DGMGRL> reinstate database 10gSB
    Reinstating database "10gsb", please wait...
    Error: ORA-16653: failed to reinstate database
    Failed.
    Reinstatement of database "10gsb" failed
    So I checked the configuration and now see two entries for the standby database but with case differences:
    DGMGRL> show configuration
    Configuration
    Name: orcl10g
    Enabled: YES
    Protection Mode: MaxPerformance
    Fast-Start Failover: DISABLED
    Databases:
    orcl10g - Primary database
    10gSB - Physical standby database
    10gsb - Physical standby database (disabled)
    Current status for "orcl10g":
    SUCCESS
    Question: How do I get rid of 10gSB and enable 10gsb?

  • DNS Alias not Updating on Communication Channel

    Hi,
    We use DNS Aliases when connecting to some of our servers. One interface connects to a server using FTP with alias FTPServer.
    This FTPServer had a site switch over the weekend and the DNS Alias did not update in the communication channel. I had to ping the DNS Alias and put the server name into the CC to get the FTP to work.
    Is there any way of getting PI 7.1 to refresh the DNS?
    Thanks,
    Gareth

    Check out this intersting blog on aliasing.
    [Controlling DNS caching in the Java Virtual Machine (i.e. J2EE WAS)|Controlling DNS caching in the Java Virtual Machine (i.e. J2EE WAS)]
    I hope it might help
    Regards
    Ramesh

  • Renaming the Oracle10gXE database name

    Hi,
    Oralce10gXe
    Linux Os
    How to rename the database name from 'XE' (default) to for eg. 'TEST' ?
    what are the exact steps for it ?
    Regards

    Hi,
    it is possible to change the SID of XE like any other Oracle edition. The easiest way to do so is to use the nid (newid) utility in $ORACLE_HOME/bin (you shutdown the database cleanly, open in mount state and then execute nid target=sys/password@xe dbname=newSID, then change the dbname in init/spfile, rename the init/spfile to contain the new sid, generate new password file using passwd, and open the database with resetlogs).
    However, I would not recommend renaming the XE database. I did that, and it has been a pain, since our developers changed the hardware several times, wished for new testing and development installations, and I had to play again and again with the changing of default oracle scripts. As with XE, you can run only one XE edition instance on the server (that does not change by renaming it). With that in mind, there are multiple oracle scripts with ORACLE_SID=XE hardcoded in them. Namely the /etc/init.d/oracle-xe, then all the scripts in $ORACLE_HOME/config/scripts related to starting/stopping and backing up the db, not forgetting the oracle_env.sh...
    Having the experience, I would simply recommend leaving the ORACLE_SID=XE, and changing the service_name, or the TNSNAMES.ora alias. That should be sufficient for the developers to "see a pretty name".
    Kind regards,
    Martin

  • Global Database Name

    Hi
    what is the difference between Global database name followed by the domain name of the system and the Global database that itsn't?
    and can I choose one name for ech of Global database name ,sid, and service_name
    to make connection with oracle developer easy after installation?
    Thanks in advance.

    There are differences between global_name, sid and service_name. They may all have the same value, which causes confusion.
    Whether you have the global name followed by the domain name or not it's the same, as long as it is a name that uniquely identifies your database in a network environment. This is a requirement when using replication. You could leave it with or without domain at creation time, you can change it any time, but it is a good practice to have it qualified.
    The SID is the name of an Oracle Instance, i.e. the allocated shared memory plus the background processes, and it is unique within the scope of the OS where your database is running. You can create a connection string that uses the Instance name to connect to the database, but it is considered obsolete, and it was the way to connect to an Oracle database in releases 8.0 and previous.
    Service name is a mean to group applications that get access to the database. It is related with an Oracle Instance. In a single instance environment there is not too much sense from the failover or load balance perspective, it can be interpreted as an alias for the instance and you can still group sessions by service, but in a multiple instance environment, named RAC, it can be used to migrate the service from one instance to another for the purposes of load balancing and failover, as well as for application affinity and resource allocation by means of resource manager.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Can i rename the Global Database Name

    Hi Seniors,
    i have installed the Oracle 10.2.3(10203_vista_w2k8_x86_production_db) in my VISTA Laptop.
    i have given the Global Database Name as orcsatya but i want to change to orasatya
    would u please tell how to proccess if it is.....
    thanks
    Seenujanu

    SeenuJanu wrote:
    yes , i want the name from orcsatya to orasatya of Global Database Name
    is it possible to change the Name or i have to reinstall
    which i would like to access the names like
    connecting scott/sathi@orasatya;
    Thanks in Advance
    Edited by: SeenuJanu on Jun 13, 2009 4:43 AMFor that you don't even need to touch the database. The name you use in your connect string is nothing more than an alias that is resolved (in your tnsnames.ora file) to a specific service name on a specific host. Without touching anything else, you could change your tnsnames entry from something like
    ORASATYA =
    (DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
       (SERVICE_NAME = ORA11)
    )to
    fred =            <=== note that this is the only change from the previous entry
    (DESCRIPTION =
       (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
       (SERVICE_NAME = ORA11)
    )At which point you would connect with
    sql> connect scott/sathi@fred

  • Service name and database name are different.

    Hi,
    I had created a database with name PROD, latter i changed DB name to PRODT as per management request.
    But i notice the following things.
    1. At OS level ORACLE_SID variable is still PROD.(.bash_profile too have this entries)
    2. From sql prompt DB_NAME is PRODT.
    3. In Listener service name is showing PRODT and instance name is PROD.
    can any one please explain me, why oracle is behaving like this.
    Our all the applications are working fine with out any issues till now.
    [oracle@qual ~]$ echo $ORACLE_SID
    PROD
    [oracle@qual ~]$ sqlplus '/ as sysdba'
    SQL*Plus: Release 10.2.0.1.0 - Production on Tue Mar 5 10:35:01 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 608174080 bytes
    Fixed Size 1220868 bytes
    Variable Size 209719036 bytes
    Database Buffers 394264576 bytes
    Redo Buffers 2969600 bytes
    Database mounted.
    Database opened.
    SQL> select name from v$database;
    NAME
    PRODT
    SQL> !lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 05-MAR-2013 10:38:30
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=qual.com)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 05-MAR-2013 10:36:54
    Uptime 0 days 0 hr. 1 min. 35 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u001/app/oracle/product/10.2.0/network/admin/listener.ora
    Listener Log File /u001/app/oracle/product/10.2.0/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qual.com)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PRODT" has 1 instance(s).
    Instance "PROD", status READY, has 2 handler(s) for this service...
    Service "PRODT_XPT" has 1 instance(s).
    Instance "PROD", status READY, has 2 handler(s) for this service...
    The command completed successfully
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@qual ~]$

    Hello,
    I had created a database with name PROD, latter i changed DB name to PRODT as per management request.Using NID ?
    But i notice the following things.
    1. At OS level ORACLE_SID variable is still PROD.(.bash_profile too have this entries)ORACLE_SID is the instance name. Changing DB name does not change the instance name. You can manually change it by creating a new PFILE/SPFILE and Password file for the new instance.
    2. From sql prompt DB_NAME is PRODT.Yes, as you have changed the DB name from PROD to PRODT.
    3. In Listener service name is showing PRODT and instance name is PROD.Database name is PRODT and the instance associated with it is PROD. There can be multiple instances for a single database.
    Regards,
    Shivananda

Maybe you are looking for

  • IPhone battery issue - exchange calendar sync the primary suspect

    I previously posted about very poor battery life and how a full re-install and reset seemed to fix the issue. The battery life was great for a week or so then I tried to go from my calendar on .me to my calendar on exchange. Then the issues re-appear

  • Dock shifts between monitors

    I am running 10.9.2 in at 2 external Apple Cinema (circa 2006) monitors +1 MacBook Pro onboard monitor setup.  One external is connected via Thunderbolt, the other via HDMI.  I have the dock set to be on teh bottom of the onboard monitor.  From time

  • SDK 4.5 Form Component and States

    I have created a s:Form component that will be used throughout my application. But FormItems are displayed depending on specific states of the main application file.  I left the s:states element and its s:State children in the main application and ju

  • How to set uncheck in Bidder check box in T-Code "BBPMAININT"

    Hi All, Could any body help me by providing the information "How to set uncheck in Bidder check box in T-Code "BBPMAININT". I search all the BADI and EXIT but didn't get.     My problem is that, I want to uncheck "BIDDER" check box for Vendor whose a

  • Unable to obtain task sequence from SCCM 2007

    Hi, I have problem to deploy OS to one of my new model laptop due to no NIC driver in boot media CD. When running task sequence wizard, i encounter error " unable to find a valid network adapter driver" and I have google it and get the solution. Howe