Quantcast
Channel: SCN : Popular Discussions - SAP Adaptive Server Enterprise Developer Center
Viewing all 1396 articles
Browse latest View live

how to take transactional log backup in sybase ase 15.7?

$
0
0

Hello Experts,

 

I want to take transactional log backup from sybase as 15.7. But when i executed the following command it got some error.

 

dump tran PCD to "H:\SAP_DB_Backup\PCD\PCD_dbtrans16_12_2014_backup.bkp"

 

trans.png

 

I searched in net , but i didn't get a proper answer.

 

Kindly help

 

Regards

 

Praveen


64 BIT Sybase.ADONet4.ASEClient.dll dont support unnamed parameters

$
0
0

We are migrating from  32 bit  asp.net website to 64 bit asp.net website. 

 

we have number of stored procedure calls  calling Sybase.Data.AseClient.dll in  "EXEC sp_test ?   " format from our database  layer.

 

 

with the new 64 bit DLL  Sybase.ADONet4.ASEClient.dll   the above SP call format is throwing an exception  Incorrect syntax near '?'.

 

following is the stack trace

 

   at Sybase.Data.AseClient1.AseCommand.CheckResult(Int32 res)

   at Sybase.Data.AseClient1.AseCommand.Execute(CommandBehavior commandBehavior)

   at Sybase.Data.AseClient1.AseCommand._ExecuteReader(CommandBehavior commandBehavior)

   at Sybase.Data.AseClient1.AseCommand.ExecuteReader(CommandBehavior commandBehavior)

   at Sybase.Data.AseClient.AseCommand.ExecuteDbDataReader(CommandBehavior behavior)

   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)

 

please suggest me the work around for this....

 

 

Regards,

Ram

The host is not authorized to connect to this Backup Server

$
0
0

Hi experts,

 

I'm trying to connect to a remote backup server S2_BS running on VM2 from a data server S1 running on VM1. When I issued following command in isql

 

1> SYB_BACKUP...sp_who

2> go

Msg 7221, Level 14, State 2:

Server 'S1', Line 1:

Login to site 'SYB_BACKUP' failed.

 

It failed to connect to its SYB_BACKUP (i.e. S2_BS is configured for SYB_BACKUP in this case).

 

And I got following error in the error log of S2_BS:

 

Jun 23 14:48:53 2014: Backup Server: 2.24.2.1: The host '10.43.13.204' is not authorized to connect to this Backup Server.

Jun 23 14:48:53 2014: Backup Server: 2.6.2.10: Login information unavailable.

 

I can ping VM2 from VM1 without any issue:

 

$ ping 10.43.13.204

PING 10.43.13.204 (10.43.13.204) 56(84) bytes of data.

64 bytes from 10.43.13.204: icmp_seq=1 ttl=64 time=0.035 ms

 

And have entry for S2_BS in /opt/sybase/interfaces on VM1:

 

S2_BS

        master tcp ether 10.43.11.19 5002

        query tcp ether 10.43.11.19 5002

 

And S2_BS is running correctly on VM2.

 

I'm running ASE 15.7 SP110 on both VM1 and VM2.

 

Could someone please let me know how to fix this?

getting below error while exec procedure 'sp_activeroles' on SAP Sybase ASE 16

$
0
0

Dear All,

 

getting below error while exec procedure 'sp_activeroles', while i am getting proper output beyond this error.

 

Could not execute statement.

No such object or user exists in the database.

SQLCODE=17674, SQLSTATE="(none)"

Server=SYBASE1600, Severity Level=16, State=1, Transaction State=1, Procedure=sp_jdbc_primarykey, Line=87

Line 87

Reset sapsa password

$
0
0

Hi all, I need to reset the sapsa password of a sybase database.  I've already recovered the sa password with the sap note 1872806 - How to set a new password for SA account in Sybase ASE server but I'm not very familiarised with the ALTER LOGIN and sp_password procedures.

 

When I try to use any of those procedures, it asks me for the previous password of the sapsa user, which I don't have at the moment.

 

Thanks in advance.

 

Regards,

JR

DBACOCKPIT - 500 SAP Internal Server Error

$
0
0

Hi,

 

i can't login to the dba cockpit after using the standard db user checkbox on the first login screen (with the option aktivated to not ask for the login again).

Now i always get the following error message:

 

500 SAP Internal Server Error

ERROR: SecureStorage: Eintrag wurde mit anderer SID erstellt (termination: ERROR_MESSAGE_STATE)

 

After i logged in to a differnt SAP client (000 for example) on the same system, i was able to type in the batabase login again and could enter the dba cockpit.

But when i try to enter the dba cockpit of the first client (800) i always get the error message.

 

