Issue connecting to a second instance on a Oracle Linux Box.

Hi all. I have the following scenario.
- Two Oracle versions and instances on the same box (10g Rel2 and 11g Rel2).
- Due to lack of disk space i installed 11g on another ORACLE_BASE / ORACLE_HOME:
- Initial enviroment (10g):
[oracle@VM1 ~]$ echo $ORACLE_BASE
/home/oracle/app
[oracle@VM1 ~]$ echo $ORACLE_HOME
/home/oracle/app/OraDb10g
[oracle@VM1 ~]$ echo $ORACLE_SID
BETA
[oracle@VM1 ~]$ echo $PATH
/home/oracle/app/OraDb10g/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
- 11g related values:
[oracle@VM1 oracle]$ echo $ORACLE_BASE
/u01/oracle
[oracle@VM1 oracle]$ echo $ORACLE_HOME
/u01/oracle/Oradb11g
[oracle@VM1 oracle]$ echo $ORACLE_SID
ALFA
[oracle@VM1 oracle]$ echo $PATH
/u01/oracle/Oradb11g/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
[oracle@VM1 oracle]$
Both databases are running including :
- listener 1521 for 10g and 1525 for 11g-
*10g:*
[oracle@VM1 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 04-JAN-2013 06:42:27
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM1.rioturbio.com.ve)(*PORT=1521*)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 04-JAN-2013 05:25:12
Uptime 0 days 1 hr. 17 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/OraDb10g/network/admin/listener.ora
Listener Log File /home/oracle/app/OraDb10g/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM1.rioturbio.com.ve)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "*BETA.azucarera_rioturbio.com.ve*" has 1 instance(s).
Instance "BETA", status READY, has 1 handler(s) for this service...
Service "BETAXDB.azucarera_rioturbio.com.ve" has 1 instance(s).
Instance "BETA", status READY, has 1 handler(s) for this service...
Service "BETA_XPT.azucarera_rioturbio.com.ve" has 1 instance(s).
Instance "BETA", 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...
The command completed successfully
[oracle@VM1 ~]$
*11g:*
[oracle@VM1 oracle]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-JAN-2013 06:43:25
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM1.rioturbio.com.ve)(*PORT=1525*)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 04-JAN-2013 05:23:02
Uptime 0 days 1 hr. 20 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/Oradb11g/network/admin/listener.ora
Listener Log File /u01/oracle/diag/tnslsnr/VM1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM1.rioturbio.com.ve)(PORT=1525)))
Services Summary...
Service "*ALFA.rioturbio.com.ve*" has 1 instance(s).
Instance "ALFA", status READY, has 1 handler(s) for this service...
Service "ALFAXDB.rioturbio.com.ve" has 1 instance(s).
Instance "ALFA", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@VM1 oracle]$
- Instances and Enterprise Manager Database Control:
*10g:*
[oracle@VM1 ~]$ emctl status dbconsole
TZ set to US/Eastern
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://VM1.rioturbio.com.ve:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
Logs are generated in directory /home/oracle/app/OraDb10g/VM1.rioturbio.com.ve_BETA/sysman/log
[oracle@VM1 ~]$
*11g:*
[oracle@VM1 oracle]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://VM1.rioturbio.com.ve:5500/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
Logs are generated in directory /u01/oracle/Oradb11g/VM1.rioturbio.com.ve_ALFA/sysman/log
[oracle@VM1 oracle]$
The problem happen when i try to access the 11g instance using sqlplus:
[oracle@VM1 oracle]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 4 06:46:55 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> show sga
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL>
or
[oracle@VM1 oracle]$ sqlplus system/Oradba11g
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 4 06:47:43 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
However when access is performed using a TNS service connection it works....!
See:
[oracle@VM1 oracle]$ sqlplus system/Oradba11g@alfa
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 4 06:48:48 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
SQL> show sga
Total System Global Area 1043886080 bytes
Fixed Size 2219952 bytes
Variable Size 620757072 bytes
Database Buffers 415236096 bytes
Redo Buffers 5672960 bytes
SQL>
Which seems to be the problem here? Why can't i connect to the 11g instance using sqlplus?. I don't think it is related to enviroment since access can be done using local naming service.
Please help ...!
PD: i did not replace scripts on /usr/local/bin when installing 11g.

