One Listener : two Databases in the same system : is it possible ?

Hi,
I am trying to setup a single listener to listen to two Databases running in the same system. We are experimenting a Network Architecture & this is a part of our experiment to see what happens..( most of the documentation I have read point out that running two DBs on a sing le system isn't a good idea..).
One of the Databases is an Oracle Application Server Infrastructure Metadata Respository ( OraInfra ). The other database has been configured for use with Oracle Content Database ( OraContentDB ) .
The two databases are up & running successfully - however, the problem is with the listener. The two listener.ora files are as follows :-
# listener.ora Network Configuration File: C:\oracle\product\10.2.0\OraContentDB\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\oracle\product\10.2.0\OraContentDB)
      (PROGRAM = extproc)
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 152.69.191.100)(PORT = 1522))
  )and
# listener.ora Network Configuration File: C:\OraInfra\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\OraInfra)
      (PROGRAM = extproc)
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 152.69.191.100)(PORT = 1521))
        (ADDRESS = (PROTOCOL = TCP)(HOST = 152.69.191.100)(PORT = 1522))
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
  )However, everytime I try to connect via SQLPLUS, I can only connect via the first Listener. If I try to connect via the second listener, I only get this error :-
SQL> connect scott/tiger@localhost:1522/CONTENTDB
ERROR:
ORA-12541: TNS:no listenerCan anyone shed some light on this ?
Thanks,
Sandeep

Hi,
Thanks to everyone for your time ! Yes, I now have an understanding of the architecture & I am trying to set up my listener...
Paul, I reconfigured my Listener.ora and started it :-
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = C:\OraInfra)
      (PROGRAM = extproc)
    (SID_DESC =
      (GLOBAL_DBNAME = ORAINFRA.idc.oracle.com)
      (ORACLE_HOME = C:\OraInfra)
      (SID_NAME = ORAINFRA)
    (SID_DESC =
      (GLOBAL_DBNAME = CONTENTDB.idc.oracle.com)
      (ORACLE_HOME = C:\oracle\product\10.2.0\OraContentDB)
      (SID_NAME = CONTENTDB)
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 152.69.191.100)(PORT = 1521))
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
  )I started the listener from the command line and this si what I see :-
C:\OraInfra\bin>c:\OraInfra\bin\lsnrctl
LSNRCTL for 32-bit Windows: Version 10.1.0.4.2 - Production on 16-AUG-2006 10:12
:38
Copyright (c) 1991, 2004, Oracle.  All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> start
Starting tnslsnr: please wait...
TNSLSNR for 32-bit Windows: Version 10.1.0.4.2 - Production
System parameter file is C:\OraInfra\network\admin\listener.ora
Log messages written to C:\OraInfra\network\log\listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=152.69.191.100)(PORT=152
1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=152.69.191.100)(PORT=152
1)))
STATUS of the LISTENER
Alias                     LISTENER
Version                   TNSLSNR for 32-bit Windows: Version 10.1.0.4.2 - Produ
ction
Start Date                16-AUG-2006 10:12:45
Uptime                    0 days 0 hr. 0 min. 2 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   C:\OraInfra\network\admin\listener.ora
Listener Log File         C:\OraInfra\network\log\listener.log
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=152.69.191.100)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
Services Summary...
Service "CONTENTDB.idc.oracle.com" has 1 instance(s).
  Instance "CONTENTDB", status UNKNOWN, has 1 handler(s) for this service...
Service "ORAINFRA.idc.oracle.com" has 1 instance(s).
  Instance "ORAINFRA", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
  Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
LSNRCTL>It didn't look suspicious to me I had a peek at the Listener.Log :-
TNSLSNR for 32-bit Windows: Version 10.1.0.4.2 - Production on 16-AUG-2006 10:12:43
Copyright (c) 1991, 2004, Oracle.  All rights reserved.
System parameter file is C:\OraInfra\network\admin\listener.ora
Log messages written to C:\OraInfra\network\log\listener.log
Trace information written to C:\OraInfra\network\trace\listener.trc
Trace level is currently 0
Started with pid=3308
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=152.69.191.100)(PORT=1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))
TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
16-AUG-2006 10:12:45 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=balajsub))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821762)) * status * 0
16-AUG-2006 10:12:46 * service_died * 1183The message "service_died" looked fishy & I tried to conect :-
C:\OraInfra\bin>sqlplus /nolog
SQL*Plus: Release 10.1.0.4.2 - Production on Wed Aug 16 10:18:26 2006
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
SQL> connect scott/[email protected]:1521/ORAINFRA.idc.oracle.com
SQL> Connected
SQL> connect scott/[email protected]:1521/CONTENTDB.idc.oracle.com
ERROR:
ORA-12537: TNS:connection closedI now understand that the Listener is trying to open a connection to the Database - but, I am not sure why the connection dies with with the ORA-12537 error. It looks like the error is somewhere deeper in the TNS Layer...
Can you throw some light on this as well ?
Regards,
Sandeep

