Is there something similar to online redefenition in sybase? - sybase

In oracle there is something called online redefenition.
I am new to sybase and I am searching for something similar in sybase.
the job of online redefenition is to re-orgnize the space of a table but online, it means it doesnt lock the table.
I read about re-org in sybase

Starting with SAP ASE 15.7 ESD#2, an online reorg option was added.
reorg rebuild <table_name> with online
It's documented in the New Features Guide for that version.
Be careful, as there is a known bug affecting ASE 15.7 SP 133 & SP 134 that can cause issues with this command.

Related

How to obtain these monitor metrics from a server in Sybase ASE 16?

I have a database hosted on a server. And I have to monitor the database with a script with the necessary queries and stored procedures. The metrics that I have to monitor are:
accounts or users are connected
transactions are activated
resources use transactions
what time
Processor use
Disk use
They told me that with MDA tables I can do it. How can I get those metrics with these MDA ASE tables? Or with what stored procedures could I obtain them?
You are asking about full functionality of a full featured program. There are commercial tools available - like Bradmark Surveilance, or free - like asetune. You can also write your own scripts.
You could be using build in procedures like sp_sysmon. Or you can write your own scripts that read MDA tables and store the results. You can also try to use the tools delivered with ASE server - like ASE cockpit, Sybase Control Center (older versions), or Sybase Central (ancient ASE versions).
One tool in Sybase that may be very helpful is sp_help table_name (just replace table_name with the name of the table you want to know more about). sp_help will show you everything you need to know about the tables, and columns in your database, and I've found it extremely helpful when I need to build queries, but can't remember the full structure of all the tables.
Once you have an idea of what values are stored where, you can build queries that will pull the information you need. As #Adam point out in his answer above, Sybase has built-in procedures that will gather at least some of this data. The Sybase InfoCenter is also a great source of information about what's available to you already.

How to find latest Sybase ASE queries within DB?

I have a PB application connecting to Sybase ASE; Is there a way we can trace the DB calls when the application is running.
I used to do that in Oracle 10/11G but unable to figure out in sybase ase.
It will be immensely helpful if I am able to run a module in PB application and check the queries executed after that.
I am using either DBVisualizer or RapidSQL.
Use the MDA tables. For example, monSysStatement and monSysSQLText. See the ASE documentation and/or www.sypron.nl/mda.

Migrate Sybase SQL Server/11.0.3.2 ( Sybase 11.0) to Sybase 11.9.2

I would like to migrate a instance of SQL Server/11.0.3.2 to Sybase 11.9.2 (i want use SSMA after that). There is no documentation on this subject on the web because it's too old (1997).
I only want migrate 3 databases of my instance. I try to dump a db to Sybase 12.5.4, not work, ddlgen not work on 11.0.3.2. With the system table, i can recreate the SQL script for table, view, procedure... and then i bcp the data. But i think it's not a good way, it's too long and not safe...
An other solution: upgrade the server to 11.9.2 (or more), but as i say, i only want migrate 3 databases.
If sombody have an other way to do that, it's will be a great help.
Thank in advance.
You should be able to take a database dump from 11.0.3 and load it into a later ASE version. It is not formally supported, but I have done this successfully for ASE 12.5.

Full-text catalog - what is ftCatalog in SQL Server?

Using select * from sys.fulltext_catalogs against my SQL Server 2008 database, I can see a full-text catalog.
I would like to know:
What is ftCatalog? Is a default value?
Could I remove it safely? How to do it?
Thanks for your help
I'm no FTS expert, but I have never seen a default full-text catalog created by SQL Server and the documentation doesn't mention it. By observation, none of my SQL Server 2008 databases have anything in sys.fulltext_catalogs.
However, the example in the documentation I linked to uses "ftCatalog" as the example catalog name, so to take a wild guess, someone else with access to the database created the catalog by copying the example in the documentation.
Whether or not it's safe to drop depends on who created it and why. If it's a development server and you're the only developer working on the database then the risk of dropping it is limited. But if this is a production database then I wouldn't, unless you can definitely verify why the catalog is there. sys.fulltext_indexes might be a good place to start your research.

flyway supported database

We have seen flyway framework for database migration. We are very keen to implement same in one of our project. We use Sybase database in our project however we did not find Sybase as a supported database in flyway documentation.
Could you please let us know if it does work for Sybase or will Sybase support will come in future.
Quoting the documentation :
If your database is not on this list, please raise an issue and we'll see what we can do to support it.
On one hand Flyway only executes SQL statements. On the other hand it needs to be database dialect-aware (statement delimiters, comments) to split SQL statements correctly. I guess it is not a big issue to support Sybase, but looks like it is not supported yet.
If you raise an issue, make sure to post a link to it here.
I know that this question was asked long time ago, however, i could say that right know Flyway support's Sybase, as you could see on documentation
Right now most common Sybase version is 15.70 which is supported by Flyway 5.X community edition and Flyway 6.X enterprise edition.

Resources