How can i reactivate the login screen for the dba cockpit?

 

 

IDES ERP6 EHP6

Sybase ASE 15.7.0.105

Kernal 720

Patch-Level 210

 

 

Regrads

Joseph

OData protocol doesn't include Foreign Key fields in metadata and as well in data

$
0
0

- I am currently want to develop POC on UI5 application with OData from ASE 15.7 developer edition instead of SAP Netweaver Gateway.

- It is easy to configure ASE with OData on laptop (Win 7) and UI5 app. development for POC.

 

I discovered this issue, fields which have Foreign Key relationship is not included in metadata and as well output data (atom/xml or json)

 

Database "odata" and table 'SalesOrders' which is taken from "dotnet" example (\Sybase\ODATA-16_0\samples\dotnet\init.sql)

 

Column_nameTypeLengthForeign Key
IDint4
CustomerIDint4Employees.EmployeeID
OrderDatedate4
FinancialCodechar2FinancialCodes.Code
Regionchar7
SalesRepresentativeint4Customers.ID

 

Starting OData service for database "odata"

 

cd %sybase%\ODATA-16_0\samples\dotnet

..\..\bin64\dbosrv16 DotNetConfig.properties

 

 

http://localhost:8090/odata/$metadata

 

<EntityTypeName="SalesOrders">

<Key>

 

 

<PropertyRefName="ID"/>

 

</Key>

<PropertyName="ID"Type="Edm.Int32"Nullable="false"/>

<PropertyName="OrderDate"Type="Edm.DateTime"Nullable="false"Precision="0"/>

<PropertyName="Region"Type="Edm.String"Nullable="true"MaxLength="7"Collation="utf8"/>

<NavigationPropertyName="FK_CustomerID_ID"Relationship="SAPSybaseOData.SalesOrders_Customers_FK_CustomerID_ID"FromRole="SalesOrders_Customers_Source"ToRole="SalesOrders_Customers_Target"/>

<NavigationPropertyName="FK_FinancialCode_Code"Relationship="SAPSybaseOData.SalesOrders_FinancialCodes_FK_FinancialCode_Code"FromRole="SalesOrders_FinancialCodes_Source"ToRole="SalesOrders_FinancialCodes_Target"/>

<NavigationPropertyName="FK_SalesRepresentative_EmployeeID"Relationship="SAPSybaseOData.SalesOrders_Employees_FK_SalesRepresentative_EmployeeID"FromRole="SalesOrders_Employees_Source"ToRole="SalesOrders_Employees_Target"/>

<NavigationPropertyName="SalesOrderItems"Relationship="SAPSybaseOData.SalesOrders_SalesOrderItems_SalesOrderItems"FromRole="SalesOrders_SalesOrderItems_Source"ToRole="SalesOrders_SalesOrderItems_Target"/>

</EntityType>


Fetching SalesOrders data from OData endpoint, fields which have Foreign Key relationship not coming


http://localhost:8090/odata/SalesOrders?$format=json


