Quantcast
Channel: SCN : Popular Discussions - SAP SQL Anywhere
Viewing all 1302 articles
Browse latest View live

Unload database -

$
0
0

Hi,

 

we need to unload database (SQL Anywhere Server 12.0.1.3726) to decrease its size. The database size will be only 25% origninal size (app. 50 GB -> 11 GB).

How we could speed up the process?

 

I tried to unload a database on my PC. It took 15 hours. Well, yes, they will do it on server, but I just wonder about different scenario.

 

1. backup database D

2. stop database D, take a copy of database D (db file and log file). Let's call it  Dc.

3. start database D - clients can connect and work

4. unload database Dc -> decrease size. It doesn't matter how long it will take, we're working on copy

5. stop database D

6. start database Dc + apply log from database D

 

What do you think, can it work?

Will data be 'the same'?

 

Thank for any answer.


"user '???' has row in '???' locked" - error

$
0
0

Hello, all

I am trying to create a synchronization, but I am getting this error with the question marks. No user or table is specified.

I am the only user connected to DB.

 

What can it be?

Mobilink - getting errors by email

$
0
0

Hello, all

I know it is possible to log the Mobilink errors and send them by email automatically.

Yet, I cannot find the instructions on how to do it in the help.

 

Can someone, please, point me to a link where it is all explained?

 

Thank you

Arcady

 


Replication (dbremote) between SA12 and ASA9

$
0
0

I get a lot of syntax error while replicationg between a SA12 and ASA9 database.

The consolidated db (SA12) sends SQL through passthrough to a ASA9 Remote db.

 

It seems that the SQL Syntax sent from SA12 is not compatible with the syntax that ASA9 expects.

 

Is there a way to preserve the original syntax?

 

Example:

 

Execute SQL at consolidated db (SA12)

ALTER TABLE tablename MODIFY columnname varchar(100);

 

On replication, the ASA9 database receives a non valid syntax for the same statement

ALTER TABLE tablename ALTER columnname varchar(100);

 

Which runs fine on SA12, but fails on ASA9

Please stop the CURRENTLY BEING MODERATED delay

$
0
0

After answering a question on the SAP forum for SQL Anywhere, my response was marked CURRENTLY BEING MODERATED.

 

This is not acceptable behavior for the SQL Anywhere developer community.

 

Please cease and desist, and accept all posts immediately.

 

Breck

 

http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/90000/8000/900/98954/98954.strip.sunday.gif

 

Note 1995803 occurs in build 16.0.0 1948

SAP SQL Anywhere Licensing with BOBJ

$
0
0

Hello Experts,

 

Do we require additional license for inbuild Sybase SQL Anywhere DB if we already have BOBJ license, I have checked below link but no info regarding the Sybase with BOBJ.

 

http://www.sybase.in/detail?id=1056242

 

Also checked the below notes-

 

1686864 - Licence key for Sybase products-


Comments about the scope of functions

Customers that have acquired an SAP Business Objects package with an integrated Sybase license can request a Sybase license key using both a Business Objects installation and a Sybase installation. Please use the procedure described above.


Do we have to check with SAP Account Manager if we require additional license for Sybase or how we have purchased the BOBJ license.


We already have Microsoft SQL server and BOBJ license but wanted to use Sybase SQL anywhere.


Pawan

Updating publications in multiple remote DBs

$
0
0

Hello, all

I would like to ask what happens to active subscriptions in remote DB when publication changes.

 

I understand that when I have an update on a publication and I cannot know exactly what is the publications current state in each and every db, then I cannot use "drop/create" command pair (like I can use with procedures or triggers). That is because dropping a publication will drop all subscriptions as well.

 

So, I am trying to find a way to alter a publication, without knowing which articles it currently contains.

 

My question is: Can I first delete all articles in the publication and then add them again?

Will that deactivate the subscriptions?


Mobilink error with no explanation

$
0
0

Hello, all

Sometimes I get the following error (or warning, not clear) on my Mobilink server:

//--------------------------------------------

W. 2014-11-10 15:34:11. <179> [10039] Error detected during multi-row operation, performing rollback before retrying in single row mode

W. 2014-11-10 15:34:11. <179> [10040] 111 row(s) were ignored in uploading data into table G4_cached_search_response_multi_prices

//------------------------------------------

There is no ODBC error, there is no further explanation and it is completely unclear whether or not the process succeeded on the next upload.

Can someone, please, elaborate on how this error should be treated?

 