myluism wrote:
Hi all. I have the following scenario.
See embedded comments below
- Two Oracle versions and instances on the same box (10g Rel2 and 11g Rel2).
- Due to lack of disk space i installed 11g on another ORACLE_BASE / ORACLE_HOME:
- Initial enviroment (10g):
[oracle@VM1 ~]$ echo $ORACLE_BASE
/home/oracle/app
[oracle@VM1 ~]$ echo $ORACLE_HOME
/home/oracle/app/OraDb10g
[oracle@VM1 ~]$ echo $ORACLE_SID
BETA
[oracle@VM1 ~]$ echo $PATH
/home/oracle/app/OraDb10g/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
- 11g related values:
[oracle@VM1 oracle]$ echo $ORACLE_BASE
/u01/oracle
[oracle@VM1 oracle]$ echo $ORACLE_HOME
/u01/oracle/Oradb11g
[oracle@VM1 oracle]$ echo $ORACLE_SID
ALFA
[oracle@VM1 oracle]$ echo $PATH
/u01/oracle/Oradb11g/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
[oracle@VM1 oracle]$
Both databases are running including :
- listener 1521 for 10g and 1525 for 11g-
An unnecessary complication that achieves nothing. A single listener, using the default name LISTENER and the default port 1521 is quite capable of -- WAS DESIGNED TO -- service multiple database instances of multiple versions running from multiple homes. In a multi-version environment, you'll want to use the listener from the highest version.
*10g:*
[oracle@VM1 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 04-JAN-2013 06:42:27
Copyright (c) 1991, 2007, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM1.rioturbio.com.ve)(*PORT=1521*)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.4.0 - Production
Start Date 04-JAN-2013 05:25:12
Uptime 0 days 1 hr. 17 min. 14 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /home/oracle/app/OraDb10g/network/admin/listener.ora
Listener Log File /home/oracle/app/OraDb10g/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM1.rioturbio.com.ve)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))
Services Summary...
Service "*BETA.azucarera_rioturbio.com.ve*" has 1 instance(s).
Instance "BETA", status READY, has 1 handler(s) for this service...
Service "BETAXDB.azucarera_rioturbio.com.ve" has 1 instance(s).
Instance "BETA", status READY, has 1 handler(s) for this service...
Service "BETA_XPT.azucarera_rioturbio.com.ve" has 1 instance(s).
Instance "BETA", 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...
The command completed successfully
[oracle@VM1 ~]$
*11g:*
[oracle@VM1 oracle]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 04-JAN-2013 06:43:25
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=VM1.rioturbio.com.ve)(*PORT=1525*)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 04-JAN-2013 05:23:02
Uptime 0 days 1 hr. 20 min. 22 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/oracle/Oradb11g/network/admin/listener.ora
Listener Log File /u01/oracle/diag/tnslsnr/VM1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=VM1.rioturbio.com.ve)(PORT=1525)))
Services Summary...
Service "*ALFA.rioturbio.com.ve*" has 1 instance(s).
Instance "ALFA", status READY, has 1 handler(s) for this service...
Service "ALFAXDB.rioturbio.com.ve" has 1 instance(s).
Instance "ALFA", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@VM1 oracle]$
- Instances and Enterprise Manager Database Control:
*10g:*
[oracle@VM1 ~]$ emctl status dbconsole
TZ set to US/Eastern
Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://VM1.rioturbio.com.ve:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
Logs are generated in directory /home/oracle/app/OraDb10g/VM1.rioturbio.com.ve_BETA/sysman/log
[oracle@VM1 ~]$
*11g:*
[oracle@VM1 oracle]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
Copyright (c) 1996, 2009 Oracle Corporation. All rights reserved.
https://VM1.rioturbio.com.ve:5500/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
Logs are generated in directory /u01/oracle/Oradb11g/VM1.rioturbio.com.ve_ALFA/sysman/log
[oracle@VM1 oracle]$
The problem happen when i try to access the 11g instance using sqlplus:
[oracle@VM1 oracle]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 4 06:46:55 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
What was the setting of ORACLE_SID when you did this?
SQL> show sga
ORA-01034: ORACLE not availablewell, of course you get ORACLE not available. It already told you "Connected to an idle instance" . There is no running instance of the current value of ORACLE_SID.
Process ID: 0
Session ID: 0 Serial number: 0
SQL>
or
[oracle@VM1 oracle]$ sqlplus system/Oradba11g
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 4 06:47:43 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux-x86_64 Error: 2: No such file or directory
Process ID: 0
Session ID: 0 Serial number: 0
Enter user-name:
However when access is performed using a TNS service connection it works....!
Because when you connect with TNS, you are no longer dependent on the current setting of $ORACLE_SID.
See:
[oracle@VM1 oracle]$ sqlplus system/Oradba11g@alfa
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 4 06:48:48 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
SQL> show sga
Total System Global Area 1043886080 bytes
Fixed Size 2219952 bytes
Variable Size 620757072 bytes
Database Buffers 415236096 bytes
Redo Buffers 5672960 bytes
SQL>
Which seems to be the problem here? Why can't i connect to the 11g instance using sqlplus?. I don't think it is related to enviroment since access can be done using local naming service.Regardless of what you think, It is absolutely, 100% related to your environment settings.
>
Please help ...!repeat your above demo, but with this modification
id
cat /etc/oratab
env |grep ORA | sort
echo $PATH
sqlplus / as sysdbaIn a multi-db environment, you need to always set your environment before trying to work with any database. The easiest way is to use the oracle utility 'oraenv'
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$ echo $ORACLE_SID
dwsbx
oracle:dwsbx$Notice the command is 'dot space oraenv'
>
PD: i did not replace scripts on /usr/local/bin when installing 11g.

