Need to connect to mongodb database present in a server - spring

I am working in an organization and I am supposed to connect to a mongodb database in one of the servers. As of now I have robomongo installed in my local machine and with that I can open the database and do operations like make collections and stuff.
I don't have mongodb installed in my local machine
But now I am trying to do it through spring , so do I need to install mongodb in my local machine??
Note: the database has credentials like username and password

No, you don't need to install MongoDB locally. The programming framework (in your case, Spring) will include a suitable driver which is capable of connecting to the MongoDB server.

Related

how to restore mongodb dump file on MongoDB Server On Windows VM In Azure

I m trying to restore a MongoDB dump file present on my windows machine into MongoDB server created inside azure portal as azure virtual machine, I have created this virtual machine and named it mongodbserver then I m connecting via SSH with the client for this case is the power shell CMD that I'm connecting with form my windows machine, now my questions are:
1.In order for me to restore MongoDB dump file where should it be in the server side? or either on my windows machine still I will be able to get it from there and restore it successfully in the server?
2.Can I use Filezilla client to move the database dump file into the server but the problem with this i don't have the password for the virtual machine created since I'm connecting via SSH and Filezilla will require password for it to connect.
3.After restoring the database successfully how can I connect this virtual machine with the MongoDB compass and also how can i get the database Uri in order for me to connect it with my spring application.
Any suggestions will be much appreciated!

How to connect my server to external world

I am working with database project for that I installed postgresSql, jboss and apache 2.4 in windows 7. I am able to get data from postgresql to jboss server then using apache(localhost:80) able to get data in browser within LAN. Now I want to connect this server to external world. Other people could access my server from browser. How to make my server to available for external server.
Thanks
You may edit the pg_hba.conf file

Connecting to remote Oracle database using Oracle Client

I have to connect to a remote Oracle database. Connection will only work with a VPN access to the remote network. I have already setup the VPN, and that is working.
Remote team has passed TNS.ORA settings. I have hardly worked on configuring oracle and neither I am aware of the setup that I need to have on my machine. I just need to run few queries to test the data.
Can somebody guide me on the setup and the configuration I need to have on my windows 7 to connect to a remote Oracle database ?.
My first assumption was to download Oracle client. I downloaded Oracle Insta Client files, but I have no idea how to configure it to connect to a remote database. I couldn't even find any ORA file in the installed files of Insta client.
One you installed the instant client and installed it, you can conect to the remote database by using an easyconnect string. If you are in sqlplus you can do the following:
CONNECT username#[//]host[:port][/service_name][:server][/instance_name]
Lets assume your remote host is remote1 and the service_name is test (This can be retrieved from the tnsnames.ora)
connect username#//remote1/test

access heroku DB via odbc on mac osx?

we need to build a heroku app which stores data in a DB table.
we have proprietary software that needs to connect via ODBC to the DB.
what driver do we need?
It depends if you are using a Shared or Dedicated database as to whether this is possible.
via the Heroku Dev Center

ADO.NET for connecting Oracle Database on server

Recently we have developed an application which connects to oracle database for fetching records. For fetching records, we are using OLEDB for Oracle. Application runs fine on my machine by connectng properly with Oracle ,since i have oracle client installed on my machine. Now i tried to test application on another machine, which doesnot have any oracle instance/Client installed on his machine. Application fails to connect to oracle central DB Server. Is it necessary for users to install oracle client on their machine before the application communicates with Oracle.
Here is Connection string
connectionString="Provider=msdaora;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=XYZ)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=abc.com)));Persist Security Info=False;User Id=mahens; Password=XXXXXXXXX" providerName="System.Data.SQLOLEDB"/>
The above code is for OLEDB for oracle. Is there any thing i required to install for connecting to central Oracle DB server from my windows application(.NET application installed on local machine).
If we try to use ODP.NET dll and include those dll's along within BIN directory,will that work?..Can any1 tell me a way wherein user need not install any oracle Client on their machine and communicate to server.
-Mahender
I believe you always need the oracle client installed as everything in .net ultimately uses ODP.NET. However, you can use the Oracle Instant Client to make your users' setup process easier.

Resources