How to open oracle listner for three database instances

please help me with following questions
I have 3 database instances
orcl
JIP02T
JIP04T
when i start the oracle database, does it start all 3 instances? when i start the oracle listner, does it start listner for all 3 instances?
when i echo $ORACLE_SID
[ora112@localhost admin]$ echo $ORACLE_SID
orcl
i can only see orcl and oracle listner is started only for one database instance.i can connect to only one database instance usign sql developer how can i start oracle database listner for other database instances as well

ShishirTekadeR wrote:
. oraenv
Note that is "dot" SPACE oraenv
You will be prompted for the value of ORACLE_SID (one of the databases). It looks like this:
oracle:orcl$ . oraenv
ORACLE_SID = [orcl] ? dwsbx
The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u01/app/oracle
oracle:dwsbx$
HIGHLY APPRECIATED U R IMP Tips!!!!!
But it’s very difficult to remember & manually enter oracle SID & HOME details every time after run (. Oraenv)
.profile creation is simple method and no need to remember SID & HOME details.(for multiple DB in one server)You don't have to "remember & manually enter oracle SID & HOME details every time after run " oraenv sets all those details for you. All you have to remember is the name of the instance you want to work with. The same thing you'd have to remember if you if you created (as you suggested) three different "profiles" - actually three different shell scripts, each to set the environment for a specific instance.
Yes, I do place "default" settings in .bash_profile. But with multiple databases the "default" settings are often not going to be what you need so you'll still have to run some process to change them. Either a home-grown script or oraenv. And either way you will have to remember the names of the instances you have to chose from. So in general I see no advantage of reinventing the wheel.
>
>
>
As per user information
He is using different port number for different instanceWhich accomplishes absolutely nothing except extra configuration headaches. It accomplishes nothing for security. It accomplishes nothing for availability.
And also it is very simple method to manage three different DB in three different listener entry (for DB maintenance activity.)Not as easy as managing one default listener. By far the most frequent listener configuration issue I see on this forum is when people try to configure one listener per database.
Single listener in multiple instance (if listener down all DB connection will affect)And why would the listener be down? I've been working full time with Oracle since version 7.3 - somewhere around 1995. I've NEVER seen a listener fall over and die. I have seen many people on this forum whose db connections failed because they were trying (unsucessfully) to configure multiple listeners.
All of my servers are running multiple databases. I have one test server that is running close to a dozen separate databases. One listener. I've NEVER had a situation where I thought to myself, "Gee, it would really help if I had created a separate server for each database"
>
>
Best Regards,
Shishir Tekade.
My Blog: http://shishirtekade.blogspot.com
Edited by: ShishirTekadeR on Dec 27, 2012 10:29 PM
Edited by: ShishirTekadeR on Dec 27, 2012 10:30 PM
Edited by: ShishirTekadeR on Dec 27, 2012 10:31 PM

