Solved

One application ... accessing 2 different databases

Posted on 2014-12-10
7
149 Views
Last Modified: 2015-01-03
Come across an interesting situation; one application is connecting to 2 different databases, where as it should connect to only one, now how to figure it out, which one is the good & correct one.

Application has different kind of users, some accessing one db, but others 2nd db, now need to figure it out, which one is the good and acceptable one.

Please advise/suggest, what should be the best possible course of action, in order to figure it out, which one is the correct one.

Need to proof this from different perspectives; data/changes, active/logged in sessions and DDL basis too.

Please guide, thanks in advance.
0
Comment
Question by:mkhandba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 57
ID: 40491544
<<Application has different kind of users, some accessing one db, but others 2nd db, now need to figure it out, which one is the good and acceptable one.>>

 I am not sure anyone here can answer that for you.   If users are writing data to two different databases each with the same tables, then neither would be correct.

 It would become a job then of analyzing and merging the data between the two to get a "good" database.

Jim.
0
 
LVL 57
ID: 40491556
Note too that it may be as it was designed.  There is nothing that says you cannot use more than one data source.  

  If each group of users do different functions, and those functions are not duplicated between the two DB's, then both are correct and needed.

Jim.
0
 

Author Comment

by:mkhandba
ID: 40493077
thanks Jim, but basically there are couple of issues, I just need to tell, who is connecting from where and what users/sessions are doing on the db.

Is there any way to find all these information, some kind of logging info, we don't have login trigger, but is there any Oracle view, which can give me all these data?
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 77

Assisted Solution

by:slightwv (䄆 Netminder)
slightwv (䄆 Netminder) earned 500 total points
ID: 40493658
v$session will tell you about existing sessions.

There are many columns in that view but the basics about what you are asking is here:
select username,program,machine,osuser from v$session;

The online docs will explain the rest of the columns.

The listener.log file on the database server should show all connections over time and not just the current ones.

Unless you have auditing turned on I don't think you can get the rest of the information you are wanting.
0
 

Author Comment

by:mkhandba
ID: 40493676
Can see log.xml file under listener log folder, how to find stuff from there? Or is this the correct file?
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 40493720
There are many ways to view an XML file.  For example:  Internet Explorer should be able to open it.  As far as extracting data from it, there are also many tools that will allow you to parse an XML file.  You just need to find one that will work for you.

All that said:
look up a directory level from where the log.xml file is and you should see a trace folder.  In there is the old style listener.log that that is plain text and can be opened with just about anything.
0
 

Author Comment

by:mkhandba
ID: 40511984
thanks ... will get back soon.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question