Thank you

Arcady

sqlanywhere database not start DBSPAWN ERROR -80

$
0
0

Dear Experts

 

I am installed BO 4.1 Sp3 under AIX 7 and default database sqlanywhere

 

after stop BOE

1. tomcat

2. BOE

3 database

 

from BOBJ home /usr/sap/BOD/sap_bobj

using scripts

 

but when in start database

 

./sqlanywhere_startup.sh  Flowing error occur

 

SQL Anywhere start In background ........

 

 

DBSPAWN ERROR -80

 

Unable to start database

 

 

Please guide me how to solved this issue

 

 

Regards

SQLCode - 1: Table '_^_^_22072007....._^_^_' not found

$
0
0

This error occurs when inserting rows into a table which has dependant materialized view in SQLA12 db (see attached image for full details).

 

Any ideas on why this is happening?

This happens on 1 or 2 databases, the rest (90+) is working great.

This is databases which started out as ASA5.5 db's once upon a time.

Otherwise, everything works as it should.

Problems writing binary files to Sybase SQL Anywhere from PHP

$
0
0

Hi there

 

We are trying to write PDF, Word, JPG and other binary files to a Sybase SQL Anywhere database using PHP.

 

We are connecting with PHP using PHP_DBLIB through PDO and are using the code below to read and a file and write into a column:

 

<?php

// Read file

$filename = “/path/to/file/pdf.pdf";

$handle = fopen($filename, "rb");

$contents = fread($handle, filesize($filename));

 

// Attempt to write file

$query = $db->prepare('INSERT INTO table_name (id, document_blob) VALUES (1, ?)’);

$query->bindParam(1, $contents, \PDO::PARAM_LOB);

$query->execute();

?>


The whole query just fails with a generic error message, however we are able to use the above code to write to a MySQL database.

 

Any thoughts / inspiration gratefully received.

 

Cheers

Ed

"user '???' has row in '???' locked" - error

$
0
0

Hello, all

I am trying to create a synchronization, but I am getting this error with the question marks. No user or table is specified.

I am the only user connected to DB.

 

What can it be?

Question about Mobilink best practice

$
0
0

Hello,

I have the following data workflow:

Around 20 tables synchronize upload only.

7 tables synchronize download only.

2 tables have bidirectional sync.

 

I was wondering if it could be a good idea to create 3 schema models, instead of one.

This way, the upload, which is critical, could run independently of the download.

 

Please, tell me if this is a good practice.

 

Thank you

Arcady

How to call GRANT ALL to all of an owner's tables

$
0
0

Hi,

 

I want to call "GRANT ALL ON table-name TO group-name" for all the tables whose owner is "DBA".

 

Instead of doing

 

  GRANT ALL ON dba.iBodegas TO "TRIPODE";

  GRANT ALL ON dba.iInv TO "TRIPODE";

etc... etc.... etc....

 

I wanted to do it in on block.

 

I started doing this:

 

BEGIN

  DECLARE xIdDBA INTEGER;

  DECLARE xUserName VARCHAR(50);

  DECLARE xSQL   LONG VARCHAR;

  SET xUserName = 'TRIPODE';

  SET xIdDBA = (SELECT User_Id FROM SysUserPerm WHERE User_Name ='DBA');

  SET xSQL = (SELECT STRING('GRANT MEMBERSHIP ON "',a.table_name,'" TO "',xUserName,'";')

                        FROM systable a join sysuserperm b on a.creator=b.user_Id WHERE a.creator=xIdDBA);

 

 

  SELECT xSQL;

END

 

 

But that doesn't work becasue I can't load the result set into the xSQL variable.

 

I wanted to load all the GRANT statements into a variable and then EXECUTE IMMEDIATE that :-)

 

Any better ideas?

 

Thanks,

Edgard


Who is "SAP User" and why do they have 200+ points?

$
0
0

...because nothing screams "Gamification is stupid!" like having some anonymous dork in 1st place

 

(why "dork"? because ALL anonymous users are creepy goofs, cowards and trolls)

What is the defintion of socket and/or CPU in connection with SQLAnywhere 16

$
0
0

I've read a lot of documentation but still not sure about one piece: What is the exact defintion of a socket in connection with SQLAnywhere16. It appears that socket and CPU is used a some kind of synonym -- but is it true? Becuase in real liefe it isn't. you can have more than one CPU at one die, mounted to one socket.

Where can I download the jconn4.jar for SQLA 16