Similar Messages

  • Two database with the same sid but different ORACLE_HOME on one host

    two database with the same sid but different
    ORACLE_HOME on one host,and if configure them with
    two differnt lisnter staticaclly,this abosultely work
    because in the lisnter.ora we must provice
    ORACLE_HOME variable,with this ORACLE_HOME the client
    can differentiate which database to connect,but if
    use dynamically register feature,how can the client
    tell which database to connect?

    Also note that this type of configurtion may not be supported.
    Just because a given configuration works in certain given conditions does not mean that it would be supported.
    If this setup is for a configuration that has any value, please also Contact Oracle Support to get their inputs on what you are trying to accomplish.

  • Two databases in the same host.

    Hi Group,
    I have a doupt, It's possible that two databases with the same name, live in the same host, if they have different OracleHomes, and the SO users who were installed with are different? eg.
    SO user: oraqas
    OracleHome1 : /qas/u01/app/oracle/product/9.2.0
    BD: prdsia01
    SO user: oracle
    OracleHome2: /u01/app/oracle/product/9.2.0
    BD: prdsia01
    If not, what do you recommend?
    Thanks a lot

    It's possible that two databases with the same name, live in the same host,
    if they have different OracleHomes, and the SO users who were installed with are different? what is "SO users"?
    what is "BD: prdsia01"
    Yes, two Oracle databases with same ORACLE_SID can reside on same system as same time.
    The only restriction is that only one instance can be online at a time.

  • Can we start more than one user created database at the same time

    Hi.,
    Can we start/work more than one user created database at the same time ??
    --Shyam                                                                                                                                                                                       

    Hi Shyam,
    I really dont understand what you have asked?
    If your question is can we start more than one database at the same time then the answer to that is yes but provided to have enough resources on your server to support running of two or more different databases on the same machine.
    Ex Senior DBA

  • MySQL Database Connection (two databases at the same time)

    I have never had to open more than one MySQL database from within the same website before, but I do now.  The website I have is designed where all the content comes from within the main database.  I am building an Inventory system that I want within it's own database, in the event I would ever need to move the application to another server or something, I don't want this data residing in the main database.
    Currently, I open the database connection from within a file called "common.php" that resides in a directory called "lib" that can be accessed from the root directory.  Below is the proposed code that would be placed within the "common.php" file:
    // Define Database Variables
    $dbserver = "127.0.0.1";
    $dbuser  = array('clevelan_user1', 'clevelan_user2');
    $dbpass  = array('P@ssw0rd', 'P@ssw0rd2');
    $dbname  = array('clevelan_database1', 'clevelan_database2');
    // Start Session
    session_start();
    // Connect to Databases
    connectdb($dbserver, $dbuser[0], $dbpass[0], $dbname[0]);
    connectdb2($dbserver, $dbuser[1], $dbpass[1], $dbname[1]);
    // Database 1 Connection
    function connectdb($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection;
      $connection = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db = @mysql_select_db($dbname, $connection) or die ("could not select databsase");
      return $connection;
    // Database 2 Connection
    function connectdb2($dbserver, $dbuser, $dbpass, $dbname) {
    // connects to db
      global $connection2;
      $connection2 = @mysql_connect($dbserver, $dbuser, $dbpass) or die ("could not connect to server");
      $db2 = @mysql_select_db($dbname, $connection2) or die ("could not select databsase");
      return $connection2;
    //End of Code Within the "common.php"
    From within any page of the website, I want to access both connections by placing an include at the top of each page:
    include_once("lib/common.php");
    Currently, when I run the code above, any page within the website (the home page) provides error messages with regards to database connectivity (the pages are looking for there content from within the second database.  It's as if the second database is the only database seen by the website.
    I need help figuring out how I can have two MySQL databases open at the same time (the second database will only be open for short periods of time and then closed).  But the main database is always open.

    Create one project using one copy of the exact tables.
    create 2 different sessions.xml files each pointing to the same project. Set the login information in the sessions.xml files.
    That should work fine.
    Peter

  • How to load data from one Infobject into another in the same system??

    Hello All,
       i need to load hierarchy data (already existing in 1 Infobject) into another newly created Infobject in the same BW system.Is there a way to do it without involving flat files??
    Thanks soo much in advance
    Regards,
    Priya

    hi
    say there are two infoobjects X  and Y.
    X is existing infoobject and Y in new one.
    go to infosurce-search for X-create export datasource - map the rules and load the data.
    This is one way.
    Other way is u can use X as a reference object of Y so that both of them have same structure and both objects will share common database tables in BW which are exsting for X.
    Hope this helps.
    Kindly assign the points if it helps.

  • Load Data from a table on one server's database, to the same table structure in multiple server databases

    Hi,
    I have a situation where i have to load data from one server/database table to multiple servers/databases.
    Example:
    I need to load data from dbo.TABLE_A  (on Server: Server_A & Database: Database_A)  to the same table on the list of server databases like
    Server: Server_B , Database: Database_B
    Server: Server_C , Database: Database_C
    Server: Server_D , Database: Database_D
    Server: Server_E , Database: Database_E
    Server: Server_F , Database: Database_F
    Server: Server_G , Database: Database_G
    Server: Server_H , Database: Database_H
    so on and so forth on 250 such server database combinations.
    The table structure is the same on all the servers.
    If i make the source or destination dynamic, it throws an error while mapping ?
    I cannot get Linked server permissions and SQL Server Config thing doesn't work as well.
    Please suggest on how to load data from one source to multiple server/databases.
    Thank you.

    I just need to transfer one table's data. its like i have to use a query to pick data for
    the most recent data. So i use something like, select A, B, C, D from dbo.table where ETL_TIMESTAMP > (the max(etltimestamp) in the destination on different server). There are no foreign key relationships and the data should not be truncated. it just had
    to append the new records.

  • Two cameras on the same system

    Hi guys, can anyone shed any light on how easy it is to watch my daughters nursery on my powerbook pro whilst sat in the next room on my G5. For some reason i cannot connect, is it because of the same account / address details?
    Thanks,
    Dan

      Hello Dan.... whilst sat in the next room ... same account / address details ...I do not understand this part of your question (or perhaps the title of your question.)
    Rather than two cameras on one Mac, your question seems to me to be how to do two different jobs on two different Macs: surveillance on your PowerBook and a different job on your G5.
    For your surveillance needs, you may be able to use a long Firewire cable from iSight to your PowerBook in another room. Doing this will allow you to use the preview window of iChat AV to "watch" your nursery without even being "logged in."
    Alternatively, you could use some kind of software on your PowerBook like that linked in the "iSight as a surveillance or Nanny cam" section of Some Applications You Can Use With iSight. That would allow doing the surveillance job with your PB while running other software to do other things with your G5.
    If you want to send iChat AV pictures from your PowerBook to your G5, you will either need separate Buddy or Jabber accounts for each computer or a Bonjour (Rendezvous if you use OS X 10.3.9) connection on your local network (if your Macs share a router connection.)
    If you are new to iSight, you might get some help from Using iSight.
    If you have other questions after reviewing the above, post back as specifically as you can about your Macs, OSs, and your question, and we will be happy to try to provide more specific suggestions.
    Jim

  • Two messengers at the same time. A possibility?

    Hey gang
    I have a question... I have my regular MSN, but I also have one for my business, and I would like them both to be online at the same time... The MSN Messenger I have feature a window for "personal contacts" and one named "Company account" so I thought that was perfect. Unfortunately, I cannot sign in on the one named "Company account", even though the MSN I have created works fine in the "personal contacts" window...
    Any suggestions?

    I don't use messenger much, but in iChat, when I log in with my other computer, a message appears asking if I approve multiple log ins. Possibly there's a messenger setting somewhere that permits the same?

  • Aperture in two machines sharing the same library... possible?

    I want to have one library which I could share between two machines (Ive got an iMac and a MBP). But I'd like to keep the library in iMac and access it on MBP over the network. I don't need use it simultaneously, but I don't want to use an external drive for it either... Any ideas? Thanks

    Ian, and others,
    I am maintaining multiple boot volumes on my Mac Pro, with the primary ones being one for Tiger and one for Leopard. At the moment I am separately maintaining Photoshop CS3 and Final Cut Studio on each of those. I have recently installed Aperture on that Leopard boot. I now plan to establish another Leopard boot (using a WD 750 GB drive), primarily for the pro apps such as PS CS3, Aperture and Final Cut Studio 2 (an upgrade) while maintaining FCS 1 on the other boot drive. With FCP, the projects and voluminous files are of course maintained on drives other than the boot volumes, and thus FCP, for example, can use those files whether I am in the Tiger boot, or the Leopard boot.
    I have been wanting to fire up Aperture while in the Tiger boot, to test some odd printing behavior, but don't want to create another Aperture Library (which is not yet populated to any real extent) just to do the test. Also, I would like to administer the Aperture Library from the planned new Leopard boot, but not create separate libraries if I should wish to use Aperture while in other boot volumes.
    It seems clear (but I could be wrong) that this can be done, but is it advisable? Practical? Obviously, with the separate boots, I would never be using Aperture from but one "computer".
    Ernie

  • Time Machine fail on only one of two Macs on the same Time Capsule

    I have two computers connected to a Time Capsule, one Macbook (13'', 2.1 GHz) and one Macbook Pro (17'', 2.66 GHz).
    For the past four days, the Time Machine has been failing on my Macbook, while the Macbook Pro works perfect. I get the following error message:
    "Unable to complete backup. An error occurred while copying files to the backup volume."
    I can access Time Machine backups as recent as 7/30/2010.
    Troubleshooting done (in order of trial):
    - Removed any files from Time Capsule other than backups (I previously stored music and movies that I never used there)
    - Restarted MacBook
    - Restarted Time Capsule
    - Used Disk Utility to Repair Disk - no errors found
    - Deleted com.apple.TimeMachine.plist
    Any suggestions?
    Thanks...

    abelmann wrote:
    Update:
    TM successfully backed up on an external HD.
    Well, that's odd. It certainly looked like something was wrong with that system database.
    Any suggestions? Can I erase only the failing backup from the TC?
    You can open the disk image and delete the "in.Progress" file. That's a "last resort" sort of thing. Connect via Ethernet if at all possible. Double-click the sparse bundle to mount it, then double-click the disk image inside it. There you'll find a single Backups.backupdb folder, containing a single folder with the computer name. Inside that will be a folder for each backup, plus the "in.Progress" file (actually a "package.") That may take a while, and I'm not sure it will fix the problem. Then repair the sparse bundle, by dragging it into Disk Utility's sidebar, per #A5 in Time Machine - Troubleshooting.
    Or, you can delete all that Mac's backups, but it will take a while and/or be rather tedious. See the last point and/or the blue box in #Q5 of Using Time Machine with a Time Capsule (or use the link in *User Tips* at the top of this forum).
    And again - thank you for being somewhat of a personal helpdesk!
    You're entirely welcome -- that's what these forums are for!

  • Install two oracle8i database on the same machine

    Hi
    I am currently running oracle 8i on hp unix 11i.
    I would like to ask whether I could run another instance(another oracle 8i database ) on the same machine.
    In another word can I run two database on the same machine?
    Is there any implication by doing so?
    Thanks in advance

    Hi
    I am currently running oracle 8i on hp unix 11i.
    I would like to ask whether I could run another instance(another oracle 8i database ) on the same machine.
    In another word can I run two database on the same machine?
    Is there any implication by doing so?
    Thanks in advance Hi,
    You can create multiple databases on the same machine, if you have sufficient resources.

  • Standalone oc4j and oracle 9i database on the same windows xp machine

    I m trying to deploy my j2ee application in my local system using standalone oc4j container(Oracle Containers for J2EE 10g (10.1.3.1)).To configure OC4j,I had to mention ORACLE_HOME=d:\oc4j as a user defined env variable.after that the oc4j started running normally.then i installed oracle 9i database in the same system to use it as the database for the application.During installation it prompts that ORACLE_HOME is alredady set.However the installation completes successfully.But when i try opening sql plus,it throws and error asking to check oracle_home.Its only after changing oracle home to d:\oracle,that sql plus opened and i could log in to it.But after that oc4j would not run saying it cannot find relevant files.Is it not possible to have standalone oc4j and a database for a J2ee application on the same system.if its possible,how can we go ahead?Thanks in advance

    user549113,
    Problem with ORACLE_HOME has been discussed several times already in this forum. I suggest you search the forum archives for "ORACLE_HOME".
    Good Luck,
    Avi.

  • How to use the TableSorter for two tables at the same view?

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
    I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...

    Hi Roy,
    Constructor of TableSorter
    public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
    So, you have to create instance of TableSorter class for each table on the view.
    best regards, Maksim Rashchynski.

  • Two different Routers and same subnet, is it possible?

    Hi i have been presented with a problem that a friend of mine is having.
    There is two different Cisco routers on different location.
    example:
    router1 : 10.8.10.1 (has DHCP/FTP server)
    router2 : 10.8.12.1 (needs to talk to DHCP/FTP server on router1)
    the router2 has different ip configured but is it possible to change this to the same subnet as router 1? like 10.8.10.4?
    The DHCP/FTP server have been defined with scope 10.8.12.0 and on the Cisco switch on router2 its been configured (ip helper address DHCP-IP)
    this works, the clients connected to router2 gets ip from DHCP server ,but there is no FTP traffic.
    i figure its because the DHCP/FTP server doesent understand the other IP, so if its possible to setup a kind of mulitVPN to get the same subnet on router2 as router1 the FTP server can "see" the other router2 because it has the same subnet and ip range.
    Thank you for any experience, i really stuck on this one

    John,
    to simply put it having two routers on the same subnet is not possible as the purpose of a router is to route traffic between DIFFERENT networks. In order to accomplish this you will need routers and switches that understand VLANs and VLAN tagging.
    Hope this Helps
    Blake Wright
    Cisco SBSC Network Engineer

Maybe you are looking for