How to transfer monetdb database to another machine - monetdb

I created monetdb database using the python library https://pypi.python.org/pypi/python-monetdb/11.16.0.7 on my ubuntu 12.04 lts server. Now I want to transfer this database to another ubuntu 12.04 lts server. However, I am unable to understand as to where(directory name) does monetdb create its database (within ubuntu 12.04) and what is the procedure which I must follow to transfer this database to another machine (so that i may query the database on another machine)?

You can find out where MonetDB stores data by running the following query in a client:
select value from environment() where name = 'gdk_dbfarm';
. Every database is a subdirectory of this directory. If you copy this directory to the same location on the other machine (and set permissions appropriately), you should get a replica of your database. Make sure you shut down the MonetDB server before copying.

Related

Can the installation of Oracle APEX on LINUX be accomplished if Oracle DB resides on separate system?

Wonder if this can be achieved. Install Oracle APEX onto a Linux VM and have Oracle DB residing on a separate server to point to it. Is it possible to install Oracle APEX without Oracle currently installed on the same box? Can't find any documentation on the Oracle site for this setup.
No. Application Express (APEX) runs out of the database itself. APEX is a collection of PL/SQL packages and tables.
Now the web tier could most definitely be moved to another machine (linux even). That would be something like Oracle REST Data Services and Apache Tomcat.

Multiple Oracle 12C Database Installation - Same Server

We are having Windows Server 2012. In that, currently Oracle 12C is up and running. The oracle related files and database files are in a Hard Drive. If in case, that drive goes down, for a backup perspective i am planning to install one more oracle 12C in the same server, but in different drive. So that, if the Primary Database is crashed, the secondary database can be used.
Is that possible to install one more Oracle 12C version, in the same server, without the disturbing the 1st instance.
Best solution, create standby database for primary database. Using archive logs standby will be refreshed automatically.

Getting error while talking to remote Oracle DB using Jenkins-CI

I am trying to connect to Oracle DB using Jenkins, I am trying to use the sqlplus-script-runner-plugin. Running into below issue
ERROR: ORACLE_HOME directory [/u01/app/oracle/product/11.2.0.4/db_1] does not exist!
Sample Screenshot from Jenkins Job
I even try to add the Jenkins user to ointsall group on remote Oracle DB server. Can any one help me finding the problem here.
I've to install Oracle XE to talk to remote DB servers, it solved my problem.

Oracle Data Pump expdp to local computer that does not have oracle installed

Hi I've been reading this instruction:
http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php#NetworkExportsImports
From my understanding, I need to login my local oracle database, establish a database link to the remote oracle server, then use expdp to export database to local.
But now I only have sqlplus installed in local computer, how can I expdp to local?
Thank you very much.
You can't. expdp only works locally. The database link is just a kludge to make the Oracle instance on your current machine be able to see the data in the other database. If you truly need a remote back up, your only non-custom or third party option would be exp, but that's deprecated. (I'm not aware of any third party solutions, either.)
Another option to consider is running the command on the remote server and then using something else to copy the file. This is more feasible if you run a Linux server, since you can likely use SSH and SFTP.
You could try Oracle Express on your local machine if you want to pursue the database link option. That is a very heavy solution, of course.
(In all honesty, I have had endless troubles with expdp anyway. Well, more with impdp, but still. The data dump/restore situation in Oracle is not very good, in my opinion.)

Run commandline command at remote Oracle server using SQL*Plus

I have a machine running Oracle 10g server in windows server 2008. I want to take backup of the database. I also want to take backup of some files saved on hard disk by oracle server that users have uploaded using my website.
I can connect to the Oracle server using sql developer and sqlplus. I can run sql queries on the server.
In order to take backup of database I have to run the command "exp" (this is the only way of taking backup of databases that I know). There might be some other way but there is another problem because of which I must run dos command. That problem is to take backup of files. These files are stored in c:\mydir. The folder mydir is not accessible anyway through web and is not a shared folder.
I have tried running "host " in sqlplus after connecting to oracle server, that is at "sql>" prompt. The command ran successfuly but at local machine, not at oracle server.
Edit: The "host" command is provided by sqlplus and is not an oracle command, means cannot be used in a query. Sqlplus even when connected to remote machine run the "host" command at local machine.
The target is to either make sqlplus run the "host" command at remote machine, Or run the dos command from inside a pl/sql query (independent of sqlplus).
In addition to what Justin has written:
If you want to take a logical snapshot of the database the new DataPump tool is preferred over the old (and deprecated) exp tool.
DataPump is a commandline tool (expdp) but also has a SQL API through Oracle packages and procedures.
The Data Pump API (including examples)
DBMS_DATAPUMP (reference)
But if you want a "real" backup you should look into RMAN
It is possible to create a Java stored procedure on the database server that executes an operating system command on the Oracle server. But it would be extremely unusual to use the export utility to backup a database-- that only creates a logical backup not a more appropriate physical backup. And it would be extremely unusual to run a backup by connecting to the database via SQL*Plus and spawning a job on the server operating system. It would make much more sense to create a job using the Windows scheduler on the database server that ran whatever export commands you want to run.

Resources