$
0
0

Hello.

 

From the SQLA 16 Documentations:

 

 

The jConnect JDBC driver

 

The jConnect driver is available as a separate download at [external link] http://www.sybase.com/products/allproductsa-z/softwaredeveloperkit/jconnect. Documentation for jConnect can also be found on the same page.

To use JDBC from an applet, you must use the jConnect JDBC driver to connect to SQL Anywhere databases.

 

Is there an updated Link available ?

 

Kind regards

 

Thomas

Need to connect to Sybase SQL Anywhere database 5.0 through asp.net

$
0
0

I am trying to connect to SQL anywhere 5.0  using below connection string 

 

 

sConnString =

 

 

 

" Driver=Sybase SQL Anywhere 5.0;Uid=dba;Pwd=sql;EngineName=Tenmax;DatabaseName=Tenmax;Start=c:\sqlany50\win32\dbclient.exe;DatabaseSwitches=-commandSwitch1 -commandSwitch2;DatabaseFile=E:\Applications\VinayNandaLIL\Tenmax.db;AutoStop=NO;"

 

 

 

 

It is giving below error

 

ERROR [08001] [Sybase][ODBC Driver]Unable to connect to database server: unable to start database engine

ERROR [01000] [Microsoft][ODBC Driver Manager] The driver doesn't support the version of ODBC behavior that the application requested (see SQLSetEnvAttr).

 

Please guide.

Mobilink : upload to Hana DB not working from SQLA though download is happening

$
0
0

Hi,

 

I have read this blog and successfully created a mobilink connection for a hello_world table and both download and upload worked.

 

Now I am replicating the same in a different table. I followed the steps as depicted in the document except for the part where Mobilink artifacts are generated in Hana executing the synchana.sql file, because I already did that in earlier example and I guess is not required anymore.

 

Now after I connect the two DBs, while synchronizing, I see download of data(row) from Hana is happening but upload to Hana from SQLA is not happening. Synchronization shows success. I dont see any error in the log also.

 

Few lines from the logs are following

 

I. 2014-11-19 19:29:06. Connecting to remote database

I. 2014-11-19 19:29:06. Loading synchronization information

I. 2014-11-19 19:29:06. Begin synchronizing subscription(s) 'p1'

I. 2014-11-19 19:29:06. Options for this synchronization:

I. 2014-11-19 19:29:06.         SV=v1,CTP=TCPIP,ADR='host=localhost'

I. 2014-11-19 19:29:06. Scanning logs starting at offset 0000801877

I. 2014-11-19 19:29:06. Hovering at end of active log

I. 2014-11-19 19:29:06. Connecting to MobiLink server at 'host=localhost' using 'TCPIP'

I. 2014-11-19 19:29:06. Begin upload

I. 2014-11-19 19:29:06. Current communication protocol: 0x1

I. 2014-11-19 19:29:06. Uploading table operations

I. 2014-11-19 19:29:06. Waiting for MobiLink to apply upload

I. 2014-11-19 19:29:11. MobiLink server supported communication protocols:  0x1 to 0x1

I. 2014-11-19 19:29:11. MobiLink server version: 16.0.0 (build 1948)

I. 2014-11-19 19:29:11. The user authentication value is 1000.

I. 2014-11-19 19:29:11. Setting last upload time to 2014-11-19 13:59:11.059.

I. 2014-11-19 19:29:11. Setting generation number for subscription p1 to 1.

I. 2014-11-19 19:29:14. Download stream: received 1 bytes from MobiLink server.

I. 2014-11-19 19:29:14. Processing download stream ...

I. 2014-11-19 19:29:14. Downloading into table: TEST_CHAR_TYPES_TABLE

I. 2014-11-19 19:29:14. # rows inserted/updated into table TEST_CHAR_TYPES_TABLE : 0

I. 2014-11-19 19:29:14. # rows deleted in table TEST_CHAR_TYPES_TABLE : 0

I. 2014-11-19 19:29:14. Completed processing of download stream

I. 2014-11-19 19:29:14. End synchronizing subscription(s) 'p1'

I. 2014-11-19 19:29:14. Disconnecting from MobiLink server

I. 2014-11-19 19:29:15. Complete log scan required.

I. 2014-11-19 19:29:15. Synchronization completed

I. 2014-11-19 19:29:15. Disconnecting from remote database

 

Any suggestion or pointer would be of huge help.

 

Regards,

Subhankar

Viewing all 1302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>