{

"d" : {

"results" : [

{

"__metadata" : {

"uri" : "http://localhost:8090/odata/SalesOrders(2001)", "type" : "SAPSybaseOData.SalesOrders"

}, "ID" : 2001, "OrderDate" : "\/Date(953145000000)\/", "Region" : "Eastern", "FK_CustomerID_ID" : {

"__deferred" : {

"uri" : "http

How to create additional Adaptive Server and Backup Server?

$
0
0

Hi experts,

 

I installed ASE 15.7 Developer Edition for Linux x86_64 on my RHEL 6.4 box using command line. After installation completed, I was able to create a default Adaptive Server "VM_01_S1" and its Backup Server "VM_01_S1_BS".

 

Now I'm wondering how I can create additional Adaptive Server and Backup Server (say "VM_01_S2" and "VM_01_S2_BS") using the the same installation in command line. Also I'd like to create them with 8K page size (for the default one I used 4K page size).


Could you please shed some light on this?


Applying new license file for existing installation

$
0
0

Hi experts,

 

I have installed Sybase ASE 15.7 SP110 Developer Edition (DE) on a VM running RHEL 6.2 for x86_64. Now my company purchased a license for Enterprise Edition and my manager sent me a license file (*.lic). Now I'm wondering if I can apply this new license on my existing installation. If yes, could someone point me to the detailed steps to do that?

The host is not authorized to connect to this Backup Server

$
0
0

Hi experts,

 

I'm trying to connect to a remote backup server S2_BS running on VM2 from a data server S1 running on VM1. When I issued following command in isql

 

1> SYB_BACKUP...sp_who

2> go

Msg 7221, Level 14, State 2:

Server 'S1', Line 1:

Login to site 'SYB_BACKUP' failed.

 

It failed to connect to its SYB_BACKUP (i.e. S2_BS is configured for SYB_BACKUP in this case).

 

And I got following error in the error log of S2_BS:

 

Jun 23 14:48:53 2014: Backup Server: 2.24.2.1: The host '10.43.13.204' is not authorized to connect to this Backup Server.

Jun 23 14:48:53 2014: Backup Server: 2.6.2.10: Login information unavailable.

 

I can ping VM2 from VM1 without any issue:

 

$ ping 10.43.13.204

PING 10.43.13.204 (10.43.13.204) 56(84) bytes of data.

64 bytes from 10.43.13.204: icmp_seq=1 ttl=64 time=0.035 ms

 

And have entry for S2_BS in /opt/sybase/interfaces on VM1:

 

S2_BS

        master tcp ether 10.43.11.19 5002

        query tcp ether 10.43.11.19 5002

 

And S2_BS is running correctly on VM2.

 

I'm running ASE 15.7 SP110 on both VM1 and VM2.

 

Could someone please let me know how to fix this?

installation of Sybase 16 hang on AIX

$
0
0

Hi all,

 

I attempted to install Sybase 16 on AIX platform. But it hang there. The directories created under sybase directory is as below. There is no log generated under log.

 

bash-3.2# oslevel -s

7100-02-02-1316

bash-3.2# lslpp -l bos.iocp.rte

  Fileset                      Level  State      Description

  ----------------------------------------------------------------------------

Path: /usr/lib/objrepos

  bos.iocp.rte              7.1.2.15  COMMITTED  I/O Completion Ports API

 

Path: /etc/objrepos

  bos.iocp.rte              7.1.2.15  COMMITTED  I/O Completion Ports API

 

bash-3.2# ls

ASE-16_0                 Sybase_Install_Registry  log

SYSAM-2_0                jre64                    sybuninstall

bash-3.2# pwd

/opt/sybase16

 

Recovery SAP on windows/ Sybase ASE

$
0
0

Hi Experts,



We are in process to check the consistency of backup we are taking for

our SAP landscape.

 

Product - ECC6 EHP6

OS - Windows 2008 R2 virtual (On Hyper V)

DB - Sybase ASE 15.7 SP102

 

We are just started to use EMC backup tool for SAP and others

application.

by EMC backup tool we take daily VM backup (as DEV/QAS and PRD VMs) and

Sybase database backup (only data backup by daily no transaction

backup).

 

could you suggest us what should we have to take in action for proper

SAP

recovery if some unusual will happen.

 

I just go through the SAP Note - 1611715 - SYB: How to restore a Sybase

ASE database server (Windows).

but not able to get the meaning those written in ASSUMPTION section -

"If the file system of the Sybase software installation,

<DRIVE:>\sybase\

<SID>, is not available, restore it from a file system backup."

 

here all data files and log files resides (almost 150GB in DEV system)

so

we have to restore all from file system backup ?

 

Sorry but i am so confuse about restoration could you please help us we

want to complete this task before go-live.



Thanks &

Best Regards

Deepak Singh

Sybase Mainframe Direct Connect

$
0
0

We have a problem regarding Mainframe Direct Connect server.

 

We have built application using Sybase DirectConnect Client library.

It communicates Mainframe Direct Connect.

When the application is set to SSL enabled, it communicates the Direct Connect using SSL.

When server is not configured SSL enabled, the server does not reject the connection from the app but no action. So, the application is just keep running and even does not get timeout from DirectConnect library.

 

ct_connect is used to access the directconnect server. Is there any way to configure the server to make timeout from client connection?

I cannot find any timeout setting on Mainframe DirectConnect setting file.

 

Appreciate your help.

how to take transactional log backup in sybase ase 15.7?

$
0
0

Hello Experts,

 

I want to take transactional log backup from sybase as 15.7. But when i executed the following command it got some error.

 

dump tran PCD to "H:\SAP_DB_Backup\PCD\PCD_dbtrans16_12_2014_backup.bkp"

 

trans.png

 

I searched in net , but i didn't get a proper answer.

 

Kindly help

 

Regards

 

Praveen

Exporting a database and table from Sybase ASE 15.7

$
0
0

Dear Friends,

 

What command do we need to use to export or backup a database and table with data created in Sybase ASE 15.7 DB server?

 

I do not have control center. When I tried Export wizard from "Data" menu in Sybase Interactive SQL (Version-11.0.1) on windows, I got error "There is nothing to export".

 

Thanks


connecting/working with Chinese Sybase ASE database

$
0
0

i have question regarding problem i'm facing while working with Chinese Sybase ASE database

  

I'm trying to connect to a Chinese Sybase Adaptive Server on a machine with OS regional setting as China.

 

I'm connecting using ODBC from different Windows machine, so when using the regular ODBC connection string for connecting

 

( Such
as: “DRIVER={Adaptive Server Enterprise};SERVER=SYB-SRV;port=5000;UID=sa;DB=;”)

It fails with the following error message:

 

“RetCode:
SQL_ERROR  SqlState: 08S01 NativeError: 30016 Message: [Sybase][ODBC Driver]Bad TDS response stream received from server.

Unexpected end of reponse during login negotiation.”

 

When adding “charset=utf8” to the connection string we succeed to connect but, then I'm facing problems with calling other functions of the ODBC like SQLTables which is returning no data instead of returning existing tables and schemas.

 

can you please elaborate.

RUN TIME ERROR: "[ASE Error SQL1105]

$
0
0

Hi Experts..

 

Category               Installation Errors

Runtime Errors         DBIF_RSQL_SQL_ERROR

Except.                CX_SY_OPEN_SQL_DB

Date and Time          29.10.2014 11:09:56

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|Short text                                                                                        |

|    SQL error 7412 when accessing table "VRSMODISRC".                                             |

----------------------------------------------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------

|What happened?                                                                                    |

|    Error Text of the Database: "[ASE Error SQL1105]Can't allocate space for object               |

|     'syslogs' in database 'PCD' because 'logsegment' segment is full/has no free                 |

|     extents. If you ran out of space in syslogs, dump the transaction log.                       |

|     Otherwise, use ALTER DATABASE to increase the size of th"                                    |

----------------------------------------------------------------------------------------------------

 

Here it is .. i need immediate help ...

Sybase Server Error: 692, Severity: 20, State: 1

$
0
0

Hello Experts,

 

We are frequently getting the error 692 in our development and Quality Servers(Production is not at go-live). After getting this error we are unable to work in the system, getting ST22 dumps like DBIF_REPO_SQL_ERROR , [ASE Error SQL21][SAP][ASE ODBC Driver][Adaptive Server Enterprise]WARNING - Fatal Error 692 occurred at Dec 19 2014 10:36PM. Please note the error and time, and contact a user with System Administrator (SA) authorization.#".

 

Error in the ASE Error log is

server  Error: 692, Severity: 20, State: 1

server  Uninitialized logical page '4136632' was read while accessing database 'SID' (4), object 'WDY_WB_GENINFO' (959403181), index 'WDY_WB_GENINFO~001' (3), partition 'WDY_WB_GENINFO~001_959403181' (959403181). Please contact Sybase Technical Support.

server  Error: 692, Severity: 20, State: 1

server  Uninitialized logical page '4135787' was read while accessing database 'SID' (4), object 'REPOSRC' (1540366417), index 'REPOSRC~0' (2), partition 'REPOSRC~0_1540366417' (1540366417). Please contact Sybase Technical Support.

 

The dbcc checktable logs on these are attached to this thread.

 

 

Please help us.

How to integrate ECC Production System with Dealer Management System

$
0
0

Dear Expert,

 

Please suggest me the solution for connecting the ECC system with Dealer Management System (DMS),

DMS is the product which are the used by the auto mobile industries for their dealers end and its web base solution.

What kind of configuration required at ECC and DMS end, please suggest..


Regards,

Ajay

System.NullReferenceException: Object reference not set to an instance of an object.~~ at Sybase.Data.AseClient1.AseConnection.Open()

$
0
0

Hi All,

 

We are getting random failures of sessions to the server.


It's an booking system


We are seeing these kind of errors:


System.NullReferenceException: Object reference not set to

an instance of an object.~~ at

Sybase.Data.AseClient1.AseConnection.Open()

 

More details

 

ASEClient 15.7 (Sybase.AdoNet4.AseClient 4.157.104.0, Size 6,96MB)


Code

 

_conexaoSybase = newAseConnection(CONNECTION_STRING_SYBASE);

_conexaoSybase.NamedParameters = false;                   

_conexaoSybase.Open();

 

Error

 

  1. System.NullReferenceException: Object reference not set to an instance of an object.

   at Sybase.Data.AseClient1.AseConnection.Open()

   at Sybase.Data.AseClient.AseConnection.Open()

   at XYZ.Nucleo.Util.Contexto.Contexto.get_ConexaoSybase()



We then loose all connection on that particular server and have to do a reset to resolve the problem. Any idea on what could be causing this ?


Thanks in advanced!


Daniel Castro

Viewing all 1396 articles
Browse latest View live