Can Apex 3.1 point to two database servers?
Our DBA would like to split an existing Apex server to point to an existing production database server for two applications, and a new (to-be-built this week) database server with a a copy of a third database cloned over there. Is this possible or do I build another Apex server for the new database server?
I mean the HTTP server. There is one marvel.conf with a single PlsqlDatabaseConnectString pointing to the database server. The Apex control tables are stored on the same database server, within the same Oracle instance, as the user data tables themselves. The database instance has tables supporting several "applications" (Apex page sets). We want a way to have certain pages interact with a completely different physical server that is running a clone of the Oracle Instance (renamed/unique Oracle Service Identifier).
This does not seem possible to me. Especially since my user data tables are FULL of clobs that are uploaded and downloaded by users thru the Apex interface. And this is only a temporary need until we test/validate the cloned instance. Then we plan to simply re-point the HTTP server to a new PlsqlDatabaseConnectString.
My gut tells me I would do best to just create a temporary internal HTTP server (virtualized) pointing to the cloned data server. Then our internal testers can have a complete interface for all uploads, downloads, and pressure tests.
Similar Messages
-
Can two database servers be installed on the same m./c and run simulataneously.
like
one oracle 10g installation and one oracle 9i server on same m/c and running??With different ORACLE_HOMES I can't see why not, though I haven't tried it yet.
The main issue is to have different ORACLE_HOMEs so the variables won't get mixed.
Tony Garabedian
Message was edited by:
Tony Garabedian
I think there might be some problem with Agent though. since it is One Machine/ One Agent up and running.
As I said, I haven't tried this yet, but it jumped on the top of my to do list. :) -
Can APEX/ORACLE connect to a mysql database?
Hi
Just wondered whether APEX and ORACLE could connect to mysql database. I may have a requirement to link to a mysql database and retrieve the data and wondered if APEX could do this.
ThanksHi
Apex sits within the Oracle database. Oracle can connect to a mysql database via a database link so yes this is certainly possible. We connect extensively to an Informix database here actually. This is really an oracle question though so you just need to look in the documentation for the CREATE DATABASE LINK command and for setting up the actual connection.
If you need more help let me know.
Cheers
Ben -
SCN Wraps occured diffrently on two Database Servers
Hi ,
We have 2 development Databases which are on 10g(10.2.0.4) version.
DB1
SCN = 4293806110
SCN_BAS=4293806110
SCN_WRP=0
Next it Incremented to
SCN = 4299357627
SCN_BAS=4390331
SCN_WRP=1
DB2
SCN = 3418871189
SCN_BAS=3418871189
SCN_WRP=0
Next it Incremented to
SCN =4520607388
SCN_BAS=225640092
SCN_WRP=1
Query Used
select time_mp,time_dp, scn_wrp, scn_bas, scn from sys.smon_scn_time order by time_dp asc;My Question is why both DB behaved differently.
Regards
NarasimhaHi ,
Within 5 min i don't think SCN will be incremented from 3418871189 to 4520607388.The DB was Completed Ideal with same export was taken during this period(09:22).
Output
DB1
TIME_MP TIME_DP SCN_WRP SCN_BAS SCN
715078868 31/03/2010 09:01:08 0 3418868071 3418868071
715079172 31/03/2010 09:06:12 0 3418868341 3418868341
715079479 31/03/2010 09:11:19 0 3418868963 3418868963
715079798 31/03/2010 09:16:38 0 3418870055 3418870055
715079894 31/03/2010 09:18:14 0 3418870148 3418870148
715080210 31/03/2010 09:23:30 0 3418871189 3418871189
715080436 31/03/2010 09:27:16 1 225640092 4520607388
715080749 31/03/2010 09:32:29 1 225640529 4520607825
715080860 31/03/2010 09:34:20 1 225649721 4520617017
715081207 31/03/2010 09:40:07 1 225650287 4520617583
715081345 31/03/2010 09:42:25 1 225650721 4520618017
715081649 31/03/2010 09:47:29 1 225651027 4520618323
715081950 31/03/2010 09:52:30 1 225651370 4520618666
715082251 31/03/2010 09:57:31 1 225668710 4520636006
715082585 31/03/2010 10:03:05 1 225669513 4520636809
715082850 31/03/2010 10:07:30 1 225669610 4520636906
715083150 31/03/2010 10:12:30 1 225670026 4520637322
715083455 31/03/2010 10:17:35 1 225670165 4520637461
715083756 31/03/2010 10:22:36 1 225670386 4520637682
715084066 31/03/2010 10:27:46 1 225670523 4520637819
DB2(this is expected Behavior)
TIME_MP TIME_DP SCN_WRP SCN_BAS SCN
715033034 30/03/2010 20:17:14 0 4282561802 4282561802
715033337 30/03/2010 20:22:17 0 4288124573 4288124573
715033340 30/03/2010 20:22:20 0 4288179110 4288179110
715033643 30/03/2010 20:27:23 0 4293751310 4293751310
715033646 30/03/2010 20:27:26 0 4293806110 4293806110
715033949 30/03/2010 20:32:29 1 4390331 4299357627
715033952 30/03/2010 20:32:32 1 4435996 4299403292
715034256 30/03/2010 20:37:36 1 10012898 4304980194
715034301 30/03/2010 20:38:21 1 10839545 4305806841
715034604 30/03/2010 20:43:24 1 16408669 4311375965
715034607 30/03/2010 20:43:27 1 16463373 4311430669
715034910 30/03/2010 20:48:30 1 22016293 4316983589 -
Hi There,
I have two database servers which is A and B and they are replicated.
If I connect to A is fail and I want to connect to B .. How do I modified my statement and connection .
thanks,
mhvan// your connection strings - for example
String connectionStringForA = "jdbc:mysql://localhost/yourdatabase?user=youruser&password=XXXX";
String connectionStringForB = ".......";
// your connection driver - for example
String connectionDriver = "com.mysql.jdbc.Driver";
// Connection reference
Connection sqlCon = null;
try {
// Load database driver
Class.forName(connectionDriver);
// Attempt to make connection with first connection string A
sqlCon = DriverManager.getConnection(connectionStringForA);
// Class not found exception do your handling
catch (ClassNotFoundException cnfex) {}
// first connection failed try second
catch (SQLException sqlex) {
try {
// Attempt to make connection with second connection string B
sqlCon = DriverManager.getConnection(connectionStringForB);
// Class not found exception do your handling
catch (ClassNotFoundException cnfex) {}
// second connection failed do your handling
catch (SQLException sqlex) {}
}rykk -
Multiple Database Servers Question
Hi,
Please forgive this ignorant question, but can someone tell
me how one would go about using multiple database servers?
Just as there comes a time where one would need more than
one web server and would need to use a load balancing
solution, what happens when one would need more than one
Database Server?
How does one go about implementing that solution?
Is there some way to have two database servers carrying the
same information with some kind of load balancing solution
in front of it(?) or does one place some tables on one
Database
server, and other tables on the other database server?
(I have no clue as to how things would work.)
Thanks in advance,
JoeMicrosoft SQL allows for clustering of SQL databases, so for
instance two servers connected to a fileshare and a virtual address
shared across the two physical boxes. Database connections are made
to the virtual addres which will then be handled by the active
node. Becuase a database is ultimately a file(s) on a disk it can
only be attached to one node at a time so you end up with an
active/inactive cluster. -
Can I use the same database for two WSUS servers?
Hi Folks,
Our HQ WSUS database is on a dedicated SQL Server 2008 in HQ. We are planning to set up a replica WSUS server in a branch office (centralized management mode). But we want to check the WSUS reports (e.g. computer/update status) only from the HQ instead
of each branch. I have two questions.
I should not install the SQL Server in Branch, and specify the HQ SQL Server as the Branch WSUS server database, right? In this case, I can check WSUS reports of both HQ and Branch from HQ, right?
Can I use a specific update source (e.g. Microsoft Update or other WSUS upsteam servers) for Branch WSUS server instead of HQ WSUS server even it's a replica WSUS server?
Thanks,
高麻雀Regarding to "If the branch office server is intended to be a replica server, then it must be configured with the HQ WSUS server as the update source", does it mean my branch WSUS server is only able to get the patches from my HQ WSUS server?
That is the fundamental premise of a downstream replica server.
Isn't it able to get the patches from Microsoft Update or other WSUS servers?
Well, here we may have a terminology challenge... so let me take a step back and answer this way:
A WSUS server obtains *updates* via the process of synchronization. Updates can be synchronized from one of two sources: Microsoft, or an Upstream WSUS Server.
Additionally, updates have a concept of APPROVAL. Approvals can be obtained from an Upstream WSUS Server when the server is configured as a REPLICA server; otherwise, Approvals are created at each individual WSUS server.
Finally, updates have FILES. Files can be obtained from Microsoft or the Upstream WSUS server, and this configuration option is absolutely independent of where the updates and/or approvals come from.
Please note: All of this is exhaustively documented and discussed in the
WSUS Deployment Guide. I would highly recommend reading it cover-to-cover.
In this case, there will a a lot of bandwith cost on the leased line which is only 2Mbps and intended for critical business like VDI/ERP applications.
A few thoughts here...
First a 2Mb/sec link is more than adequate to support a WSUS server downloading update files from an Upstream WSUS Server.
Second, using BITS you can configure when those files are transferred as well as how much of that 2Mb/sec is made available to the WSUS downstream server.
Third... Patch Management IS a critical business function. Do not let it be treated as a step-child or the VDI/ERP functionally will be irrelevant.
"after installing the replica server in the branch office, on the upstream server enable the option for Reporting Rollup", will the report information (computer/update status) be recorded in the HQ SQL Server?
The detail reporting data for the clients of the downstream replica servers is physically stored in the upstream server's database.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
How can i compare two databases and their tables
i have a text.txt file then
i will insert it into db_header and db_details
db_header has tbl_pcountheader with fld_Rack_No(char) PK and fld_DateAdded(date) PK
db_details has tbl_pcountdetails with fld_Rack_No(char) PK, fld_Barcode(char) PK and fld_Quantity(int)
then i will lookup in db_products
db_products has tbl_products and tbl_barcodes
tbl_products has fld_ItemCode
tbl_barcodes has fld_Barcode and fld_ItemCode
now i want to make a prompt contains
Rack No: Date:
Counter No:
Barcode | Item Code | Item Description | Quantity
how can i fill up this by comparing db_details and db_products?
Private Sub bt_upload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_upload.Click
If saveCheckBox.Checked = False Then
MsgBox("Please click the box to continue.")
Return
End If
If lb_file.SelectedItem Is Nothing Then
MessageBox.Show("Please select a file.")
Exit Sub
End If
' Obtain the file path from the list box selection.
Dim filePath = lb_file.SelectedItem.ToString
' Verify that the file was not removed since the Browse button was clicked.
If System.IO.File.Exists(filePath) = False Then
MessageBox.Show("File Not Found: " & filePath)
Exit Sub
End If
' Obtain file information in a string.
Dim fileInfoText As String = GetTextForOutput(filePath)
'LookUP db_header, db_details and db_products
Dim cs As String = "Database=;Data Source=localhost;" _
& "User Id=root;Password=1234"
Dim conn As New MySqlConnection(cs)
Dim ds As New DataSet
Dim da As New MySqlDataAdapter
Dim cmd As New MySqlCommand
Dim dt As New DataTable
Dim stm As String = "SELECT tbl_pcountheader.fld_Rack_No, tbl_pcountheader.fld_DateAdded, tbl_pcountdetails.fld_Barcode, tbl_products.fld_ItemCode, tbl_products.fld_ItemDesc, tbl_pcountdetails.fld_Quantity FROM db_header.tbl_pcountheader INNER JOIN db_details.tbl_pcountdetails ON db_details.tbl_pcountdetails.fld_Rack_No = db_header.tbl_pcountheader.fld_Rack_No INNER JOIN db_products.tbl_barcodes ON db_details.tbl_pcountdetails.fld_Barcode = db_products.tbl_barcodes.fld_Barcode INNER JOIN db_products.tbl_products ON db_products.tbl_barcodes.fld_ItemCode_fk = db_products.tbl_products.fld_ItemCode GROUP BY tbl_pcountheader.fld_Rack_No, tbl_pcountheader.fld_DateAdded ORDER BY tbl_pcountheader.fld_Rack_No"
ds = New DataSet
Try
conn.Open()
da = New MySqlDataAdapter(stm, conn)
da.Fill(ds, "tbl_pcountheader")
DataGridView1.DataSource = ds.Tables("tbl_pcountheader")
Dim headers = (From header As DataGridViewColumn In DataGridView1.Columns.Cast(Of DataGridViewColumn)() _
Select header.HeaderText).ToArray
Dim rows = From row As DataGridViewRow In DataGridView1.Rows.Cast(Of DataGridViewRow)() _
Where Not row.IsNewRow _
Select Array.ConvertAll(row.Cells.Cast(Of DataGridViewCell).ToArray, Function(c) If(c.Value IsNot Nothing, c.Value.ToString, ""))
Using sw As New IO.StreamWriter("c:\report.txt", append:=True)
sw.WriteLine(String.Join(",", headers))
For Each r In rows
sw.WriteLine(String.Join(",", r))
Next
End Using
ds.WriteXmlSchema("Sample.xml")
Dim cr As New CrystalReport1()
cr.SetDataSource(ds)
CrystalReportviewer1.ReportSource = cr
CrystalReportviewer1.Refresh()
Catch ex As MySqlException
MsgBox("Error: " & ex.ToString())
Finally
conn.Close()
End Try
' Show the file information.
Dim PrintPrompt As String
PrintPrompt = MsgBox(fileInfoText, MsgBoxStyle.YesNo, "ProofList")
If PrintPrompt = vbYes Then
'fileInfoText.print()
If saveCheckBox.Checked = True Then
' Place the log file in the same folder as the examined file.
Dim bakFolder As String = System.IO.Path.GetDirectoryName(filePath)
Dim bakFilePath = System.IO.Path.Combine(bakFolder, "back-up.bak")
Dim bakText As String = "Backed-Up: " & Date.Now.ToString & vbCrLf & fileInfoText & vbCrLf & vbCrLf
' Append text to the log file.
'System.IO.File.AppendAllText(bakFilePath, bakText)
My.Computer.FileSystem.WriteAllText(bakFilePath, bakText, append:=True)
'My.Computer.Network.UploadFile(bakFilePath, "C:\Documents and Settings\SAPC-TECH\My Documents\back-up file.bak", "", "", False, 1000)
'My.Computer.FileSystem.DeleteFile(bakFilePath)
'Form2.Show()
End If
'Note: This message box shows that you've uploaded a file and back up it.
MessageBox.Show("Already backed-up to ")
Else
'Me.Close()
'Application.Exit()
'End
End If
'Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
'Form2.Close()
'Me.Close()
End Sub
here's my final code that solves my problem.
i just make the environment of vb into mysql console
so that i can call all the database that i wanted.Private Sub bt_upload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt_upload.Click
If saveCheckBox.Checked = False Then
MsgBox("Please click the box to continue.")
Return
End If
If lb_file.SelectedItem Is Nothing Then
MessageBox.Show("Please select a file.")
Exit Sub
End If
' Obtain the file path from the list box selection.
Dim filePath = lb_file.SelectedItem.ToString
' Verify that the file was not removed since the Browse button was clicked.
If System.IO.File.Exists(filePath) = False Then
MessageBox.Show("File Not Found: " & filePath)
Exit Sub
End If
' Obtain file information in a string.
Dim fileInfoText As String = GetTextForOutput(filePath)
'LookUP comparison db_details to db_products
'Dim connString As String = "Database=db_products;Data Source=localhost;" & "User Id=root;Password=1234"
'Dim conn As New MySqlConnection(connString)
'Dim cmd As New MySqlCommand()
'Try
' conn.Open()
' cmd.Connection = conn
' cmd.CommandText = "SELECT Database1.dbo.TableName.ColumnName, Database2TableName.Name, 'The reason why Database 2 isnt defined is the fact that it has been defined in the connection" _
' FROM Database2TableName INNER JOIN _
' Database2TableName2 INNER JOIN _
' WHERE (Database1.dbo.TableName.ColumnName = '')"
' cmd.Prepare()
' cmd.ExecuteNonQuery()
' conn.Close()
'Catch ex As Exception
'End Try
' Show the file information.
Dim PrintPrompt As String
PrintPrompt = MsgBox(fileInfoText, MsgBoxStyle.YesNo, "ProofList")
If PrintPrompt = vbYes Then
'fileInfoText.print()
If saveCheckBox.Checked = True Then
' Place the log file in the same folder as the examined file.
Dim bakFolder As String = System.IO.Path.GetDirectoryName(filePath)
Dim bakFilePath = System.IO.Path.Combine(bakFolder, "back-up.bak")
Dim bakText As String = "Backed-Up: " & Date.Now.ToString & vbCrLf & fileInfoText & vbCrLf & vbCrLf
' Append text to the log file.
'System.IO.File.AppendAllText(bakFilePath, bakText)
My.Computer.FileSystem.WriteAllText(bakFilePath, bakText, append:=True)
'My.Computer.Network.UploadFile(bakFilePath, "C:\Documents and Settings\SAPC-TECH\My Documents\back-up file.bak", "", "", False, 1000)
'My.Computer.FileSystem.DeleteFile(bakFilePath)
Form2.Show()
End If
'Note: This message box shows that you've uploaded a file and back up it.
MessageBox.Show("Already backed-up to ")
Else
Me.Close()
Application.Exit()
End
End If
Me.DialogResult = System.Windows.Forms.DialogResult.Cancel
Form2.Close()
Me.Close()
End Sub
here's my code wherein i have to compare the two database and save it into .txt file
i just have to get this items
Rack No:
Date:
Counter No:
Barcode:
Item Code:
Item Description:
Quantity:
as a prooflist to be print out. -
How can I use two database in an application?
When I use two database like CloudscapeDB and TestDB in J2EE1.3.1, I always get some exceptions, which is unknow source about one of them.I am doing a CMP entity bean application. Can someone tell how to set up the environment and what is problem about the exceptions I met?
Thanks.Hi,
The basics for using the two databases is simple.
For database configuration you have to provide the driver class name, url, schema name and password during the creation of the connection pools. So u can create a as many no. of connection pools as the no. of the databases.
Hope it will work.. -
The current database is 2.5 gb, but it is already on SQL Server 2008, and doesn’t need to be upgraded.
In reading the documentation, it looks like the installer can install a fresh copy, which I’m assuming creates the requisite tables in the database. It can also update an existing install, along with updating the database table structure. What we weren’t sure of was if it could do a fresh install on a new server, but point to an database currently used by the older version of tidal. It does say ‘The database modifications are performed when the master is first started after the installation.’ in the upgrade section of 6.2.1 Quickstart Page 6-5. Hopefully that works regardless of if it was an upgrade or a fresh install.We worked with one of their partners gssinfotech to create a custom runbook for "upgrade in place"
I think you might have to go to SQL2012 with 6.2.1 (there's a ton of benefits like always on that make BCP/DR with Tidal very smooth.) We've been Tidal 6 /SQL2012 for a while now so I forget. we're about 80% done with our 5.3.1 conversion
We restore our 5.3.1 admiral database to a sandbox SQL2012 server, run some cleanup script (if not upgrade in place, don't forget to set queue to zero and disable all jobs)
We installed a tidal Master then run every major rev and point to that database. (6.0,6.1,6.2,6.2 sp1)
The database gets upgraded during the process (we have some trouble with our "older" 531 so we do the same thing each time)
We then can use transporter to transport "legacy" 531 jobs to our pristine Tidal 6.2.1 (non-prod ) environment so we can take advantage of mapping files, etc. to switch things as needed
This gives a lot of flexibility to moving things in when one piece or job set at a time.. we use it to move job frameworks into nonprod Tidal 6 so that developers and other groups can review / asses / rewrite / test / their jobs on tidal 6.
Marc -
My old XP computer recently died and I had to build a new Windows 8.1 machine. While I was down I used a laptop as a temporary replacement. Now my new machine is running fine and receiving e-mail, but I now have two databases--one on the new machine and one on the laptop. Both are based on a recent backup, so they are lengthy--except that the new machine's database has a hole in it for the period I was on the laptop and the laptop's database also has gaps. How can I combine two databases into one that includes the messages from both machines?
Thanks in advance,
profsimonieThanks for your reply. My profile folder did not contain any MBOX files. I found them in another folder on another drive. The Import-Export tools simply transferred each folder to the current one as a sub-folder. Then I had to use ctrl-a to select everything in the folder and move them manually to the current folder (such as inbox). Then I could use the other utility you mentioned to remove the duplicates. This had to be done, one folder at a time, to combine each folder. It worked, but I had about thirty-five folders to deal with. The whole process took most of two days to complete. I wish there was a simple way to blend everything together in one action, but I could not find an add-on that would do this.
Frank Simonie -
Can I open these two database simultaneously on a same system?
I have cloned the current database using Oracle EM Clone tool on a same WinXP system. Can I open these two database simultaneously on a same system? If can, How can Iogin to another database(cloned database)?
You should be able to start both databases if you did the cloning correctly.
EM use RMAN duplicate to clone database. It's basically created a AUXILIARY database and duplicate target database into it.
You must enter destination global name and instance name before proceed. What's instance name you entered?
set your ORACLE_SID to that instance name and login. -
Hi can anyone explain me how to syncronize two database using jsp?
Hi can anyone explain me how to syncronize two database using jsp?
I thinking than you really need the jsp page for calling the java methods whith sincronize the database.You think wrong.
You wrote a bad question.What was bad about it?
You need a java method for sincronize the two databases using a jsp page.No you don't, see my answer. -
Can EntityBean have two Database connection?
assume:
There is two database wihich has AAA table, and AAA table has same
structure, so I want to use an EntityBean to use AAA table, then how can
I program for this?Then how to tell the entity beans to choose which datasource to use during runtime?
Let say i have 2 users. Each user maintains their own session.
User A wants to access BMP AAA with datasource jdbc/dsA, but at the same time
user B would like to acess the same BMP AAA but with datasource jdbc/dsB.
Can BMP cater this? Thanks for your reply. -
I'm in the process of transferring stuff from appleworks on os10.4.11 to my new mini mac. How can I transfer two database (DB) files?
I do not know of any application that can open them, sorry.
Or then again (sorry it's early here)
Filemaker claim that Bento can open them, I there is a free trial available, and Bento is cheap.
Maybe you are looking for
-
Acrobat X Pro to XI Standard Upgrade Path
Is there a way to upgrade my Adobe Acrobat X Pro to Adobe Acrobat XI Standard? I find I really don't need the features of the Pro version and would like to save money upgrading to XI.
-
6/8/2012 - AIR 3.3 Release Announcement
Today we're pleased to announce that the next version of AIR, 3.3.0.3650, is available for immediate download. This update includes the following new features: USB debugging for AIR iOS — This new feature allows the iOS developer to connect to the d
-
AL_Designer DLL has stopped working message
I am trying to import tables form oracle to a newly created datastore, when i used my username as table owner, it threw error invalid object or table doesn't exist. when i changed the owner name to P500 then it imported the table into my datastore. B
-
Hi,I would like to play music for my friends from my Macbook and I need soft which can split sound output. So from iTunes sound will go to general out to speakers, and "que" sound from Quicktimeplayer or VLC to headphones connected to USB. Well anybo
-
Once the Add-on is loaded into SAP B1 it is genearting follwing the warning message
Hi Experts , Once the Add-on is loaded into SAP B1 it is genearting follwing the warning message is "Conversion from string """" to type 'Double' is not valid " Please find the attachment Thanks for the Support, Satish.