How to backup a remote Sybase database to a local file? - sap-ase

I am connected remotely to a Sybase server that is on a UNIX machine. I am connected via isql GUI on a windows client. I do not have access to the UNIX server's interfaces file so I don't think I can set up my machine as a remote backup server. Can I use the following command to get a backup on my Windows machine?
dump database mydb to "C:\mydb.dmp"
Also what is the performance penalty? The database is about 9GB.
I suppose I should run this in the off hours if possible?

That won't work. Your best bet is probably to use the bcp utility, to export the data from each table.

Your windows machine should also:
1) have Sybase ASE AND Backup Service installed
2) define on both interfaces and sql.ini files in both instances.
Your command will then be:
dump database mydb to "C:\mydb.dmp" at wintel_bs
for more info:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc31644.1600/doc/html/san1371158725683.html

Related

Oracle Web Tool like PGAdmin for linux installation?

We're running serveral Oracle DBs hosted on AWS RDS. For security reasons, I can't connect to these DBs via Oracle SQL Developer, as the server are not exposed to the internet. I want to run a DB tool like PGAdmin on an EC2 instance and access this tool via webbrowser in order to manage my db, run sql queries etc.
Is there any tool out there you're aware of, fulfilling this needs?
Thanks!
I am working with OmniDB now - seems to do the trick.

Connect to external SQLite Database

I have a website, which is powered by an SQLite database (essentially a db file). Sometimes it is required to look at my database from other machines (within the same local network). For that purpose I currently use sqlite-web which provides a mini SQL web viewer into my db file.
Since sqlite-web's functionality is quite limited, I am wondering whether there are ways to let other machines connect to my local db file via normal desktop applications (such as DataGrip). Similar to how one can connect to postgres via jdbc:postgresql://host:port. Or is this not possible with SQLite?
Edit: I would like to limit the access (e.g. via username + password or a generic PIN), as I don't want everyone in the network to be able to connect to my db.
Map the drive and then use the file path of the mapping.
Or use remote desktop to access directly
https://support.microsoft.com/en-us/windows/how-to-use-remote-desktop-5fe128d5-8fb1-7a23-3b8a-41e636865e8c

Restore pg_basebackup on Linux which was created from a Windows hosted database cluster

Currently I am doing some Research on how to set up streaming replication for a HA postgresql architecture. But this issue is also relevant for us for backup/restore and maintenance in mixed environments in general.
Our "main" postgresql server is running on a Windows box. I am using pg_dump to create logical backups every day and pg_basebackup and WAL archiving to create a full backup which should provide PITR (I have not tested this yet).
Next step is to set up a slave machine which holds a replica via streaming replication. Due to the better Support of the postgresql ecosystem, this new host is running Ubuntu Server 16.04 LTS.
With pg_basebackup -h <main host> -D <datadirectory> --xlog-method=stream I initialized the slave datadirectory.
Then I had to fix some symbolic links onto tablespace files, as these were pointing on Windows paths instead of the Linux filesystem.
Next I created the recovery.conf file with standby_mode = on and the connectioninfo
I verified, that the Server is configured as hot_standby = on and started the daemon
Now I am running into issues as postgres tells me, that the "database locale (English_United_States.1252 which is obviously Windows specific) is incompatible with operating System"
Well, I am aware, that 1252 is a Windows specific locale and that I should use en_US.UTF8 on Linux, BUT in a mixed Environment like this, should I:
Init our main DB on Windows also with an en_US.UTF8 locale?
Is that even possible?
Why is the pg_basebackup format Operating System specific, or is there a backup Format which is not?
Is there any command line flag to set to translate this?
I would also appreciate it to use only Linux (or even only Windows), but I am afraid our customers will rely on both Operating Systems quite a while.
You cannot restore file system backups like the one that pg_basebackup creates on a different architecture, like restore a backup from Windows on Linux.
It is also impossible to have streaming repication in such a scenario.
From PostgreSQL v10 on, you might consider logical replication.

Access to database without installing any client/lib

I am currently on a project where I have 2 VM (virtual machine), a Windows and Linux one.
I also have an Oracle database where I have a simple table called "Material".
On the 2 VM, I want to connect to my Oracle database without any client or libraries. The thing is I want to create a script which would run on the VM and can connect to my database and insert some datas to my table "Material" but I can't install anything on my VM (like the mysqlclient for exemple).
So is it possible to connect to a database without installing anything on my VM? Or perhaps can I access to an online client to send my SQL to my Oracle Database?
I know it's quite difficult to understand my problem so if you have any question, feel free to ask.

How to find the connection information to Sybase DB

I have Sybase installed on my Linux box (to which I have "root" access). However I do not have the access details to Sybase, is there any way I can find the port Sybase is listening on, and also use linux root user to connect to the database.
You should check sybase interface file at the first.
Read f.e. this article about interface file structure.
http://www.outlands.demon.co.uk/sybase/index.html
After that copy env. variables from sybase user bash profile ant try to connect to database with isql utility (also explained in this article).

Resources