Similar Messages

  • Multiple SOA instances run on Same Linux BOX

    Hi,
    Can multiple SOA installed be installed on same Linux box? Can someone pls answer this.
    Regards,
    Rakesh

    it should be supported; It is just a new installation of SOA Suite into a new directory structure. Keep in mind that you need to have different databases to hold up the SOA Schema's. Note that from release 11g, you can have multiple SOA schema's into a single database instance.
    Marc

  • I have more than 3 instances running on the Linux box? How can I determine which shared memory and semaphores are associated with which instance?

    Pleace help me
    Thanks

    ohh yeah,
    Please check again
    SQL>oradebug setmypid
    SQL>oradebug ipc
    SQL>oradebug tracfile_name
    Thank you

  • Could not connect to my sql server second instance

    connection problem in sql server 2008 . i installed second instance
    but it does not connect 

    1. Make sure SQL Server Service is running
    2. If a named instance, make sure SQL Server browser service is running
    3. Make sure SQL Server is configured to allow remote connections
    4. Examine the SQL Server error log for messages confirming that SQL is listening on the expected network interfaces and ports
    5. Test server connectivity with PING from the client machine
    6. Test port connectivity using TELNET or PowerShell to the server and port (from step 4) from the client machine.  For example
    a. TELNET <server-name> 1433
    b. PowerShell: 1433 | % { echo ((new-object Net.Sockets.TcpClient).Connect("YourServerName",$_)) "server listening on TCP port $_" }
    7. Check firewall settings if step 5 or 6 connectivity test fails
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Enterprise Manager is not able to connect to the database instance. The sta

    Enterprise Manager is not able to connect to the database instance. The state of the components are listed below.
    Listener is shown as unavailable.
    lsnrctl status
    LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 27-NOV-2012 11:52:40
    Copyright (c) 1991, 2009, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=freds-server.i-surname.co.uk)(PORT=1521)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
    Start Date 27-NOV-2012 11:50:02
    Uptime 0 days 0 hr. 2 min. 37 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/oracle/11g/network/admin/listener.ora
    Listener Log File /opt/oracle/diag/tnslsnr/freds-server/listener/alert/log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=freds-server)(PORT=1521)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=freds-server)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Services Summary...
    Service "GWORCL.i-surname.co.uk" has 2 instance(s).
    Instance "GWORCL", status UNKNOWN, has 1 handler(s) for this service...
    Instance "GWORCL", status READY, has 1 handler(s) for this service...
    Service "GWORCLXDB.i-status.co.uk" has 1 instance(s).
    Instance "GWORCL", status READY, has 1 handler(s) for this service...
    The command completed successfully
    I suspect that this is not just an OEM issue.
    see
    Listener working but not working for Enterprise manager oracle 11gr2 Linux.
    for configuration files
    Edited by: Neill_R on Nov 27, 2012 11:51 AM

    This was solved by : Osama_mustafa
    in the general questions forum
    emca -deconfig dbcontrol db -repos drop
    emca -config dbcontrol db -repos create

  • How do I create a second instance of oc4j in a standalone enviroment

    I am using OC4J standalone to deploy a sparql endpoint using jena, joseki, and the oracle jena adaptor. OC4J is running on the same server as my DEV and QAR databases. The current instance of OC4J is using a data source called "OracleSemDS" to connect to my DEV database. We are now ready to migrate the endpoint to QAR. As I was setting up the QAR endpoint, I discovered the the jena/joseki tools are hard-coded to use the "OracleSemDS" data source. Therefore, I cannot have 2 endpoints running in the same OC4J instance where one points to DEV and the other points to QAR.
    Therefore, I need to create a second instance of OC4J that specifies QAR as the "OracleSemDS" data connection. Can someone tell me how to do that?
    Thanks,
    Phil

    jphilb wrote:
    I am using OC4J standalone to deploy a sparql endpoint using jena, joseki, and the oracle jena adaptor. OC4J is running on the same server as my DEV and QAR databases. The current instance of OC4J is using a data source called "OracleSemDS" to connect to my DEV database. We are now ready to migrate the endpoint to QAR. As I was setting up the QAR endpoint, I discovered the the jena/joseki tools are hard-coded to use the "OracleSemDS" data source. Therefore, I cannot have 2 endpoints running in the same OC4J instance where one points to DEV and the other points to QAR.
    Therefore, I need to create a second instance of OC4J that specifies QAR as the "OracleSemDS" data connection. Can someone tell me how to do that?
    Thanks,
    Philgday Phil -- Melli Annamalai from the Oracle Server PM team pointed me to your question. I was an OC4J Product Manager before we bought out BEA and I swapped over to WLS -- so I have some information below that hopefully is of assistance to you.
    Since you are using OC4J standalone, the simplest way to get a second instance, is to just clone the existing, whole directory structure of your working OC4J instance into another directory, and configure/run it from that directory. To map the OracleSemDS to another target (QAR) you change the data-sources.xml file in the second instance. If you want to run them concurrently on the same server, you'll need to change the ports in the second instance so they have unique values: default-web-site.xml, rmi.xml, internal-settings.xml, jms.xml. These additional ports can be specified on the command line as a Java property string, albeit this is not a documented nor supported feature. See http://buttso.blogspot.com/2007/02/specifying-oc4j-standalone-ports-from.html for more information.
    Now as an example, assuming you have your OC4J you want to clone in the dev directory, and now want to create a second instance of OC4J in qar, I'd do this:
    cp -rp dev/* qar
    cd qar/j2ee/home/config
    vi data-sources.xml
    (edit any other files if needed to alter ports) ...
    cd ..
    java -jar oc4j.jar That should work, and should create the second instance using the current configuration (ie dev) as its basis (including deployed apps). Of course, you'll need to manage them independently from here as they really are just two separate OC4J standalone instances.
    Now what else you could potentially do is to create a secondary configuration file subset only which only changes the necessary files to support running the second instance. In this case, you'd make a copy of the j2ee/home/config/server.xml, j2ee/home/config/application.xml and j2ee/home/config/data-sources.xml files, renaming them to qar-server.xml, qar-application.xml and qar-data-sources.xml.
    Then do the following:
    1. In qar-server.xml file, you'd change the global-application application to point at qar-application.xml instead of application.xml:
    <global-application name="default" path="qar-application.xml" parent="system" start="true" />
    2. Change qar-application.xml so that it used the qar-data-sources.xml file:
    <data-sources path="qar-data-sources.xml" />
    3. Change qar-data-sources.xml file so it points to the qar database target.
    4. Start OC4J, telling it to use qar-server.xml instead of the default server.xml
    D:\java\oc4j-10135-prod\j2ee\home>java -jar oc4j.jar -config config/qar-server.xmlI think you could run into some concurrency problems if you try and run the two instances simulataneously, but in general it should be OK I think if you run them separately.
    Another solution here is look at how the application specifies/uses datasources. The hard coding of the data-source name into the applicaiton via a direct JNDI lookup works, but restricts the flexibility you as a deployer/administrator has.
    If the application used the Java EE resource-ref approach to look up and use the datasource, then the actual JNDI name of the datasource the application uses it totally abstracted from the actual physical name of the datasource that is created on the container -- so you'd have DEVDS and QARDS as physical datasources configured and running on OC4J -- and what happens is that as you deploy the application, you essentially map its lookup and use of OracleSemDS (which would need to change to a java:env/ namespace) to the physical datasource you want it to use (DEVDS or QARDS for example). You can easily alter this post deployment by changing the generated orion-application.xml file to point at the alternate physical datasource. Following that, you can also create separate deployment plans which map the app to the different datasources, then feed this in with the deployment operation so that the correct mapping to either DEVDS or QARDS is done during the deployment process.
    I don't know what scope you have to change the application so the above may not be possible -- you'd need to change the lookup code so that it uses the Java EE reference model and change the meta-inf/application.xml to add the corresponding resource-ref entry which declares the logical datasource name that needs to be mapped on deployment.
    Another approach here may be to use an application embedded datasource, where you put a data-sources.xml file into the application archive itself (along with an orion-application.xml file which references it) whereupon at deployment time, a datasource specific to the application will be created. In this manner, you'd have say two copies of the same application to deploy (DEV, QAR) which contain different data-sources.xml file. From memory, each application will have its own JNDI namespace so their datasources can co-exist with the same names, with application level data-sources overriding server level ones. Since you'll most likely want to keep the same context-root for the web modules (which has to be unique per server) you'll generally need to run just one of the applications at a time. I'd do this like this: deploy one, stop it, deploy the other, stop it, then start only the one you need to test. In that way, you'll have one copy of the application running (either DEV or QAR) and one datasource definition running within it.
    Here's some documentation links to get you going:
    Managing Application Lifecycle (start, stop): http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13978/adminclient.htm#BABHJAFE <-- describes admin_client.jar but general principles apply to ascontrol management of application.
    Packaging and Testing Applications: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13979/packag.htm#BHCFBEEC
    Application Level DataSources: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13975/datasrc.htm#CHDIBFHG
    Using Deployment Plans: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13980/deployplan.htm#CHDFEFAE
    cheers
    -steve-

  • Can I install a second instance of i-Calender on the server where right now is running the first instance? How?

    The first instance is running on a Sun R420 Enterprise
    server. The second instance will run in the same server.

    When you say "Authorized"  you mean in the sense of Itunes Store Authorized? if so the system in Question is authorized it is my primary Workstation and was waiting until iCloud came out to update to Lion. My MBP , and 2006 MP are all running Lion and are part of the 5 systems "authorized". I did not run into this issue with either the MBP or the MP when i installed and I bought two copies at the same time on my the first day Lion was available.
    Do you know the mechanism with which the App Store tracks purchases on different computers prior to iCloud coming out?
    once again thanks for your response
    chris meredith

  • SSAS 2012 (SP2) - Connecting to a Named Instance in a Failover Cluster

    I posted this question some months ago and never got a resolution...still having the same problem. (http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4178ba62-87e2-4672-a4ef-acd970ac1011/ssas-2012-sp1-connecting-to-a-named-instance-in-a-failover-cluster?forum=sqlanalysisservices)
    I have a 3 node failover cluster installation (active-passive-passive) configured as follows:
    Node1: DB Engine 1 (named instance DB01)
    Node2: DB Engine 2 (named instance DB02)
    Node3: Analysis Services (named instance DBAS)
    Obviously, the node indicated is merely the default active node for each service, with each service able to fail from node to node as required.
    Strangely, when I attempt to connect to the SSAS node using the cluster netbios "alias" (dunno, what else it would be called, so I apologize if I am mixing terminology or somesuch), I am only able to do so by specifying the the alias _without_ the
    required named instance. If I issue a connection request using an external program or even SSMS using Node3\DBAS or Node3.domain\DBAS, it appears that the SQL Server Browser is offering up a bogus TCP port for the named instance (in my case TCP/58554), when
    in reality, the SSAS service is running on TCP/2383 (confirmed with netstat) -- which if I understand correctly after much, much reading on the subject is the only port that can be used in a failover cluster. In any case, I'm puzzled beyond words. As I think
    through it, I believe I've seen this issue in the past, but never worried about it since it wasn't necessary to specify the named instance when I had SSAS requirements... It's only a showstopper now because I'm finalizing my implementation of SCVMM/SCOM 2012
    R2, and for some strange reason the PRO configuration in VMM gets all butthurt if you don't offer up a named instance...
    Thank you much for reading. I appreciate any help to get this resolved.
    POSSIBLY NOT RELEVANT...?
    I've properly configured the SPNs for the SSAS service (MSOLAPSvc.3) and the SQL Browser (MSOLAPDisco.3), with the former mapped to the SSAS service account and the latter to the cluster "alias" (since it runs as "NT AUTHORITY\LOCALSERVICE"
    as is customary) and have permitted delegation on the service and machine accounts as required. So, I'm not getting any kerberos issues with the service...any more, that is... ;) I'm not sure that's important, but I wanted to be forthcoming with details to
    help solve the issue.

    When connecting to SSAS in a cluster, you do not specify an instance name.  In your case, you would use the name of the SSAS IP address to connect.
    See:
    http://msdn.microsoft.com/en-us/library/dn141153.aspx
    For servers deployed in a failover cluster, connect using the network name of the SSAS cluster. This name is specified during SQL Server setup, as
    SQL Server Network Name. Note that if you installed SSAS as a named instance onto a Windows Server Failover Cluster (WSFC), you never add the instance name on the connection. This practice is unique to SSAS; in contrast, a named
    instance of a clustered relational database engine does include the instance name. For example, if you installed both SSAS and the database engine as named instance (Contoso-Accounting) with a SQL Server Network Name of SQL-CLU, you would connect to SSAS using
    "SQL-CLU" and to the database engine as "SQL-CLU\Contoso-Accounting". See
    How to Cluster SQL Server Analysis Services for more information and examples.

  • Connected to an idle instance; trouble creating DB

    I tried to connect to my database and got Connected to an idle instance:
    C:\>sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.2.0 Production on Mon Sep 22 19:07:34 2014
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to an idle instance.
    SQL> select status, database_status from v$instance;
    select status, database_status from v$instance
    ERROR at line 1:
    ORA-01034: ORACLE not available
    Process ID: 0
    Session ID: 0 Serial number: 0
    Further, the Getting Started page cannot be found with Error code: ERR_CONNECTION_REFUSED: http://127.0.0.1:8080/apex/f?p=4950
    What I did to try and resolve this issue
    While digging in various forums, I found that maybe I needed to specify the initXE.ora file on startup:
    SQL> startup pfile='C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora'
    ORA-01565: error in identifying file 'C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-01078: failure in processing system parameters
    No such spfileXE.ora file. OK, so create it?
    SQL> create spfile='C:\oraclexe\app\oracle\product\11.2.0\server\dbs\spfileXE.ora' from pfile='C:\oraclexe\app\oracle\product\11.2.0\server\dbs\init.ora';
    File created.
    SQL> startup pfile='C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora'
    ORA-48108: invalid value given for the diagnostic_dest init.ora parameter
    ORA-48140: the specified ADR Base directory does not exist [C:\oraclexe\app\oracle\product\11.2.0\server\DATABASE\<ORACLE_BASE>]
    ORA-48187: specified directory does not exist
    OSD-00002: additional error information
    O/S-Error: (OS 123) The filename, directory name, or volume label syntax is incorrect.
    SQL>
    Well, I guess I have no ADR Base directory..
    C:\oraclexe\app\oracle\product\11.2.0\server\database>dir
    Volume in drive C is Windows
    Volume Serial Number is 8822-A545
    Directory of C:\oraclexe\app\oracle\product\11.2.0\server\database
    22/09/2014  06:06 PM    <DIR>          .
    22/09/2014  06:06 PM    <DIR>          ..
    22/09/2014  06:06 PM             2,048 hc_xe.dat
    22/09/2014  02:44 PM                73 initXE.ora
    27/08/2011  09:58 AM            31,744 oradba.exe
    22/09/2014  05:07 PM             2,265 oradim.log
                   4 File(s)         36,130 bytes
                   2 Dir(s)  298,041,913,344 bytes free
    I list as much supporting information as I know how to below.
    Environment
    Windows 7 Enterprise, SP1, 64-bit.
    Oracle Database Express Edition 11g Release 2 for Windows x32
    I have these environment variables set:
    echo %ORACLE_SID% - %ORACLE_HOME%
    XE - C:\oraclexe\app\oracle\product\11.2.0\server
    Installation settings
    These are the installation settings used by the installer:
    Destination Folder: C:\oraclexe\
    Oracle Home: C:\oraclexe\app\oracle\product\11.2.0\server\
    Oracle Base:C:\oraclexe\
    Port for 'Oracle Database Listener': 1521
    Port for 'Oracle Services for Microsoft Transaction Server': 2030
    Port for 'Oracle HTTP Listener': 8080
    Output from lsnrctl stat
    Some debugging information that may be useful:
    C:\oraclexe\app\oracle\product\11.2.0\server\bin>lsnrctl stat
    LSNRCTL for 32-bit Windows: Version 11.2.0.2.0 - Production on 22-SEP-2014 19:05:52
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    Alias                     LISTENER
    Version                   TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date                22-SEP-2014 17:07:02
    Uptime                    0 days 1 hr. 58 min. 49 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Default Service           XE
    Listener Parameter File   C:\oraclexe\app\oracle\product\11.2.0\server\network\admin\listener.ora
    Listener Log File         C:\oraclexe\app\oracle\diag\tnslsnr\ITS57151\listener\alert\log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=myhost.mycompany.local)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", 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
    C:\oraclexe\app\oracle\product\11.2.0\server\bin>
    Various config files
    Here are the contents of other important files.
    The initXE.ora file - C:\oraclexe\app\oracle\product\11.2.0\server\database\initXE.ora
    SPFILE='C:\oraclexe\app\oracle\product\11.2.0\server\dbs/spfileXE.ora'
    The listener.ora file - C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mycompany.local)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    The tnsnames.ora file - C:\oraclexe\app\oracle\product\11.2.0\server\network\ADMIN\tnsnames.ora
    XE =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = myhost.mycompany.local)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = PLSExtProc)
          (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
    Edited to restructure question to put the meat of the issue up front and supporting information below.

    Uninstall Oracle Database Express Edition 11g Release 2 for Windows x32
    Download and install Oracle Database Express Edition 11g Release 2 for Windows x64
    Take some time to de-stress.

  • Creating second instance 10g (non rac)

    We are 10G 64bit on a Windows/VM box - or will be:)
    Is it possible to create multiple instances of oracle on a single server?
    Generally speaking - would I create the second instance just like the first instance but with a different db name?
    Any reasons why I wouldn't want to create multiple database instances on the same server?
    Currently we have our client (enterprise manager) installed on a separate box and use the same client to connect to several databases. If I had multiple instances on one server how would enterprise manager connect to multiple instances with the same ip?
    Thanks for taking my question!.
    Kathie

    When running the second DBCA the global database name and sid would be unique as well?Yea, the global database name must be unique.
    I could also use the same flashback directory as this area has the sid in the directory path? Yea, you can use the same flashback directory for any database on the same server.
    Forum question: Is there a way to close a question and give credit for an answer? I dont, know, but the interesting about the participation on this forum is HELP
    Luck.
    Have a good day.
    Regards.

  • Cannot start second instance of collector

    Hi everyone
    I've got a strange one here. A workstation I noticed that wasn't scanned since 6 months (WinXP SP3, ZCM 10.3.1).
    When I check the ZAA windows, it says Last Scanned i.e. today, Last Upload June 2.
    I've found several errors 'Cannot start second instance of collector' in the local colw32.log.
    However, the workstation gets rebooted daily and I can't find another instance of colw32.exe running in TaskManager.
    How can I resolve this? I can't tell how many clients are affected. However, I've got almost 300 clients (15%) that haven't been scanned in the last 180 days...
    Thanks
    Roland

    Originally Posted by rpfenninger
    Hi everyone
    I've got a strange one here. A workstation I noticed that wasn't scanned since 6 months (WinXP SP3, ZCM 10.3.1).
    When I check the ZAA windows, it says Last Scanned i.e. today, Last Upload June 2.
    I've found several errors 'Cannot start second instance of collector' in the local colw32.log.
    However, the workstation gets rebooted daily and I can't find another instance of colw32.exe running in TaskManager.
    How can I resolve this? I can't tell how many clients are affected. However, I've got almost 300 clients (15%) that haven't been scanned in the last 180 days...
    Thanks
    Roland
    We had similar issue, inventory was never uploaded to server. To solve it we had to manually do a "Scan Now" from Zenworks agent -> Show properties -> Inventory -> Scan Now, after we did that once on the workstation then scheduled scans started to upload again.
    I guess it would probably also work if you do a Inventory scan from quick tasks in ZCC but I never tried it so I'm not sure.
    Thomas

  • EPM 11.1.2.2 Financial Reports Second Instance

    Hi to alll,
    On a clean install wintel 2008 R2 box, very often (onde a day) the FR services freezes (service stays on but dos not accept requests).
    We have increased the heap size and configured the tlas keys on the registry ( java.lang.OutOfMemoryError: getNewTla error), but still no luck (plenty of RAM & CPU´s on the server - Planning /Framewok/Registry all installed)
    I´m thinking of installing FR on another wintel box joining the same domain (EPMSystem):
    1) Should I use a different instance name ?
    2) Do I need to configure HTPP? Don´t want to really.
    Regards
    yannis

    What are your heap sizes set to?
    You can add to the FR cluster by installing another instance of FR on a different box, yes.
    On 11.1.2.2, you do not need a different instance name - Assuming you are referring to the "epmsystem1" name.
    Yes, you would need to do the "Configure Web Server" task after adding to the cluster so that OHS or whatever your HTTP server is knows how to forward connections to the second FR instance.

  • Cannot not connect to SQL Server instance.

    Hello,
    I have SQL Server 2012 installed and when I run this command:
    sc query mssql$MSSQLSERVER
    I get this error:
    [SC] EnumQueryServicesStatus:OpenService FAILED 1060:
    The specified service does not exist as an installed service.
    I run this command on the same server where SQL Server is installed.  Databases are on the same server too.  TCP/IP is enabled for the instance and port 1433 is open on the server's firewall. SQL Server Browser is running.
    Many errors in the SQL Server error logs like:
    SQLServer Error: 11001, A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct.
    SQLServer Error: 11001, TCP Provider: No such host is known. [SQLSTATE 08001]
    Any ideas what could  have gone wrong?
    Thanks,
    Paul
    Paul

    Hi Paul,
    According to your description, you fail to connect to SQL Server 2012 instance. According to the SQL Server error log, based on my research, your issue could be due to that
    the client cannot resolve the name of the SQL Server instance.
    Are the errors from the SQL Server error log solved? If the errors are not solved, please follow the steps below to troubleshoot the issue.
    1. Make sure you are able to ping the physical server where SQL Server is installed from the client machine. If not, you can try to connect to the SQL Server using an IP Address (for default instance) or IP Address\Instance Name
    for a named instance.
    2. Make sure you are using the correct instance name. When you connect to a default instance, machine name is the best representative for the instance name and when you connect to a named instance such as sqlexpress, you should
    specify machinename\instancename according to
    Niting123’s post. And you could verify if you use the right instance name in SQL Server configuration manager according to
    Niting123’s post.
    3. Check that SQL Server is in the network. You can use the SQLCMD -L command to retrieve the list of SQL Server installed in the network. Note that this will only return SQL Servers if the SQL Server Browser service is running.
    4. Make sure that you enable Named Pipes besides TCP/IP protocol.
    5. Check to see if remote connections is enabled. Right click on the server name in SSMS and select Properties. Go to the Connections tab and make sure Allow remote connection to this server is checked.
    6. Locally connect to SQL Server and check the error log for the port entry.
    7. To connect to SQL Server instance using TCP/IP from another computer, on the SQL Server computer, you must configure the firewall to allow connections to the TCP port used by the Database Engine. If you are connecting to a named
    instance or a port other than TCP port 1433, you must also open the UDP port 1434 for the SQL Server Browser service according to pasquale’s post.
    For step by step instruction on opening a port in the Windows firewall, see
    How to: Configure a Windows Firewall for Database Engine Access
    For more information about the process, please refer to the article:
    http://www.mssqltips.com/sqlservertip/2340/resolving-could-not-open-a-connection-to-sql-server-errors/
    In addition, you mention that there are many other errors, so please provide the SQL Server error log for analysis.
    Regards,
    Michelle Li

  • I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management

    I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management 
    This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
    I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
    I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
    Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
    Thanks!
    -Max

    Hello,
    Which version and edition of the SQL Server instance did you installed on the new server machine?  If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
    this link.
    You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
    What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
    SQL Serve 2008 Feature Pack
    which contains packages above.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • OBIEE 10g: Presentation Cache in Second Instance of Presentation Server

    Hi everyone,
    I've been having an issue with my presentation cache disappearing every couple of minutes.
    I'm working with OBIEE 10.1.3.4, on Oracle Application Server on a Linux RHEL 5.4 32bit. I've spun up a second instance of the presentation service using the commands from RNM1978's blog here (http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-2-presentation-services/). The reason why I have a second instance of the presentation service is for mobile reporting purposes. We have lots of executives using iPhones and the Oracle Business Intelligence Indicators application. The second instance defaults all charts to be PNGs, it also uses a separate, clean catalog, so that the executives don't get lost in all of the out of the box BI Applications content that is in our main catalog.
    Everything is setup and working properly, both presentation services are accessible and use the same RPD but different catalogs. The only thing that isn't working is the presentation service cache. A lot of these reports are QTD or YTD so it takes a few minutes to run some. We were hoping to use iBots to create BI Server cache at the beginning of the day. That seemed to help a bit but it seems to clear after a few minutes.
    Additionally, before we went to do demos to end users, we would run all the reports from a demo iPhone. Go to do the demo and within five minutes, the presentation cache would have already cleared. I confirmed the same by looking in the Session Manager of the second presentation service.
    Does anyone know why this would be happening? I have cache turned on in the bi server and I also have the following settings in my instanceconfigMobile.XML:
    <Cache>
    <Query>
    <CacheMaxEntries>1000</CacheMaxEntries>
    <CacheMaxExpireMinutes>720</CacheMaxExpireMinutes>
    <CacheMinExpireMinutes>720</CacheMinExpireMinutes>
    <CacheMinUserExpireMinutes>720</CacheMinUserExpireMinutes>
    </Query>
    </Cache>
    Are there other settings I need to investigate?
    Is this just additional commands I need to run when launching the additional presentation service? Here's the command I'm using:
    . ./common.sh
    . ./sa-init.sh
    sawserver -c /home/oracle/OracleBIData/web/config/instanceconfigMobile.xml >> /home/oracle/OracleBIData/web/log/sawserverMobile.out.log 2>&1 &
    Thanks!
    -=Joe

    Hi Joe
    I can't say I've tried Robin's technique to run two presentation servers but from my basic understanding of it, both versions will share the same cache as defined in a single nqsconfig.ini file. Maybe these 2 are conflicting somehow?
    I see that a separate instanceconfig.xml is used for each presentation server. I know there are a bunch of advanced, largely undocumented, cache properties you can set in there. I can send you a document listing the various properties if you want to play with it - contact me via my website.
    Paul
    http://total-bi.com

Maybe you are looking for

  • Two quick questions about Library after moving beginning on a new computer

    Hi there, I just moved from Windows to Mac, meaning I had to move my iTunes library from the old PC to my new MBA. Just a couple of quick questions. 1. When I started iTunes on my new Mac, in the preferences I directed the media folder to the folder

  • Music wont download from iTunes to iPod

    iPod has been reset twice and still the music will not download from iTunes to the iPod without freezing iTunes. Music starts to download one or two songs and then software stalls. I need to force quit iTunes many times in order to make the program q

  • RGB - CMYK problems

    Good Day, I have bought Adobe Creative Suite 4 and this document is generated with Adobe InDesign CS4 my document looks like that: this is a advertisment which is for a journal in my document i have transparency an a table with some information......

  • Video-Lesson-02 (Part 1) in Primavera P6 Course : Building Primavera Data

    Building Primavera Data This will be Second lesson in primavera 6 Course and we will talk about : 1-How to Build and Specify default settings in primavera 6. 2-How to prepare primavera to insert our company data and projects. - This Lesson will Conta

  • Script Help please. Need to save as different filetype.

    I have a script that is currently saving files as jpgs.  I need it to save as a png.  Would someone be able to help me with this? var doc = app.activeDocument; var Path = doc.path;  var Name = doc.name.replace(/\.[^\.]+$/, ''); var Suffix = "_full_l"