One app , 2 database
I have a requirement to deploy the same webapplication in the same server and point to another database.
I have utility classes in my app that makes database connections from a predefined connection pool or datasource configured in the application server.
I could create a new datasource to point to the new database, but what is the best way to have the same application switch between datasources for different deployments
any thoughts?
depends on your high level requirement
If the requirement is to have two instances of the same application then going for two different deployments will be better.
If what you want is to have same application instance use two database then you should make the application switch the database when needed.
Similar Messages
-
Sun One App Server - Oracle Database 10g
Hi to all:
I�m developing a web application that uses an Oracle 10g database and a I want to use Sun One Application Server 7, the problem that I have is when I have been deployed the war file into the server and acces to my application, specifically when I try to acces a JSP that extracts data from database, I don't see anything of the information that I need, that's not the problem, the problem is that in the server console appear a message indicating that an SQLException occour and the message is "No suitable driver".
I test my methods before deploy the war file and the connection and data extraction are correct, I don't know if the version of the JDBC driver for the connection to Oracle Database 10g is incompatible or if it's impossible to use Sun One App Server 7 with a connection with Oracle 10g.
I tried with other web servers like Tomcat 5.0 and Sun Application Server 9 and the connection it's perfect.
Could somebody give some ideas or orientation please?????, im student, all help will be appreciated, thanks!!!Rahul,
Yes there is an Enterprise Edition in the works. It will address the load balancing and fail over needs for deployments. More details are available here: http://wwws.sun.com/software/products/appsrvr_ee/home_appsrvr_ee.html
We will also be releasing more information in the October and November.
Cheers,
Stefan Bolka
Product Line Manager
Sun ONE Application Server Enterprise Edition -
Error: ORA-16778: redo transport error for one or more databases
Hi all
I have 2 database servers"Primary database and physical standby" in test environment( before going to Production)
Before Dataguard broker configuration , DG setup was running fine , redo was being applied and archived on phy standby.
but while enabling configuration i got "Warning: ORA-16607: one or more databases have failed" listener.ora & tnsnames.ora are updated with global_name_DGMGRL
Please help me how can i resolve this issue .Thanks in advance.
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect sys
Password:
Connected.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database
show database
^
Syntax error before or at "end-of-line"
DGMGRL> remove configuration
Warning: ORA-16620: one or more databases could not be contacted for a delete operation
Removed configuration
DGMGRL> exit
[oracle@PRIM ~]$ connect sys/sys@prim as sysdba
bash: connect: command not found
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:30
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:52:48
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 08-OCT-2006 19:52:48
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PRIM_DGMGRLL" has 1 instance(s).
Instance "PRIM", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@PRIM ~]$ lsnrctl stop
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:46
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
The command completed successfully
[oracle@PRIM ~]$ lsnrctl start
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 19:54:59
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
[oracle@PRIM ~]$ dgmgrl
DGMGRL for Linux: Version 10.2.0.1.0 - Production
Copyright (c) 2000, 2005, Oracle. All rights reserved.
Welcome to DGMGRL, type "help" for information.
DGMGRL> connect /
Connected.
DGMGRL> create configuration test as
primary database is PRIM
connect identifier is PRIM
;Configuration "test" created with primary database "prim"
DGMGRL> add database STAN as
connect identifier is STAN
maintained as physical;Database "stan" added
DGMGRL> show configuration
Configuration
Name: test
Enabled: NO
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
DISABLED
DGMGRL> enable configuration
Enabled.
DGMGRL> show configuration
Configuration
Name: test
Enabled: YES
Protection Mode: MaxPerformance
Fast-Start Failover: DISABLED
Databases:
prim - Primary database
stan - Physical standby database
Current status for "test":
Warning: ORA-16607: one or more databases have failed
DGMGRL> show database verbose prim
Database
Name: prim
Role: PRIMARY
Enabled: YES
Intended State: ONLINE
Instance(s):
PRIM
Properties:
InitialConnectIdentifier = 'prim'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
LogFileNameConvert = '/u01/app/oracle/oradata/STAN, /u01/app/oracle/oradata/PRIM'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'PRIM'
SidName = 'PRIM'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=PRIM)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/PRIM/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "prim":
Error: ORA-16778: redo transport error for one or more databases
DGMGRL> show database verbose stan
Database
Name: stan
Role: PHYSICAL STANDBY
Enabled: YES
Intended State: ONLINE
Instance(s):
STAN
Properties:
InitialConnectIdentifier = 'stan'
LogXptMode = 'ASYNC'
Dependency = ''
DelayMins = '0'
Binding = 'OPTIONAL'
MaxFailure = '0'
MaxConnections = '1'
ReopenSecs = '300'
NetTimeout = '180'
LogShipping = 'ON'
PreferredApplyInstance = ''
ApplyInstanceTimeout = '0'
ApplyParallel = 'AUTO'
StandbyFileManagement = 'AUTO'
ArchiveLagTarget = '0'
LogArchiveMaxProcesses = '30'
LogArchiveMinSucceedDest = '1'
DbFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
LogFileNameConvert = '/u01/app/oracle/oradata/PRIM, /u01/app/oracle/oradata/STAN'
FastStartFailoverTarget = ''
StatusReport = '(monitor)'
InconsistentProperties = '(monitor)'
InconsistentLogXptProps = '(monitor)'
SendQEntries = '(monitor)'
LogXptStatus = '(monitor)'
RecvQEntries = '(monitor)'
HostName = 'STAND'
SidName = 'STAN'
LocalListenerAddress = '(ADDRESS=(PROTOCOL=tcp)(HOST=STAND)(PORT=1521))'
StandbyArchiveLocation = '/u01/app/oracle/flash_recovery_area/STAN/archivelog/'
AlternateLocation = ''
LogArchiveTrace = '0'
LogArchiveFormat = '%t_%s_%r.arc'
LatestLog = '(monitor)'
TopWaitEvents = '(monitor)'
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
DGMGRL>This:
Current status for "stan":
Error: ORA-12545: Connect failed because target host or object does not exist
says that your network setup is not correct. You need to resolve that first.
As for Broker setup steps how about the doc or our Data Guard 11g Handbook?
It's 3 DGMGRL commands so I am not sure what 'steps' you need?
Larry -
Hi
I am wondering about iPad filing, documents and the future that iOS 5 and iCloud hold.
Am I right in thinking that there will still be no file/folder structure and that documents will be held individually by apps?
This creates two problems for me:
1) I need to access the same document (e.g. a pdf file) from more than one app. For example, say I need to use iAnnotate to mark it up and Sente to file it. However each app keeps their own copy of the document, so the annotated copy from iAnnotate is not the same copy as the one filed correctly in the Sente database.
2) How do I keep the files for a specific project together? Say I have source documents, word-processing documents, presentations, images etc all related to one project: how do I keep them all together? If we had tagging (as in openmeta or similar) I could tag them - works beautifully on the desktop but not available on the iPad. If we had folders I could at least group them in folders... What is is the iPad solution?
MHere's how I address # 1:
I use DropBox as my central hub to keep documents accessible and synced between my iPad and my laptop. That means that I export, share, copy or print the document, with my changes, to DropBox from whatever application I'm using. For example, if I open a PDF in PDF Expert (the app I use for reading and annotating) I can "open" a copy in DropBox with my annotations. For Pages and other iWork files I use DropDAV which enables me to save to DropBox via WebDAV. For other apps like Safari that don't have DropBox integration, I use Save2PDF to "print" a PDF to the appropriate DropBox folder.
As to #2, two things come to mind. The first is that you can use the search function to find related files if you put your tag in the title or somewhere else searchable. The second is that I set up a file structure in DropBox on my laptop that meets my needs (and is also one way to begin to emulate a file structure on the iPad). For example, i keep my current course files, with their presentations, documents, and spreadsheets, in DropBox. But many of my projects have so many components and so many images, etc, I've become used to having components in different applications (Aperture, iTunes, etc) and I do rely on my laptop (and its external drives) for my central and final project management. For things in process, though, the iPad works very well.
ICloud may change all this. :-) -
Is there a report showing all the DDL objects for one APP?
Hi,
Is there a report showing all the DDL objects for one APP?
I need to move an app to my workspace. The workspace I need to move it from has approx 20 applications in it, thus all the tables, procedures, etc are too many.
What way is the easiest?
I've looked at exporting the DDL and the app. and look to see what the app needs. But it has many pages.
Thank you, BillCHello Bill,
You might find the report in the following location to be helpful:
Home>Application Builder>Application XXX>Application Reports>Shared Components>Application Database Object Dependencies
Regards,
Arie. -
Hi Group,
I have deployed my project in sun one application server 7.0 installed in red hat linux 7.2 and database is mysql. Its working in fine in normal conditions. I could not able to get connection from datasource after I kept my server 10 hours ideal. Again its working fine once I restarted the server. Please give me any solution to prevent this.
The same project is working fine under all conditions in Sun one app server 7.0 installed in windows 2000 server without any look up probem. I Got this problem only in linux OS.
mysql datasource class com.mysql.jdbc.jdbc2.optional.MysqlDataSource
please find the below code..
Context ctx = new InitialContext();
Datasource testDS = (javax.sql.DataSource)ctx.lookup( "jdbc/testDS");
Connection con = testDs.getConnection();
connection pool settings
<jdbc-connection-pool steady-pool-size="8" max-pool-size="32" max-wait-time-in-millis="0" pool-resize-quantity="2" idle-timeout-in-seconds="0" is-isolation-level-guaranteed="false" is-connection-validation-required="false" connection-validation-method="auto-commit" fail-all-connections="false" datasource-classname="com.mysql.jdbc.jdbc2.optional.MysqlDataSource" name="testCP">
<property value="localhost" name="serverName"/>
<property value="3306" name="portNumber"/>
<property value="root" name="user"/>
<property value="test" name="databaseName"/>
</jdbc-connection-pool>
Regards,
Hari haranMy team solved the problem and I thought that we would share.
The version of Xalan that was packaged with the JRE, that is installed by the Sun One app server, was at least 2 versions out of date. Updating the Xalan package solves the issue and the WAR file now works.
Again, this appears to be only on the Linux version as the package deploys and works perfectly on the Windows version. -
How can a file be accessed by more than one app?
Hi,
I am new to iOS4 and the whole iPhone, iPod technology. I am really a windows user.
How can a file be accessed by more than one app. In my case I want to transfer a midi file from my PC to my iPod Touch and be able to open it from a couple of Midi Players which I am evaluating - or does each Midi Player have to import the file seperately for its own use?
Thanks,
SamIt seems to me that what you want is exactly a session bean will do. The EJB container is responsible to maintain a certain number instances (configurable) of your session bean and serve multiple clients at the same time. Session beans are not necessarily destroyed after serving a client. If you configure your ejb server to have a pool size of 2 to 100, then you will always have at least 2 instances (no more than 100 even there are a lot of client access) of this ejb ready to serve. The only thing not clear to me is that do you want to use only ONE instance of this bean or you don't care as long as multiple clients can access this bean's service? Since you mentioned that there is not a real database access, you can certainly use a Singleton but a 'regular' session bean with static fields should do it also if these fields will not be modified by clients.
PC -
Loading text from one app to another
If we are using text members and we want to transfer comments from one app to another.
our steps are as follows.
1) Export indicators in Essbase
2) LCM text members out of one app to import into the other.
3) load indicators in new app
4) load LCM file to new app.
The wrinkle is the following
App 2 already has the exact same member for text and there is already text in separate spots (no overlap - think 2 different versions). But what about the number system when we bring it back in.
Has anyone done this where you have to reallign the indicators in the relational database and essbase so that nothing gets crushed?
We are thinking of editing the files and create new numbers. Will that work?
This is version 11.1.2.2Hi,
Mode of updation is delta.
ZCUBE_2 already contains data from Aug. to March
My problem is m not able to move March onwards data.
Till today my delta was working fine.But i had to delete April data. Now i want to reaload it.
Before deleting i tried to load 10 daya data all together, it reloaded successfully. Now i have to reload 48 days data, its not loading.
I also to restict period in filter option, then also no data availabe is coming. -
Startup and shutdown of Apps and database on R12 with linux server reboot
Hi Guys,
Version : R12
Platform : Linux EL 5
Hi Guys,
I am trying to startup and shutdown the R12 apps and database automatically with Linux server reboots.
Does any one have steps to do this or metalink note:
Thanks in advance,
ZHi,
Please see this thread.
Autostart of Services
Re: Autostart of Services
Regards,
Hussein -
JavaFX to access Google Apps Engine database
Hi,
I have developed JavaFX browser application which needs to access Google Apps Engine database. Please help me to find way to access it.Hi,
In javafx you can use java. So for example use can use Java Google App Engine. Look this http://www.wowebook.com/java/beginning-java-google-app-engine.html.
One more interesting link http://www.java-javafx.com/2010/05/graphical-counter-on-gaej-google-app.html
Edited by: prodesFx on Feb 22, 2011 11:06 AM -
Why Not One App for Mail, Address Book, and Cal?
I don't understand the logic of why Apple continues to keep all these applications seperated!
Why do I need iCal, Address Book, and Mail - three seperate applications that should really be under one. All three of these apps are connected to each other, so they should all be under the same umbella! Why waste the memory and processing power having all three open and just consolidate them all into one app like every other messaging client!
Can anybody explain to me why Apple continues to keep these items in seperate applications?Personal preference but I prefer having three separate applications.
Name like every other email client besides Microsoft's Entourage and Outlook that include all three applications under one umbrella. Entourage and Outlook define a bloated application IMO.
Entourage stores ALL data in a single large database which I'm not a fan of. If a problem develops with a single database that stores all data, there is the potential for all data to be lost. For the Mail.app, Address Book and iCal to be combined, it would probably require the same. Each has its own data files and storage location now.
When using the Mail.app, there is no reason to keep the Address Book application launched and running unless you need to edit an existing contact. You can add an email address to the Address Book that is not already entered from a received or sent message or from the list of Previous Recipients in Mail.
When the Mail.app, Address Book and iCal are launched, they take up some real memory (obviously) but combined, not much more than Entourage. When Entourage is launched and not being used, it is ALWAYS in an Active Processes state along with the Entourage Database Daemon which is not the same with the Mail.app, Address Book and iCal. -
my ipod will only download one app at a time and runs extremely slow. i was wondering if there is some way that i can make it download more than one app at a time and how can i make the app start downloading again after i have left my wi-fi zone and then went back in. im really confused.
Download everything on your computer in iTunes, then sync your iPod to iTunes.
You should be syncing (backing up) to iTunes and your photo app regurally, anyway. -
Can you download more than one app at a time?
Basically, can I purchase two apps for OS X, both large downloads, and leave it overnight trusting both to be ready when I come back to the machine? Will they download one at a time, or concurrently?
ThanksOnly one app can be downloaded simultaneously. However, if you select to install both before going to bed, both should be downloaded and installed when you wake up, before when one app finishes installing, the other one will start being installed
-
I upgraded from iPhone 3GS to iPhone 6. Everything converted fine. Yesterday I deleted an app in error. When I downloaded the software it from iTunes ( did this many times on the old 3GS), my account is no longer recognized by the app's host servers (Playtika), even though it did after the initial conversion. Can I go back and re-sync just one app from my old phone?
Try deleting what is called the iPod Photo Cache.
http://support.apple.com/kb/TS1314 -
We have been getting intermittent SCOM alarms for our Exchange 2010 MBX server citing "Indexing backlog reached a critical limit of 48 hours or the number of items in the retry queue is greater than 10000 for one or more databases"
I see events in EventViewer that SCOM is triggering on, but not whats generating the events or how else to test for them.
get-eventlog -computername SERVERNAME -logname "Application" -after "03/14/2013" | ?{$_.eventid -eq "5604"} | select MachineName,EventID,EntryType,Message | ft -autosize
One MS Forum post online says it is a bug in RU4, unclear if it may also be a bug in RU2 (our installed version).
http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/9dcb3011-9327-4935-9479-62b38a6ddd87
"I was looking for the same error and found this.. it basically says that this is a bug in RU4 and RU4-v2...and it needs to be removed."
tests using troubleshooting scripts find no issues with search indexer,
[PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>.\Troubleshoot-CI.ps1
Get-EventLog : No matches found
At C:\Program Files\Microsoft\Exchange Server\V14\scripts\CITSLibrary.ps1:622 char:40
+ $msftesqlCrashes = get-eventlog <<<< -computername $Server -after $StartTime -logname "Application" -source $msftesqlServiceName | where {$_.eventId
-eq $msftesqlCrashEventId}
+ CategoryInfo : ObjectNotFound: (:) [Get-EventLog], ArgumentException
+ FullyQualifiedErrorId : GetEventLogNoEntriesFound,Microsoft.PowerShell.Commands.GetEventLogCommand
Name IsDeadLocked CatalogStatusArray
SERVERNAME False {DATABASENAME\SERVERNAME, DATABASENAME\S...
[PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>
and tests against searches on each DB themselves show no issues and respond typically within 3 seconds.
[PS] C:\Program Files\Microsoft\Exchange Server\V14\scripts>Test-ExchangeSearch | ft Server, Database, ServerGuid, ResultFound, SearchTimeInSeconds, Error -AutoSize
Server Database ServerGuid ResultFound SearchTimeInSeconds Error
SERVERNAME DATABASENAME b16e3461-257c-40dd-a9ad-99a5f41a927e True 2.937
I also tried to check the Performance Viewer for the MSExchange Search Indexer and MXExchange Search Indices but am unsure which of the many metrics would indicate this issue.
We have had no reports of search issues from our users and have been unable to duplicate any impairment in our testing.
Does anyone else have any suggestions for tests to check or steps to take on this alert? Is it simply a false alarm or a timeout of other sorts during testing? We have 80 DAGs on this server (as well as all our servers, some of which have also reported the
same alert) and the Test-ExchangeSearch command times out before completely testing all DAGs.Hi IAMChrisL,
Any updates?
Frank Wang
TechNet Community Support
Maybe you are looking for
-
Ipod touch rejects correct password for home wifi/router
My ipod touch can get unsecured wifi ok (sometimes, which is another discussion) but when I set up a Linksys wireless router at home, my laptop is able to use the wireless but the ipod touch sees the router's name, but rejects the correct password. (
-
Can PIVOT be used in this version 'Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi'. And how to identify whether some functions are available in my version or not. I am using TOAD 9.7.2.5.
-
Every now and then, this thing happens on my W701ds, where I open the lid (I have it set so that it does nothing on closing the lid...so it's not coming out of sleep or anything) and the screen brightness level starts twitching back and forth between
-
I need help with some character replacement
I have a package that calls another package to determine if there are any of 4 values (&,<,>,") and I want to replace the value in the package with the proper value for HTML. If I can get the & figured out I can handle the rest, I just need help gett
-
HDV to DVD-Change Field Dominance Or Not?
A search I did recently pointed to this article: [http://www.larryjordan.biz/articles/bkhdvconvert.html] The author claims that when exporting an HDV sequence from FCP to Compressor, he changed the default field dominance from Upper to Lower, resulti