Two instances onone database

Hi All,
I created a second instance on my test database, but having few problems. Here are steps I've done.
1. change tnsname.ora
VIET3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mytest.xxx.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = viet2.mytest.xxx.com)
(INSTANCE_NAME = viet3)
VIET2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mytest.xxx.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = viet2.mytest.xxx.com)
(INSTANCE_NAME = viet2)
2.changed listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mytest.xxx.com)(PORT = 1521))
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = VIET2)
(ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
(SID_NAME = VIET2)
(SID_DESC =
(GLOBAL_DBNAME = VIET2)
(ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
(SID_NAME = VIET3)
#### instance VIET2 and VIET3 have the same service name 'viet2.mytest.xxx.com' ###
3. connect to DB using instance VIET2
#export ORACLE_SID=viet2
#env |grep ORACLE
ORACLE_SID=viet2
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
# sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Mar 25 17:09:59 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
#### This looks great, it is connected to DB
4. connect to DB using second instance viet3
#export ORACLE_SID=viet3
#env |grep ORACLE
ORACLE_SID=viet3
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
#sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Mar 25 17:12:26 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to an idle instance.
### Here is a problem, It is not connect to service that instance 'viet2' connect to. Does anyone has any idea?
Thanks very much,

user7723338 wrote:
Hi All,
I created a second instance on my test database, but having few problems. Here are steps I've done.
1. change tnsname.ora
VIET3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mytest.xxx.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = viet2.mytest.xxx.com)
(INSTANCE_NAME = viet3)
VIET2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mytest.xxx.com)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = viet2.mytest.xxx.com)
(INSTANCE_NAME = viet2)
2.changed listener.ora
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = mytest.xxx.com)(PORT = 1521))
SID_LIST_LISTENER =
(SID_DESC =
(GLOBAL_DBNAME = VIET2)
(ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
(SID_NAME = VIET2)
(SID_DESC =
(GLOBAL_DBNAME = VIET2)
(ORACLE_HOME = /u01/app/oracle/product/11.1.0/db_1)
(SID_NAME = VIET3)
#### instance VIET2 and VIET3 have the same service name 'viet2.mytest.xxx.com' ###
3. connect to DB using instance VIET2
#export ORACLE_SID=viet2
#env |grep ORACLE
ORACLE_SID=viet2
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
# sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Mar 25 17:09:59 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
#### This looks great, it is connected to DB
4. connect to DB using second instance viet3
#export ORACLE_SID=viet3
#env |grep ORACLE
ORACLE_SID=viet3
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
#sqlplus / as sysdba
SQL*Plus: Release 11.1.0.6.0 - Production on Wed Mar 25 17:12:26 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Connected to an idle instance.
### Here is a problem, It is not connect to service that instance 'viet2' connect to. Does anyone has any idea?
Thanks very much,You didn't create a second instance on the db .. that would have been a RAC setup. All you did was create a second entry in tnsnames .... a second name by which to reference your only instance.

Similar Messages

  • Restore Database in Two Instances

    Good Morning,
    Hi people,
    I have one server with two instances.
    I need to restore one by media LTO Solstice 6.0. How steps for this?
    I study about this and i am not sure, but i believe to alter 2 files after restore TNSNAMES.ORA and Listerner.ORA...
    Thanks a lot
    Denis
    Version 10.2
    Brazil

    user10989391 wrote:
    Good Morning,
    Hi people,
    I have one server with two instances.
    I need to restore one by media LTO Solstice 6.0. How steps for this?
    I study about this and i am not sure, but i believe to alter 2 files after restore TNSNAMES.ORA and Listerner.ORA...
    How do you have two instances for one server? Do you mean two different databases running? If yes, what you want to do exactly? I am not sure that I do understand what's your end requirement exactly! So can you elaborate over it please?
    Aman....

  • BI server generating  query in a different way between two instances

    Hi All,
    We have executed a report in dev,test instances,BI server generated query in a different way in two instances where as dev BI server is on AIX operating system(recently we migrated from windows),test instance is on still on Windows environment.
    For a report below are the queries
    DEV(AIX)
    WITH
    SAWITH0 AS (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end )
    select distinct SAWITH0.c2 as c1,
    SAWITH0.c3 as c2,
    SAWITH0.c4 as c3,
    SAWITH0.c5 as c4,
    SAWITH0.c5 as c5,
    SAWITH0.c6 as c6,
    SAWITH0.c7 as c7,
    SAWITH0.c1 as c8
    from
    SAWITH0
    order by c1, c6
    Test(Windows)
    select distinct D1.c2 as c1,
    D1.c3 as c2,
    D1.c4 as c3,
    D1.c5 as c4,
    D1.c5 as c5,
    D1.c6 as c6,
    D1.c7 as c7,
    D1.c1 as c8
    from
    (select sum(T316025.SALES_QUOTA) as c1,
    T329697.DIVISION_DESC as c2,
    T329697.AREA_DESC as c3,
    T329697.TERRITORY_DESC as c4,
    case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end as c5,
    T150993.X_CONS_MAJOR_GROUP as c6,
    T66755.PER_NAME_ENT_YEAR as c7
    from
    W_DAY_D T66755 /* Dim_W_DAY_D_Common */ ,
    W_PRODUCT_D T67704 /* Dim_W_PRODUCT_D */ ,
    WC_SLX_DATA_F T316025 /* Fact_WC_SLX_DATA_F */ ,
    WC_CUSTOMER_HIERARCHY_D T329697 /* Dim_WC_Customer_Hierarchy_D_With_Error */ ,
    OBIEE_SECURITY_LOCATION_SALES T339204,
    W_PROD_CAT_DH T150993 /* Dim_W_PROD_CAT_DH_General */
    where ( T66755.ROW_WID = T316025.DAY_WID and T316025.CUSTOMER_HIERARCHY_WID = T329697.ROW_WID and T67704.ROW_WID = T316025.PRODUCT_WID and T67704.PROD_CAT2_WID = T150993.ROW_WID and T329697.TERRITORY_CODE = nvl(T339204.LOCATION , T329697.TERRITORY_CODE) and T329697.AREA_DESC = 'GROCERY AREA - EAST' and T329697.DIVISION_DESC = 'DOMESTIC SALES DIVISION' and T339204.USER_NAME = upper('Administrator') and case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end = 'JETRO CASH AND CARRY ENTERPRISES INC(10313)' and (T66755.PER_NAME_ENT_YEAR in ('2011', '2012')) and (T329697.TERRITORY_DESC in ('BOSTON', 'CHARLOTTE', 'FLORIDA', 'GREAT LAKES', 'MID-SOUTH', 'NEW YORK', 'WHITE ROSE')) )
    group by T66755.PER_NAME_ENT_YEAR, T150993.X_CONS_MAJOR_GROUP, T329697.TERRITORY_DESC, T329697.AREA_DESC, T329697.DIVISION_DESC, case when T329697.ACCOUNT_NUM is null then T329697.BILL_TO_PARTY_NAME else concat(concat(concat(T329697.BILL_TO_PARTY_NAME, '('), T329697.ACCOUNT_NUM), ')') end
    ) D1
    order by c1, c6
    If we observe test query is very simple and easy to back track but in Dev it is appending like sawwith0,sawwith1 etc..looking difficult.
    Is there in any configuration to change to generate query like Test(with out SAWWITH0).
    NOTE:Any how results are same in both instances.
    Please help me to resolve this issue.
    Thank You,
    Anil Kumar.

    Anil,
    Are your database settings the same in both of the rpds dev and test?
    Check wether you didn't change anything to the default. Open your RDP double click on the Database in the physical layer and go to Feature you can check all the settings there
    Adil

  • How to install two instance on one server

    Dear Guru,
    I want to install two instance on one server.
    I have installed IDES server ( win 2k3 64 bit with SQL 2005 ECC 6.0)
    Drive is
    c: 20 GB for os
    d: 5 gb swap
    e: 5 gb  swap
    f: 450 GB database.
    The same server i want to  installed SOLMAN 4.0 with sql 2005.
    Please suggest me how to installed without affcting IDES server.
    Amol

    Hi,
    You only have to consider 2 things :
    1. SAPTRANSHOST entry in hosts file will be the same for both systems
    this mean that both systems will share the same transport directory
    Regards,
    Wojtek
    This is not true.  Your SAPTRANSHOST will remain the same, but you can (and should) specify independent trans directories with the DIR_TRANS and and EPS profile parameters to designate where the instance trans files should be located (i.e. /usr/sap/trans_SID).  I recommend you make this change in the existing host first, and then clear out the trans directory.  Let the 2nd instance install into it and then alter that one too (thereby moving the files to the new /usr/sap/trans_SID2).
    Edited by: David Ingersoll on Jan 31, 2008 3:12 PM

  • Two instances same name and diferent homes

    Hi everyone,=
    I already read this interesting post:
    Creating two instances of same name in a single ORACLE_HOME ?
    After reading it I have the following question:
    Can this apply using the same ASM Instance but with diferent disk groups for each database?
    I'm thinking in this following configuration:
    ORACLE_HOME1 => 11.2.0.1
    GRID_HOME1 => 11.2.0.1
    DISK GROUP 1, DISK GROUP 2 for DB1 in ASM
    ORACLE_HOME2 => 11.2.0.3
    DISK GROUP 3, DISK GROUP 4 for DB1 in ASM
    Both databases using the same ASM instance but diferent disk groups.
    Could this be posible?
    Thanks in advance!
    johnxjean

    Thanks Balazs Papp for your quick response.
    In the scenario there is only one ASM instance and there are two databases DB1 and DB1 (same name) maybe I'am trying to upgrade or simply restoring with RMAN an old backup for DB1 from ORACLE_HOME1 in ORACLE_HOME2 with the same oracle version or later.
    Now, in the original post unix can create processes for instances with the same name but with distinct ORACLE_HOMEs.
    So, can ASM serve two databases with the same name, using the same ORACLE_SID but diferent ORACLE_HOMES? or Is this only posible using only filesystems?
    Thanks in advance.
    johnxjean

  • Two Instances of Oracle Application Server 10.1.3.x using the same DB

    I can't seem to find any documentation about installing two instances of Oracle Application Server 10.1.3.x using the same database.
    Would the two instances conflict? Should I create a separate database for each instance? I am attempting to cluster two application servers and I want to know if I will need multiple databases, I can't see a reason why this would be a problem.
    Any advice on this matter would be appreciated.

    You have probably downloaded the wrong version.
    Do not download the Oracle SOA Suite 10g (10.1.3.5.1) for WebLogic Server (10.3.1),
    but the one below that option: Oracle SOA Suite 10g (10.1.3.x)
    See if you get something like the following zip file: soa_windows_x86_101310_disk1.zip
    This is just the OC4J without the WebLogic Server.

  • Not able to keep two OEM ( 11g) Database Console open at the same time.

    Hi Gurus,
    I am running into issues when I try to keep two instances ( TEST and PROD) of Oracle 11g on the same server open in OEM Database Console.
    The issue is when i try to loginto the 2nd OEM database control page on a new tab of internet Explorer ( when the Ist DB console is open in another tab), it close the first one and open the 2nd instance.
    Also trying opening two seperate IE sessions ( without tabs) , still its logs out the Ist instance.
    Any idea why this is happening and How could I have both the OEM DB consoles open at the same time. please advice
    Thanks
    Sheik

    Sheik,
    There are two types of Database Enterprise Managers, one is Database Control(free tool) and another is Grid Control(paid tool). The one that you are using is a free tool with the limitation that at one time, there can be only one database which can be managed by it. For each database managed by DBC, there is a different port number assigned and only when you use DBC at that specific port number, you can manage the said database. You can check the initially assigned port numbers for the databases in the file *$OH/install/portliist.ini*. You can have a read about about it over here,
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28301/em_manage002.htm#sthref97
    The Grid control can manage all the databases under one window only but its a paid version of EM so it can't be used without a proper license.
    HTH
    Aman....

  • Which config. will be best. 1 instance & two schemas. Two instances

    I have a database with 8GB memory and 4 750GHz processors.
    1. One instance and two schemas (one production and one test, both are identical).
    2. Two instances with one schema each.(One Production and one test. both are identical).
    A 4GB SGA will be enough for production environment if that instance is stand alone. (approximately 100/120 users).
    Test env. doesn't need that much SGA and may have only 10 users maximum.
    Please tell me some advantages and disadvantages of both.
    Will Oracle grab more memory from the system beyond SGA when there are more users connected to the database?
    Thanks,
    Paul

    In your case, I would recommend 2 seperate instances for production and test (actually I would recommend seperate machines, but that is a $ issue). I would recommend this, because it will allow you to create both shemas identically, making test and migration simple. In addition, an OOPS won't affect your production instance. Connected user definatly use memory outside the SGA (connection overhead, sort_area_size UGA/PGA etc).

  • Two Instances or Two Projects & Albums Trees?

    I've just migrated 30K photos from iPhoto to Aperture. The number of projects is insane and I have a taxonomy in mind to clean it up; Aperture will make it simple to categorize my photos for visual scanning. What's a challenge, however, is the endless vertical scrolling and dragging multiple project selections up and down the Projects & Albums tree in order to move or consolidate projects into folders.
    What I want is to either open two instances of Aperture (ok, I know I'm using a Mac and this shouldn't be necessary) or to open two Projects & Albums trees so I can drag and drop one or more projects from instance 1/tree 1 to instance 2/tree 2.
    Any ideas?

    If Frank's good idea works, use it. I tried it that way and could not get it to work, but that might have been an update or two previous.
    What I ended up doing was using a combination of
    - newly created top-level Folders as holding bins
    - labeling Projects with unique tags for searching (e.g: "{space}XXX")
    - judicious use of the Library search feature (search for " XXX"
    - using "Mark as Favorite" and then filtering to Favorites (then select and move, then select whole Library and "Remove from Favorites" to clear this grouping)
    With a little bit of planning, these tools will let you organize your Library systematically and without too much senseless effort.
    What I would love to see is an interaction between Projects View and the Library Inspector. One should be able to move Projects between Folders in the Projects view, and also by dragging to the Inspector.
    Important: moving thousands of Projects is one of the most processor-intensive things you can dump on the database. Expect Aperture to take hours or even a day to finish updating all the information. +Do not force-quit Aperture+. Let it run, unmolested, until it finishes.
    IME, the effort is well worth it. Good Luck.
    Message was edited by: Kirby Krieger

  • Copying SDO_GEOMETRY between two instances

    have two oracle instances on separate servers:
    Server 1 Oracle 10.2 Solaris
    Server 2 Oracle 9.2 Solaris
    In each instance I have a Schema called GEO_DATA with a Table called ROADS. This is a very simple table; id (number), road_name(varchar2) and geometry (sdo_geometry)
    The ROADS table in Server 1 will get updated during the day. What is the best way to move data from Server 1 to Server 2? Server 2 ROADS is just read-only and will be used for data viewing.
    I am very new to Oracle Spatial – so apologies for the basic question:
    Can I just create a database link between the two instances and then run a simple SQL query:
    Insert into Server 2.GEO_DATA.ROADS Select * from Server 1.GEO_DATA.ROADS
    Feedback appreciated.

    Hello Ivan,
    I just read this: Copy spatial data
    I need to copy spatial data from a 8.1.6 (remote) to 8.1.7 (local). I tried the "CREATE DATABASE LINK" statement and got the error ORA-22804 (remote operations not permitted on object tables or user-defined type columns).
    Is this still true in Oracle 9 and 10?

  • Two instances on the same server

    I've already created one instance on 11g R2 database, but I was told to create another instance on the same server. Can I use the same listener for both instance? Will it cause any problem?
    Thanks!
    - Johnny

    tanww888 wrote:
    Thanks for all your responses. I have not dealt with two instances on the same server before. I'll take your advice to start with the same listener for both instances and see if it is causing any issue. My database server is a Oracle Sparc 5120 with plenty of memory and disk space. The second instance that I'm going to create will be much smaller than the first one.
    Single or multiple listeners aren't really a factor for performance. Notice that even in Dan's remarks, none of his reasons for multiple listeners had anything to do with performance.
    Question, is it easy to create/configure the second listener to point to the second instance? Just in case there is an issue using the same instance.
    The listener doesn't "point to" the database - not in the sense you seem to think. It simply watches the ports it is configured to use (1521 by default) for connection requests from clients. When it gets a request it evaluates whether or not it knows about the service (instance) requested, and if it does it spawns a separate server processes to communicate between the client and the db instance, then is out of the way. The listener creates the connection but does not sustain it. You can stop a listener and all existing connection will continue because the listener has no part in maintaining them.
    Multiple listeners would be configured by adding LISTENER sections to the listener.ora file. You might find it instructive to realize that if there is no listener.ora, a 'lsnrctl start' will cause a default named listener to start on the default port of 1521. By default, any db instances on that server will register themselves with the default listener on the default port. After this self-registration, the listener will know about the instance if/when it receives any connection requests for it. Let's switch from the telephone analogy to that of a desk clerk at a hotel. He comes to work and is handed a piece of paper that says "We have Tom, Dick, and Harry registered as guests" This would be analogous to the listener learning of instances via the SID_LIST section of the listener.ora file. Then Fred walks up and says "I'm Fred and I'm in room 238", so the clerk makes a note of that. This would be analogous to the instance registering itself to the listener. Either way, then someone walks up and says "Where would I find Tom (or Fred)". The clerks checks his lists and directs the person to the correct room. He doesn't escort the person around to Tom and act as a go-between for their conversation. And hotel management doesn't want to have to pay a separate clerk for each guest.
    You might want to read my articles about TNS in general at edstevensdba.wordpress.com. I think they will help you get a clearer understanding.
    Thanks,
    - Johnny

  • Simple and maybe stupid question when you have two instances

    Just a simple question, I was just wondering how to create user account on the local machine when you run two instances of oracle.For example all the commands I use to start and stop the database use the variables stored in the oracle user bash_profile.
    But do I have to create another user to manage the other instance because it should use another bash_profile with a different oracle_sid?

    Linux and Unix installations of Oracle are kind-a funny. At the end of te installation is a request to run 'root.sh'. That does a few things: set up permissions and ownerships correctly; copy some scripts into the specified directory (default /usr/local/bin).
    If you were to look at /usr/local/bin, you would notice a few files, typically with names "dbhome.sh, oraenv.sh, oraenv.csh". These are designed to set up the PATH, the ORACLE_HOME and the ORACLE_SID correctly, based on user response and information in the oratab file - which is /etc/oratab in Linux. (I always ensure there to link oraenv.sh as oraenv)
    Longer story shortened:
    Assume you use(d) dbca to create the instances. Then you can source the oraenv.sh to set up the environment:
    pop2@fuzzy:~> . oraenv.sh
    [pop2]? orcl
    pop2@fuzzy:~> env | grep -i ora
    ORACLE_SID=orcl
    PATH=/opt/oracle/product/10.2.0/server/bin:/home/pop2/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
    ORACLE_HOME=/opt/oracle/product/10.2.0/serverThat way you can switch to any known environment simply by sourcing oraenv and telling it which SID you want. It extracts the info from /etc/oratab.
    You can tell oraenv to shut up by setting ORAENV_ASK to 'NO' and setting the ORACLE_SID variable before sourcing oraenv. This is useful in .profile - for example my /etc/profile contains the followig:
    export ORACLE_SID=XE
    ORAENV_ASK=NO
    . oraenv

  • EM for two instances

    hello gurus,
    could somebody explain me, please, how to run the EM, where are two instances? I mean, what i have to do to switch EM between two instances?
    sorry, if this is a stupid question, i'm only the beginner.
    thank you again.
    M

    thank you, Mohammad Taj, i surmised that there must be a way without using the grid, but tried to install it anyway.
    and now, that is the error, that arises in the middle of installation, on the Specify Repository Configuration step:
    "Exception occured while connecting to database. Please check the connection details of the database you specified and retry. Bad packet type."
    the "Prefill tablespace locations" button doesn't work also. i'm absolutely sure about the specified details (database hostname, port, service/SID, syspassword), but still can't advance.
    BTW, thank you again, both OEM work fine on one machine^
    C:\Documents and Settings\Dmitry>set ORACLE_SID=catalog
    C:\Documents and Settings\Dmitry>emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    http://DIGHOME:5501/em/console/aboutApplication
    Starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsolecatalog service is starting..
    The OracleDBConsolecatalog service was started successfully.
    C:\Documents and Settings\Dmitry>set ORACLE_SID=recovery
    C:\Documents and Settings\Dmitry>emctl status dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.2.0
    Copyright (c) 1996, 2004 Oracle Corporation. All rights reserved.
    http://DIGHOME:5500/em/console/aboutApplication
    Oracle Enterprise Manager 10g is running.
    Logs are generated in directory C:\oracle\product\10.1.0\db_1/DIGHOME_recovery/sysman/log
    thank you again.
    Maria.

  • Two instances of Firefox open when I click on a link within my email client. How can I stop this from happening?

    I am running on an iMac OS X 10.6.3 using Firefox 3.6.3 as my default browser and I use Postbox 1.1.5 as my email client. Anytime I click on a link within an email message two instances of Firefox open, one with my home page and one with the site the link was meant for. This happens only when Firefox is not already open. If Firefox is running and a link is clicked on it opens normally within the open instance of Firefox. I have contacted Postbox and am currently awaiting a response to see if they have any suggestions. While this is not a serious issue it is a bit annoying. I have Firefox set to open new links in tabs not new instances of windows, so it shouldn't be that. Any help in getting this to stop would be greatly appreciated.
    == This happened ==
    Every time Firefox opened
    == Not sure, it's been going on for quite awhile.

    That is a bug on Mac.
    See https://bugzilla.mozilla.org/show_bug.cgi?id=531552 - Firefox 3.6b opens two windows when opening external links
    ''(please do not comment in bug reports to avoid bug spam for the devs)''

  • Two "instances" of RH 7?

    When a project is open in RH and you select File/Open for a
    separate project, RH closes the first one, no doubt for good
    reason.
    Does anyone launch RH a second time and open a different
    project, so you can look at them both? What about copy/paste from
    one to the other?
    Can the two instances keep everything separate, or might one
    project try to overwrite some temporary files open in the other? If
    so, does the change "take"? Does RH crash?
    (Reluctant to try without first touching base here.)
    Thanks
    Harvey

    Peter, thank you for pointing me back to the forums from your website. You really are the RH guru, and as it turns out the forums aren't too difficult to search (we're new to them). You answered one of my questions this week (http://forums.adobe.com/message/2517232#2517232), that I believe was caused by having two instances of RH open. The missing .htt file error came from one project but the file referred to the other open project. I may have tried saving each too quickly so RH got confused. So opening two instances can cause an issue -- but my issue wasn't that hard to fix.
    Thank you for your expertise and patience with all of us. You are wonderful-
    amity

Maybe you are looking for

  • Help needed regarding use of BAPIPAREX

    Hi everyone, I am using the bapi: BAPI_0035_CREATE to create GM grant master data. But I need to populate an additional field (ZZISCCALC) present in structure BAPI_TE_GMGR which has following format: CLIENT               3 GRANT_NBR          20 .INCL

  • Itunes will not load all photos

    Suddenly, my Ipad 3 will not load all of the photos that are in a folder onto the iPad into an album.  I have a folder of 58 images and iTunes recognizes that.  When I sync to add the images, itunes loads only 53 of them.  I have repeatedly attempted

  • Using an iMac as a TV

    Hi, I was wondering, is it possible to use an iMac as a TV? Thanks.

  • X220 Screen Blanking out

    Hi, I have a problem on my X220 where the screen blanks out. Here's how it happens. First, the system hangs, noticably (like freezes for about half a second) Then the screen goes completely black And then comes back on None of my programs are closed

  • Multitouch swipe not working

    I can't seem to get the swipe listener in my flex mobile project to recognize a multitouch swipe. I have tested this on an iPad and a Galaxy tab. I can get multitouch working, because pinching is recognized, but swipes are only recognized when I only