New to SQL anywhere - db rebuilding question

Hi there,
I have inherited a small project involving a SQL Anywhere database that I have a question about. I have a database file that was created years ago and is hosted on a network server that a small number of client applications access. Over the years, the version of the db engine has been upgraded (currently running on SQL Anywhere 16), but the database file itself has not. I am currently archiving and cleaning out a bunch of data, and I wanted to run a rebuild on the database. During my crash course of SQL Anywhere, I read that the only way to rebuild the db is to unload and then reload it, which I did using Sybase Central. However, it appears that this also upgrades the db version, which makes a few of the client applications unhappy when they try to connect (these apps are not currently under my control). In corresponding with the person who previously maintained this db, it seems that the db file was originally created on version 12 of SQL anywhere, though I don't have an exact version number. Is it possible to reload the database into an 'old version' (for lack of a better term) using the existing engine, or do I need to try and find a copy of 12 to do this with?

Hi Jose,
I have been, and I've been able to manage some of the data this way. I was hoping to try and rebuild the file itself though so that the size would shrink. It would hopefully make our weekly backups take a bit less time. What I tried to do was follow the Unload Database wizard and had it unload/reload into a newly created database. The new database has all the right data and the file size itself is smaller, but I see that it added new features (I'm not sure if that's the right terminology. In the newly-created db for example, I see things like 'Sequence Generators', and 'Spacial Reference Systems' in the Sybase Central browsing tree, which are not present in the old version of the db).
I guess what I'm asking basically is, can the v16 SQLA db engine create or reload into a new database that has the old legacy version 12 features? And if that's not the case, would any minor version of the v12 engine work (I only know the file was originally created with v12, not the minor version). For whatever reason, the client applications are expecting a v12 database. I could go without rebuilding to shrink the db if necessary, I was just hoping to do so and save some time/storage space for our backups since I archived and purged a few GB of data out of the file.