Similar Messages

  • How to open Oracle OEM?

    Hi,
    I have installed Oracle 10.2.0 in Linux...
    Can anyone help me how to open Oracle Enterprises manager in linux.. any specific command is there?

    check the status of the EM by giving the follwing command. and u can get the URL for accessing the EM also.
    [oracle@db1 ]$ emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.3.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    http://db1:5500/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    Logs are generated in directory /u01/app/oracle/OraHome_1/db1/sysman/log

  • Developer 2000 forms for95/NT won't link my oracle 8i for 98 database, Y?

    hello world,
    It is better to create a sequence of primary keys on a table for
    eventually use for building forms and does it really not matter.
    Secondly, i have oracle8i Personal edition installed in my
    orahome8i area and also did managed to install Developer 2000
    in this same home area but would not run.
    As I could notice, does it really matter if I have installed
    developer 2000 with an older version of SQLplus and whenever i
    try to log into my 8i database, it comes up with a TNS bla bla
    bla not found.
    How do i go about getting my Developer 2000 for win95/NT to hook
    up to an entirely differently installed oracle 8i for win98
    database.
    I have tried removing the key from the registry and deleting
    some bits of my autoexec.bat file but still to no avail.
    Will i be able to download a compatible version or is it just
    about me.
    much appreciation.
    Ayo show

    My guess would be that you still have some remnants of your old "personal" installation, and your new Enterprise installation of 9i is finding the DLL from the old installation.
    Make sure you un-install the old Oracle installation first, and delete all oracle directories for good measure.

  • How to setup Data guard for SAP database?

    Can someone please tell me how to setup data guard for SAP databases?
    Thanks,
    Abhi

    Hi Abhi,
    have a look at OSS 105047 - Support for Oracle functions in the SAP environment you find this under
    14
    Oracle Data Guard
    You can use "Physical Standby".
    You cannot use "Logical Standby".
    You are allowed to use Fast Start Failover (FSFO) but SAP Support is not provided.
    You can use Data Guard Broker.
    You can use Maximum Performance Mode, Maximum Availability Mode and Maximum Protection Mode.
    In the case of Maximum Availability and Maximum Protection, you must pay particular attention to a fast network connection in order to avoid performance problems.
    Maximum Protection causes the primary database to terminate if problems occur in the standby database.
    And here you find on Oracle white paper from 2010 http://www.oracle.com/us/solutions/sap/wp-ora4sap-dataguard11g-303811.pdf
    Perhaps some SAP user have answers for you http://scn.sap.com/community/oracle/content?query=guard
    regards
    Kay

  • How to check the performance of the database instance in oracle apps 11i

    hii everybody,
    i want to know,how to check the performance of the database instance using oracle applications 11i.your help highly appreciated,thanks.

    Pl do not post duplicates - how to check the performance of the server in oracle applications 11i

  • How to create TNS entry for db2 database?

    hi,
    I want to create a db2 database tns entry in tnsname.ora file. How do i create?
    thanks

    There seem to be several related threads about this concern.
    Creating dblink for db2 database
    How to create TNS entry for db2 database?
    How to create TNS entry for db2 database?

  • How to open oracle vm manager???????

    How to open oracle vm manager in oracle vm server ??????
    need GUI to creat guest O/S??????
    Help....
    Thank you

    ps aux | grep oc4j
    root 569 0.0 0.0 4156 676 pts/1 S+ 11:51 0:00 grep oc4j
    root 3653 0.0 0.1 4772 1196 ? S 10:22 0:00 /bin/sh /opt/oc4j/bin/oc4j -start
    root 3655 6.3 14.9 769036 154512 ? Sl 10:22 5:36 /opt/oc4j/java/jdk1.5.0_11/bin/java -XX:PermSize=256m -XX:MaxPermSize=512m -jar /opt/oc4j/j2ee/home/oc4j.jar -config /opt/oc4j/j2ee/home/config/server.xml -userThreads
    root 5121 0.1 2.3 79668 23880 ? S 10:33 0:04 gedit file:///var/log/ovm-manager/oc4j.log

  • Creating the Windows Service for the Database Instance

    Hello, I am using the PeopleTools 8.52 Installation for Oracle documentation and was in Task 6A-2: Creating the Windows Service for the Database Instance.
    After I type in
    oradim -new -sid ORCL -intpwd manager -startmode auto -pfile C:\Oracle\database\initORCL.ora
    I had encountered these errors:
    OPW-00005: File with same name exists - please delete or rename
    DIM-00019: create service error
    O/S-Error: (OS 1073) The specified service already exists.
    Please advise.... Thank you in advance!

    Hi, thank you for your reply!
    After I typed oradim -delete -sid ORCL, it shows this:
    Unable to stop service, OS Error = 1062
    Instance deleted.
    Then, I:
    Set ORACLE_SID=ORCL
    oradim -new -sid ORCL -intpwd manager -startmode auto -pfile C:\Oracle\database\initORCL.ora
    Then, it shows:
    OPW-00005: Files with same name exists - please delete or rename
    Instance created.
    Does it mean no error already and I can proceed?

  • How to configure Oracle Dataguard for Oracle 10g database

    Hi Friends,
    I would like to configuer Oracle Dataguard for my Oracle 10g Database.
    Please provide me the configuration document.(step by step guide)
    Regards,
    DB

    Hi
    Go throw below link. This would be help to configure ODG..,
    http://blogs.oracle.com/AlejandroVargas/2007/09/data_guard_physical_standby_im.html
    http://blogs.oracle.com/AlejandroVargas/2007/10/data_guard_broker_observer_and.html
    Thanks,
    Mayilselvan.S

  • How to get "Oracle Services for MTS" working?

    I've implemented the microsoft code example (see at the bottom) for the use of distributed transactions (with system.transactions and MTS support). The code works fine as long as I use only MS sqlserver.
    Well, I tried one connection to an oracle database and one connection to the sqlserver - and here the trouble starts ;-)
    Oracle doesn't care about the transaction. After the command is executed the changes are made to the oracle database at once (no commit has occured at that point) even if the second command isn't successfull.
    I suppose at the moment that the problem must be something around the interaction between MTS and oracle database, more precisly the oracle Services for MTS.
    I've installed the odp.net client (ODAC1020221.exe).
    The installer tells me that oracle data access components 10.2.0.2.21 and within the Oracle Services for MTS are installed.
    But I cannot find a service with that name in the service list, OracleMTSRecoveryService is listed, but I'm not sure if that's the right one.
    So here are my questions:
    What's the name for 'Oracle Services for MTS' in the services list?
    Do I have to install more than the odp.net client to get the MTS support running?
    Is there a mistake in the code I'm running?
    any help is welcome ...
    thanx in advance!!!
    And here's the code I'm working with:
    [Transaction(TransactionOption.RequiresNew)]
    public class Worker : ServicedComponent
    [AutoComplete]
    public void Test()
    using (TransactionScope scope = new TransactionScope(TransactionScopeOption.RequiresNew, new TimeSpan(0, 5, 0)))
    DbProviderFactory theFactory = DbProviderFactories.GetFactory("Oracle.DataAccess.Client");
    using (DbConnection connection1 = theFactory.CreateConnection())
    try
    connection1.ConnectionString = ".........";
    connection1.Open();
    DbCommand command1 = theFactory.CreateCommand();
    command1.Connection = connection1;
    command1.CommandText = "Insert into user (name, surname,benoid) values ('hans','wurst','32315134512345')";
    object returnValue = command1.ExecuteNonQuery();
    using (SqlConnection connection2 = new SqlConnection("Data Source=localhost;Database=UserManagement;Trusted_Connection=true;"))
    try
    connection2.Open();
    //this command fails
    SqlCommand command2 = new SqlCommand("Insert into uuuu (name, vorname) values ('hans','wurst')", connection2);
    object retValue = command2.ExecuteNonQuery();
    catch (Exception ex)
    return;
    catch (Exception ex)
    return;
    scope.Complete();
    }

    hey what's up you figured out your problem with M$DTC/Oracle 11i with ODP.NET trying to do a TransactionScope?
    I saw your problem - and I ran into the same.
    Re: 10g Express + ODP.NET (version 2.111.6.20) > support TransactionScope?
    Trying to install "Oracle Services for MTS" not sure how but working on it now. Doc looks old however,
    http://www.oracle.com/technology/tech/windows/ora_mts/index.html
    Did you get pass this already?

  • How to open Oracle 11.2.0.4 datafile in 11.2.0.3 binary?

    Hi:
    we are doing Oracle upgrade for our client from 11.2.0.3 to 11.2.0.4.  The client has a request, that after upgrade (database open to user access and new data will be entered by users during that time), they want to switch back to old version of Oracle in 11.2.0.3 AND use new datafile (version=11.2.0.4).  We are now testing this.  Our question is: can we do that? does oracle allow such operation or not?
    The point is the database will be used by client for a few days after DB upgrade(11.2.0.3=>11.2.0.4), and we don't know what type of data they enter, we are not sure if this will damage database SYSTEM file or not.
    Today we tested the following command in out testing environment:
    STARTUP NOMOUNT pfile='path_to_11.2.0.3_initSID.ora';
    ALTER DATABASE MOUNT;
    ALTER DATABASE OPEN; * (*we found out that the command failed, then we run this command):
    ALTER DATBASE  OPEN DOWNGRADE;
    SELECT STATUS FROM V$INSTANCE; ---> (it shows OPEN MIGRATE status).
    So DB is not open!!
    Also we think 2nd solution of
    1.  create new control file at 11.2.0.4 $ORACLE_HOME for latest oradata file,
    2. copy latest 11.2.0.4 redo logs to old oracle_home (11.2.0.3)
    3. open the database by 11.2.0.3
    is the above approach correct or not?  is there any problem of inconsistent SYSTEM file, and will this approach solve it or not?
    thank you very much!

    To go back to old version (without changing compatible parameter), you can perform downgrade.
    Instructions are available at
    How to Downgrade from Database 11.2 to Previous Release (Includes 11.2.0.4 - 11.2.0.1) (Doc ID 883335.1)
    In this case you will having all the data file including the new one.
    But remember database may not be in the same status as before (Before upgrade). it may have invalid objects of higher version after downgrade. 
    Downgrade is applicable only to successfully upgraded databases. In case upgrade faced some issue, do not try downgrade there.
    Your second approach it not correct. Note that each datafile header will have db version. We can not open database in normal mode when header version and binary versions are different.

  • How to configure different listener for each database in 11gR2 RAC

    Hi Friends,
    Current Prod Setup :
    11gR2 (11.2..0.2) RAC on RHEL 5.5 with 3 SCAN Listeners on default 1521 port.
    Having 4 databases which are using SCAN-IP and listening on default port only.
    As per policy, we have to create separate listeners (on different port) for each database.
    like,
    DB1 - 1522
    DB2 - 1523
    DB3 - 1524
    DB4 - 1525
    Even If I configure 4 listeners using NETCA, how my failover & load balancing will happen using SCAN & Newly Created Listeners ???
    Thanks in advance..
    Regards,
    Manish

    Hi,
    I tried on 11gR2 TEST RAC Server to have different listener with different port (1529) for SCAN & Node Listener & tested failover, load-balancing which was successful.
    [oracle@ravish5 admin]$ cat listener.ora
    LISTENER_A=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))) # line added by Agent
    ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_A=ON # line added by Agent
    [oracle@ravish5 admin]$ ps -ef | grep lsnr
    oracle 1985 1 0 00:46 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER -inherit
    oracle 1988 1 0 00:46 ? 00:00:00 /11g_database/11.2.0.2/product/home_1/bin/tnslsnr LISTENER_A -inherit
    oracle 2928 1 0 01:00 ? 00:00:00 /11g_crs/11.2.0.2/product/home/bin/tnslsnr LISTENER_SCAN1 -inherit
    [oracle@ravish5 admin]$ lsnrctl status LISTENER_A
    LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 02-MAY-2012 03:19:35
    Copyright (c) 1991, 2010, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_A)))
    STATUS of the LISTENER
    Alias LISTENER_A
    Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
    Start Date 02-MAY-2012 00:46:42
    Uptime 0 days 2 hr. 32 min. 54 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /11g_database/11.2.0.2/product/home_1/network/admin/listener.ora
    Listener Log File /11g_database/11.2.0.2/diag/tnslsnr/ravish5/listener_a/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER_A)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.5)(PORT=1529)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.3.16)(PORT=1529)))
    Services Summary...
    Service "TEST" has 1 instance(s).
    Instance "TEST2", status READY, has 1 handler(s) for this service...
    Service "TESTXDB" has 1 instance(s).
    Instance "TEST2", status READY, has 1 handler(s) for this service...
    Service "srvc_test.clover.com" has 1 instance(s).
    Instance "TEST2", status READY, has 1 handler(s) for this service...
    The command completed successfully
    SQL> show parameter listen
    NAME TYPE VALUE
    listener_networks string
    local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
    DRESS=(PROTOCOL=TCP)(HOST=192.
    168.3.16)(PORT=1529))))
    remote_listener string ravish-scan:1529
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Data Mining and Real Application Testing options
    [oracle@ravish5 admin]$ srvctl config scan_listener
    SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521,1529
    [oracle@ravish5 admin]$ srvctl config scan
    SCAN name: ravish-scan, Network: 1/192.168.3.0/255.255.255.0/eth0
    SCAN VIP name: scan1, IP: /ravish-scan.clover.com/192.168.3.22
    [oracle@ravish5 admin]$ srvctl config listener
    Name: LISTENER
    Network: 1, Owner: oracle
    Home: <CRS home>
    End points: TCP:1521
    Name: LISTENER_A
    Network: 1, Owner: oracle
    Home: /11g_database/11.2.0.2/product/home_1
    End points: TCP:1529
    [oracle@ravish5 admin]$ srvctl config service -d TEST -s srvc_test.clover.com
    Service name: srvc_test.clover.com
    Service is enabled
    Server pool: TEST_srvc_test.clover.com
    Cardinality: 2
    Disconnect: false
    Service role: PRIMARY
    Management policy: AUTOMATIC
    DTP transaction: false
    AQ HA notifications: true
    Failover type: SELECT
    Failover method: BASIC
    TAF failover retries: 0
    TAF failover delay: 0
    Connection Load Balancing Goal: LONG
    Runtime Load Balancing Goal: NONE
    TAF policy specification: BASIC
    Edition:
    Preferred instances: TEST1,TEST2
    Available instances:
    TEST_NEW =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ravish-scan.clover.com)(PORT = 1529))
    (LOAD_BALANCE = yes)
    (FAILOVER = ON)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = srvc_test.clover.com)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    Actually different ports for different databases are required to have separation of duties. Once Firewall enabled betwen Client & DB Server only privileged users would have access to particular database.
    Regards,
    Manish

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • How to install oracle lite10g for Pocket pc emulator

    hi, i have successfully run the simple gui based applications on emulator and other many applications on pocket pc as well plus the database application on pocket pc as well.]
    but i got the problem in running the database application on emulator.can anybody tell me how i can install oracle lite for emulator or anything else.

    Post your query at 'Oracle Provider for OLE DB' forum, you would probably find more answers there:
    Oracle Provider for OLE DB

  • How to Uninstall oracle services for microsoft transaction server 64 bit

    Dear All ,
    I would like to know  how to Uninstall only oracle services for microsoft transaction server from 11G installtion. I was trying to use "deinstall.bat" but which removes everything from the system. When i use "Oracle Universal Installer" but it doesn't let me do it. I am using Oracle 11G with patch 8 on Windows server 2008.
    Any replies are highly appreciated.
    Thanks

    HI Salman,
    I am doing the following.
    1. I am installing Oracle 10.2.01 Database(Not Client) on my windows Xp laptop. While installation i Choose the custom option and Check the Oracle Windows Interface. In that i check the "Install Oracle Services for Microsoft Transaction server" checkbox. The installation goes on fine till 99% and when it tries to install the
    Oracle Services for Microsoft Transaction server it gives an error saying that "Microsoft Transaction server" was not found on the system.
    I had previously installed the same on my laptop and it was working fine. but after uninstallation when i try to re install i get this problem.
    If i go to the services.msc option in windows i still see the OracleMTSRecoveryService option even when i have uninstalled oracle. But when i try to start the services i get the following error
    Could Not start the OracleMTSRecoveryService on the local computer.
    Error 3: The system cannot find the file specified.
    Any help on how to resolve this issue will be highly appreciated

Maybe you are looking for

  • How to acess headphone-​jack

    I have a Dv9843cl, and for some reason the input jack from some speakers broke so they are stuck in the headphone slot and i can't get it out, can someone help me?

  • Help! Apple ID won't allow update of Apps

    My daughter's iPad will not allow me to update several of her apps. When I try to update them it will not recognize my Apple ID. I can download a new app from the App Store without an issue. I deleted the account and reloaded it without a problem. De

  • Cannot Access USB Hard Disk

    I have a USB hub connected to my airport with a printer and USB hard disk attached. I can see in manual setup in AirPort utility that both the printer and the hard disk are set up and connected. The printer prints wirelessly. My problem is that I can

  • HT4528 I just ordered 2 new iPhones from Verizon.  Can I purchase Apple Care on them?

    I just ordered new iPhones from Verizon. Can I purchase Apple Care on these since I didn't get them directly from Apple?

  • Conditional formatting using OLE in ABAP

    Hello all,    Is it possible to apply conditional format using OLE in ABAP?? for example if the cell value is greater than 10, then make it red... Thanks in advance.. Regards, Maya