Similar Messages

  • NLS in SQL Anywhere 16

    I'm relatively new to SQL Anywhere, so my apologies in advance for any obvious questions.
    I have a potential customer who is using an older version of SQL Anywhere, and wants to know about version 16 national language support (NLS).  They specifically asked about Chinese, Thai, and Vietnamese.
    Referring to the product documentation here: http://dcx.sybase.com/index.html#sa160/en/dbadmin/language-locale-natlang.html
    It appears that both traditional and simplified Chinese, along with Thai, are supported.
    So, two questions:
    Am I looking at the right place to understand the NLS in SQA?
    Is there any way to support Vietnamese?
    Thanks in advance for your help!
    Regards, Derek

    Hello Arcady,
    They were previously using version 10 of the product.  Just had a clarification from them - the question is around storing and working with Vietnamese text.  They do not require the product documentation, admin tools, etc. to be in Vietnamese.
    So your response above confirms that they would be able to have an application which stores and retrieves (including select queries, etc.) Vietnamese text in the SQL Anywhere product... whether it is via the primary database, Ultralite, MobiLink, etc.?
    Thanks, just trying to make sure there's no limitations around what they want to do.
    Cheers!

  • SQL Anywhere 11 databases are getting corrupt

    Hi
    We are having problems with databases that are getting corrupted.
    We have a server that runs a SQL Anywhere 11 database. (the consolidated database)
    Beside that, we have about 15 remote databases that run on the laptops of our mobile workforces.
    To keep all databases in sync, we have setup a two-way server-to-laptop replication.
    For the replication process we use “SQL Remote”.
    Each laptop should replicate his data once in about 1 or 2 weeks.
    For exchanging the messages we use the message type “file”.
    This year we already experienced 6 times that a remote database got corrupt after replication. (after running dbremote.exe).
    The log file of the dbremote utility does NOT show any errors, the replication seems to be finished without any problems.
    But after this, it’s not possible anymore to connect to the database, because of the following assertion error:
    [Sybase][ODBC Driver][SQL Anywhere]Internal database error *** ERROR *** Assertion failed: 201501 (11.0.1.2376)
    Page 0x0:0x7182d1 for requested record not a table page -- transaction rolled back
    Error code=-301
    SQL state=HY000
    Can someone tell me more about this error?
    What goes wrong and why?
    Or does someone has some tips on how to prevent this or tips on how I can do some analyzing myself to see what exactly got broken in the database?
    Any help is appreciated.
    Thanks.

    Hi Krenton,
    Page 0x0:0x7182d1 for requested record not a table page -- transaction rolled back
    Error code=-301
    SQL state=HY000
    Can someone tell me more about this error?
    Specifically, the page at offset 0x7182d1 in database (So if you have a 4KB page size, this would be byte offset 7439057 x 4096 = 30470377472 into the database) in 0x0 (the main database running) has a page header that indicates that the data on the page is not table data. We don't know what it is, but the signature for table information connected to the table you're scanning is 'not as it should be'.
    What goes wrong and why?
    In the real world, lots of things can go wrong. I list some of the possible things on this question here on the SQL Anywhere forum. This list can include software bugs, but can also include instances where the media is not respecting write-through or write-ordering - see http://scn.sap.com/docs/DOC-34090 (SQL Anywhere I/O Requirements for Linux and Windows) for more details.
    There are also known instances where Intel drivers are not set with the correct write-through settings. The details of this are in the documentation: DocCommentXchange (Improving Robustness on Intel storage drivers).
    Technical Support should still provide assistance. If the problem is a newly-discovered bug in SQL Anywhere 11, their advice will be to apply a more recent EBF or upgrade to a new version. However, that is unlikely in this case.
    Breck is correct - it would probably be best to take a look at the database file in technical support for more clues as to what's happening here. With the current information, it's hard to say more than "something was not correct at the time the page was looked at by the database server."
    Regards,
    Jeff Albion
    SAP Active Global Support

  • Inconsistent behaviour of Sybase SQL anywhere update column trigger

    Hi, all
    I am not sure where to post this issue, since I could not find a forum for Sybase SQL anywhere.
    The problem is as follows:
    The definition of the update column trigger in help is this:
    UPDATE OF column-list
    Invokes the trigger whenever a row of the associated table is updated such
    that a column in the column-list is
    modified.
    However, there are cases when the triggers are launched even when the columns are not modified (ie the same exact value is in the both OLD and NEW row)
    This happens on BEFORE triggers, never saw it happening on AFTER.
    Ways to replicate the problem:
    1. Define a before trigger, which fires on update of a specific column in any table.
    2. Run an sql which says "update table1 set column1 = column1 where ... "
    3. You will see that trigger fires, even though it is not supposed to.
    Is this an expected behaviour on "BEFORE" triggers?
    Arcady

    If this were a sql server question, then I could tell you that this is by design.  A trigger will be executed regardless of the number of rows affected (including zero) and regardless of whether any column in any of the affected rows was changed.  I will also point out that PB was designed to work within this design by the inclusion of the [where clause for update/delete] option in the update properties of the datawindow.  The idea is that you avoid actual row updates (in the table) where nothing has actually changed (and it also supports collision avoidance).
    Based on the history, I would assume that Sybase works exactly the same.

  • Sql Anywhere product road map

    Hello, all
    Our company is about to start a new large project soon.
    Several DB providers are being evaluated, among them SAP SQL Anywhere.
    Since this is going to be a product line for the next 15-20 years, we need to know if SAP has road map for SQL Anywhere.
    The vagueness of SQL anywhere  future is currently the biggest drawback for us, since technically it is an excellent solution.
    If anyone can point me to the product road map, it would very helpful.
    Thank you
    Arcady

    Hi Arcady,
         As far as I know, SQL Anywhere is alive and well.  In addition to being offered as an product for sale to end users and OEMs, it is part of, or included with, many other SAP solutions.  For example, SQL Anywhere is included as part of Business Objects and the SAP Mobile Platform, and SQL Anywhere data synchronization (MobiLink) is currently in beta as a new offering for the Hana Cloud Platform.
    There is a recent product roadmap for SQL Anywhere posted on SAP Service Marketplace, which you should be able to access if you have an account.
    Development is continuing on SQL Anywhere and a new release is planned for this year (I don't believe a firm date has been announced yet).
    Hopefully this information helps to address your concerns.  If not, please feel free to contact me directly if you have any further questions about the future of SQL Anywhere (firstname dot lastname at sap dot com).
    --Jason Hinsperger
    Sr. Product Manager
    SAP

  • Afaria sql anywhere issue

    Below Prerequisites has been installed:
    -MS .NET Framework 4.5 installed
    -Visual C++ 2012 Redistributable Update 4 x86 installed
    -Visual C++ 2012 Redistributable Update 4 x64 installed
    after the  installation of the sql anywhere DB, we are getting below error.
    Detail of the Error:
    Installed Sybase SQL Anywhere 12 and its shows complete without issue
    dbeng12.exe is missing and getting message Can't create database on local server. Also attached error while creating new DB.

    Hi,
    You will not get a reply, if you ask question in wrong forum.
    Please put your question related to Afaria here: SAP for Mobile
    Regards,
    Ashwani Kr Sharma

  • How to connect to SQL Anywhere db dynamically - No ODBC -

    Hello all -
    We have an application (c++) with several reports (crystal 10) that are dynamically connected to several access databases depending on the users request. We are now moving that application to .net (c#) and SQL Anywhere 11. I am able to create an odbc connection and use that connection to develop reports against the new database, but am unable to locate any information on how a connection can be established on the fly to run the report against different database instances. Can this be done dynamically from the application preferably with ADO.net? How? Where Can I find documentation supporting this?
    Thanks in advance for you assistance,
    Shawn

    See the [Crystal Reports Guide To ADO.NET|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20]
    and [Reporting Off ADO.NET Datasets|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2091d0c3-da1d-2b10-22be-a3426b183f75]
    Other useful resources.
    Troubleshooting Issues with VS .NET Datasets and Crystal Reports blog:
    /people/ludek.uher/blog/2009/03/02/troubleshooting-issues-with-vs-net-datasets-and-crystal-reports
    Samples:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208edbbf-671e-2b10-d7b5-9b57a832e427
    VS2005 Walkthroughs:
    http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
    Also, search the forums. there is tons of info here.
    Ludek

  • Sybase  with ase and sql anywhere 16 using ssma

    ok this may sound like a very dumb question but how does one connect to sybase central (sql 16 anywhere) using ssma.
    In my ase connections when i do test connection it returns successful however when i click on ssma > connect to sybase  it returns
    ERROR [08001] [SAP][ASE ODBC Driver]Client unable to establish a connection
    i have my network server running on sybase using sql anywhere 16 network server.
    I also had my firewalls off
    any help would be appreciated.

    Hi Jeff ,
    Thank you so much for the reply.
    I have used 32 bit PHP.
    But now we have resolved above mentioned issue. Now we can connect PHP with SQL Anywhere successfully.
    Regards,
    Vishal Chikhalikar
    PHP Programmer

  • SQL server service accounts question

    We created a test SQL environment using a Technet evaluation copy of Windows Server 2012 along with an evaluation copy of SQL2012. After testing, everything is working as planned so were going to enter the product keys for both Windows Server and SQL 2012.
    My question is that once we have our Server licensed we’re going to start a new domain and recreate all the user accounts but I installed SQL using a local user account I created called ”sqladmin”. Once Server 2012 is the DC in the new domain will I need to
    change all the service accounts for SQL in order for it to function or can I still use the local “sqladmin” user account? If I can re-use that local account are there any downside to that? What’s the best practice in this scenario

     Once Server 2012 is the DC in the new domain will I need to change all the service accounts for SQL in order for it to function or can I still use the local “sqladmin” user account? If I can re-use that local account are there any downside to that?
    What’s the best practice in this scenario
    Hi,
    You can use your sqladmin account but that wont be a good security practice. You should always follow principal of least privilege and should run SQL server with domain account having least privilege.Below link will help you in this
    Configure SQL server account and services
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

  • Sql Anywhere v11 with 5 seats

    Hello,
    I have a peculiar problem. I have SqlAnywhere v11 with 5 seats. I have been using it since 8/10/2009. And recently the machine where we housed everything crashed completely. Now I am stock. And I need to deploy the application with the database. I don't have the software anywhere else. I contacted the vendor Programmer's Paradise (Alias TechXtend). They were able to justify my order number and invoice. But they don't have the product anywhere for me to get. SAP recommended that I raise the issue here. Is there any help out there?
    Placide.

    Hi Placide,
    If the original vendor doesn't have the software available, I don't believe you will be able to obtain this software. SQL Anywhere 11 was end-of-life'd, prior to the SAP acquisition of Sybase.
    SQL Anywhere 16 / SQL Anywhere 12 are available via the SAP Store. For details on this, see this question on the SQL Anywhere forum.
    Regards,
    Jeff Albion
    SAP Active Global Support

  • SQL Anywhere Licenses v9 with v16 and v16 with v9

    Have a customer running Sybase SQL Anywhere v9.
    They currently have nine networked client licenses.
    They need an additional seven.
    The current SAP license offering is v16 networked client licenses.
    Will v16 networked client licenses work with v9 SQL Anywhere?
    Additionally,
    The customer will eventually upgrade to SQL Anywhere v16.
    Will their current v9 networked client licenses work with SQL Anywhere v16?
    Thanks.

    Hi George,
    I believe that the client needs to buy or upgrade (if this is possible) the available licenses to the last version to be legal... If your question is about using asa 9 client to connect in a v. 16 server, then the answer is,  it should work, but only functionality from asa 9 will be available in the client side. Actually, in the past we had an issue, where a 3rd party application was not able to communicate with an sql anywhere server v.11 using v.11 client. But it was working fine to connect using obbc client from asa 8! We do have a cpu license which has no limit on the clients... So we used asa 8 to connect through the 3rd party app, and 11 client to connect through our application.
    And the remaining question is if it's legal or not... and I'm not the appropriate person to give an answer...
    Andreas.

  • Trouble with SQL Anywhere 16

    We are having an issue with SQL Anywhere 16 and were wondering if there is a patch/fix or something that we need to look elsewhere. Our tester is being kicked out of out Sybase application whenever doing certain types of queries and as a result the database is being shutdown. We then have to go back into Sybase 16 and restart the database. We do not recall having this problem with SQL Anywhere 11.5. We have just recently upgraded to SQL Anywhere 16.

    Hi Lawrence,
    I think there's some confusion from both groups on this question. There was never a SQL Anywhere 11.5 version - we had SQL Anywhere 11.0.0, and SQL Anywhere 11.0.1. There was an ASE 11.5 and ASE 16.0 release though, so it is confusing to know which product you are inquiring about based on the version.
    Please provide some further details about which product you are using, the method in which you're using to start your database, and the connection strings that you're using. Hopefully with some more specific database configuration information, we can help you figure out which database product you're looking for additional help on and provide some suggestions.
    Thanks,
    Jeff Albion
    SAP Active Global Support

  • Replication from SQL Anywhere to Microsoft SQL Server

    SQL Anywhere Community,
    I have a customer who wants to replicated their Replication from SQL Anywhere to Microsoft SQL Server Data Warehouse.  Are there any whitepapers on this or qualified consultants that could deliver?
    Regards,
    Joseph Shaffner | Vice President, SAP Solutions | Bradmark Technologies, Inc.
      T: 1-301-535-2537 | [email protected]

    Hi Joseph,
    I can help with the "whitepaper" aspect of this question. All of the information for synchronizing with MobiLink can be found in the official SQL Anywhere documentation: http://dcx.sap.com/
    We have tutorials for SQL Anywhere, Adaptive Server Enterprise, and Oracle available in the documentation. However, the tutorials can be easily adapted to work with Microsoft SQL Server.
    I can also provide some further technical information about synchronizing to Microsoft SQL Server:
    The general tutorial for working with MobiLink in Sybase Central and with a MobiLink Synchronization Model is here:
    http://dcx.sap.com/index.html#sa160/en/mlstart/sqlatut.html
    Initially, you may want to follow it "as-is" (which uses a SQL Anywhere consolidated database) in order to get a better understanding of the MobiLink product. You can then move on to using a Microsoft SQL Server consolidated database afterwards.
    Changing the tutorial to work with a different consolidated database is mostly related to creating an ODBC DSN that targets a Microsoft SQL Server instance. You would pick that DSN when defining a consolidated database in your MobiLink synchronization model. The rest of the instructions regarding creating scripts and models is the same, but using Microsoft SQL Server SQL syntax (T-SQL) instead of SQL Anywhere syntax inside the synchronization scripts.
    You will need to install the MobiLink system tables for Microsoft SQL Server. The script to do this can be found at: %SQLANY16%\MobiLink\setup\syncmss.sql. If you are using Sybase Central to create a Synchronization Model though, once you connect to Microsoft SQL Server, you will be prompted to install the MobiLink system tables automatically (i.e. run the script).
    There are some Microsoft SQL Server specific issues that you will want to be aware of:
    http://dcx.sap.com/index.html#sa160/en/mlserver/ml-basics-mss-5159304.html
    I have contacted some people internally here at SAP about consulting engagements to see if they can assist. If you are already working with an SAP Sales representative, it would probably be best to inquire with them directly and look into your available options.
    Regards,
    Jeff Albion
    SAP Active Global Support

  • SQL Anywhere 5.0

    Hi all,
    As we know this is very old version and be ended in 2000. Unfortunately, i need this software to cover my other database issue on Window NT 4.0. Does anybody still keep this version? Could you please help to share to me?
    Thanks in advance,
    Nhan

    Hello Nhan,
    As you are already aware, SQL Anywhere 5.0 is no longer available for sale from SAP and was end-of-life by engineering. Additionally, no current version of SQL Anywhere supports Windows NT 4.0 as Windows NT 4.0 is also out of support from Microsoft (and is also not available on MSDN).
    You will need to upgrade to more current versions of software in order for us to help you further. If you're running the older database on a newer software version (SQL Anywhere 12 or 16), you will need to first unload and reload the database on the newer version.
    Regards,
    Jeff Albion
    SAP Active Global Support

  • Installing Sybase SQL Anywhere license keys after initial installation.

    Hi,
    I installed Sybase SQL Anywhere 16 before I actually received the valid License Key. So during the installation I've used the license key provided by the instructions.  Afterwards, I've received the purchase license key.  Do i need to reinstall SQL Anywhere all over?  Or can it just continue to function on that license key?  From what i understand, I can not change the license key after the installation was complete.  I would have to completely uninstall and re-install SQL Anywhere 16. Is that correct?
    Thanks
    Aron

    Hi Aron,
    I would have to completely uninstall and re-install SQL Anywhere 16. Is that correct?
    No, you don't have to do this in SQL Anywhere 16 - you can change SQL Anywhere editions by changing the license key on the accompanying server executable license file (e.g. dbsrv16.lic) with the Server Licensing Utility (dblic). You can use the "-k" switch in order to specify a new key:
    dblic -k <reg_key> dbsrv16.lic
    Regards,
    Jeff Albion
    SAP Active Global Support

Maybe you are looking for

  • How do I set my downloads to open in the finder ?

    How do I set my downloads to open?

  • SQL developer freeze behaviour

    I thought SQL Developer can run multiple SQLs at the same time, or at least enable one to browse a database whilst a piece of SQL is running. However, I always have problems doing more than one thing at a time. For example, I had a piece of PL/SQL ru

  • Does Office 2007 work with CVI automation

    We've used Office with CVI with varying degrees of success over the years, typically to generate reports or to populate excel spreadsheets with measured data. Now I'm running XP SP3 and Office 2007 with CVI 2009. Office 2007 seems to be so significan

  • Erp2cod.opportunity.replicate gives error in HCI

    Hello, We have configured Opportunity followup from COD to ERP, which works fine and creates the relevant Inquiry and Sales Order, but the followup gives issues in HCI. I am facing an error message in HCI, when message comes in from ERP to COD for th

  • *name* of computer

    After running setup on my new powerbook, the system automatically recorded my name as owner of computer. I suppose this was because I setup the system and gave my info first, although another individual will be using the computer. How do I change the