Quantcast
Channel: SCN : Discussion List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all 685 articles
Browse latest View live

Sybase point in time load fails with The specified recovery date in not between error

$
0
0

When I run a sybase point in time load. Backup server reports this error

 

000'The specified recovery date (Nov  5 2014 8:55:00:000AM) is not between the start (Nov  5 2014  7:48:29:530AM) and end (Nov  5 2014  8:52:13:890AM) date.


Where does backup server get this times from?

Are there any tables in sybase server which stores the time when a dump was taken?


Please let me know if there are any views or tables I can check.


Thanks

Shankar


abap import error completed 162 error 1 total 164

$
0
0

hi experts

 

i am installing ecc6.0 ehp 7 ides system sybase database,linux 6.4 operating system.

 

got error when installing the ides ehp7 system in baap import phase.

 

total 164 completed 162 errors 1 running 1

 

import_monitor.log

 

(RTF) ########## WARNING ###########

        Without ORDER BY PRIMARY KEY the exported data may be unusable for some databases

 

 

(SQL) INFO: Searching for SQL file SQLFiles.LST

(SQL) INFO: SQLFiles.LST not found

(SQL) INFO: Searching for SQL file /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST

(SQL) INFO: found /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST

(SQL) INFO: Trying to open /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST

(SQL) INFO: /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SQLFiles.LST opened

(SQL) INFO: Searching for SQL file APPL0.SQL

(SQL) INFO: APPL0.SQL not found

(SQL) INFO: Searching for SQL file /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SYB/APPL0.SQL

(SQL) INFO: /home/ides7/EXPORT2/DATA_UNITS/EXPORT7/DB/SYB/APPL0.SQL not found

(DB) INFO: SKAT~001 dropped

(DB) ERROR: DDL statement failed

(CREATE  INDEX "SKAT~001" ON "SKAT" ( "MANDT" , "SPRAS" , "MCOD1"  ) with consumers = 3 )

DbSlExecute: rc = 99

  (SQL error 21)

  error message returned by DbSl:

[ASE Error SQL21][SAP][ASE ODBC Driver][Adaptive Server Enterprise]WARNING - Fatal Error 9829 occurred at Jun 25 2014  1:46PM.  Please note the error and time, and contact a user with System Administrator (SA) authorization.

[ASE Error SQL21][SAP][ASE ODBC Driver][Adaptive Server Enterprise]WARNING - Fatal Error 9829 occurred at Jun 25 2014  1:46PM.  Please note the error and time, and contact a user with System Administrator (SA) authorization.

[ASE Error SQL21][SAP][ASE ODBC Driver][Adaptive Server Enterprise]WARNING - Fatal Error 9829 occurred at Jun 25 2014  1:46PM.  Please note the error and time, and contact a user with System Administrator (SA) authorization.

 

 

(DB) INFO: disconnected from DB

 

 

/usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load: job finished with 1 error(s)

/usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load: END OF LOG: 20140625134632

 

 

 

 

WARNING: 2014-06-25 12:47:26

Cannot start import of packages with views because not all import packages with tables are loaded successfully.

 

 

WARNING: 2014-06-25 12:47:26

1 error(s) during processing of packages.

 

 

INFO: 2014-06-25 12:47:26

Import Monitor is stopped.

 

 

INFO: 2014-06-25 13:46:00

Import Monitor is started.

 

 

CONFIG: 2014-06-25 13:46:00

Application options:

collectLogicalPackages=false

dbCodepage=4103

dbType=SYB

extFiles=no

importDirs=/home/ides7/EXPORT1/DATA_UNITS/EXPORT1:/home/ides7/EXPORT1/DATA_UNITS/EXPORT2:/home/ides7/EXPORT1/DATA_UNITS/EXPORT3:/home/ides7/EXPORT1/DATA_UNITS/EXPORT4:/home/ides7/EXPORT1/DATA_UNITS/EXPORT5:/home/ides7/EXPORT1/DATA_UNITS/EXPORT6:/home/ides7/EXPORT2/DATA_UNITS/EXPORT7:/home/ides7/EXPORT2/DATA_UNITS/EXPORT8:/home/ides7/EXPORT2/DATA_UNITS/EXPORT9:/home/ides7/EXPORT2/DATA_UNITS/EXPORT10:/home/ides7/EXPORT2/DATA_UNITS/EXPORT11

installDir=/tmp/sapinst_instdir/BS2013/BS2013/ERP607/SYB/INSTALL/BS2013/ERP607/SYB/STD/ABAP

jobNum=3

loadArgs=-c 99000000 -loadprocedure fast

monitorTimeout=30

orderBy=

r3loadExe=/usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load

sapinst=

trace=all

tskFiles=yes

 

 

CONFIG: 2014-06-25 13:46:00

List of packages with table structure: 'SAP0000'.

 

 

CONFIG: 2014-06-25 13:46:00

List of packages with views: 'SAPVIEW'.

 

 

TRACE: 2014-06-25 13:46:00 com.sap.inst.migmon.imp.ImportStandardTask preCreate

Parse of '/tmp/sapinst_instdir/BS2013/BS2013/ERP607/SYB/INSTALL/BS2013/ERP607/SYB/STD/ABAP/DDLSYB.TPL' template file is started.

 

 

INFO: 2014-06-25 13:46:00 com.sap.inst.migmon.imp.ImportStandardTask preCreate

Parse of '/tmp/sapinst_instdir/BS2013/BS2013/ERP607/SYB/INSTALL/BS2013/ERP607/SYB/STD/ABAP/DDLSYB.TPL' template file is successfully completed.

Primary key creation: after load.

Index creation: after load.

 

 

INFO: 2014-06-25 13:46:01

Data codepage 4103 is determined using TOC file '/home/ides7/EXPORT1/DATA_UNITS/EXPORT1/DATA/SAPAPPL1_43.TOC' for package 'SAPAPPL1_43'.

 

 

INFO: 2014-06-25 13:46:01 com.sap.inst.migmon.LoadThreadDispatcher loadPackage_report

Monitor jobs: running 1, waiting 1, completed 162, failed 0, total 164  Package Group  max threads: 3 current running threads : 0 processing package: SAPAPPL0_17

 

 

TRACE: 2014-06-25 13:46:01 com.sap.inst.migmon.LoadTask run

Loading of 'SAPAPPL0_17' import package is started.

 

 

TRACE: 2014-06-25 13:46:01 com.sap.inst.migmon.LoadTask processPackage

Loading of 'SAPAPPL0_17' starting import package into database:

/usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load -i SAPAPPL0_17.cmd -dbcodepage 4103 -l SAPAPPL0_17.log -c 99000000 -loadprocedure fast

 

 

INFO: 2014-06-25 13:46:32 com.sap.inst.migmon.LoadTask run_report

Monitor jobs: running 0, waiting 1, completed 162, failed 1, total 164  error processing of package SAPAPPL0_17

 

 

ERROR: 2014-06-25 13:46:32 com.sap.inst.migmon.LoadTask run

Loading of 'SAPAPPL0_17' import package is interrupted with R3load error.

Process '/usr/sap/ID9/SYS/exe/uc/linuxx86_64/R3load -i SAPAPPL0_17.cmd -dbcodepage 4103 -l SAPAPPL0_17.log -c 99000000 -loadprocedure fast' exited with return code 2.

For mode details see 'SAPAPPL0_17.log' file.

Standard error output:

sapparam: sapargv(argc, argv) has not been called!

sapparam(1c): No Profile used.

sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline

 

 

WARNING: 2014-06-25 13:47:00

Cannot start import of packages with views because not all import packages with tables are loaded successfully.

 

 

WARNING: 2014-06-25 13:47:00

1 error(s) during processing of packages.

 

 

INFO: 2014-06-25 13:47:00

Import Monitor is stopped.

 

 

 

 

 

 

 

please suggest asp

 

thanks & regards

 

 

sanath

How I can generate a bcp ordered of a table with index non-clustered?

$
0
0

Hi Community:

 

 

 

I need know how I can generate a bcp ordered of a table with index non-clustered. This without create a index Cluster. I need other way.

 

 

Thanks!

 

 

 

Cristian Lopez,

SAP ASE 16.0.0.3 - Documentation

$
0
0

Can anyone make it clear for me - I am looking for the latest ASE 16.x documentation - and specifically release notes for ASE 16.0.0.3 (any platform).

I have some documentation at SyBooks Online

I have more documentation at SAP Adaptive Server Enterprise 16.0 – SAP Help Portal Page

None of these has release notes pointing specifically on what's new in 16.0.0.3 or release bulletin for that specific release.

Anyone can guide me?

Thank you.

statistics and density

$
0
0

some fundamental questions regarding usage of density.

 

if we are looking for a particular column value and it is represented in a frequency cell in a histogram then we can calculate the number of rows involved.

 

but if a searched column value or values is within a range cell, then to accurately calculate the number of rows involved, then we need density?

 

is this a right assumption for the need for gathering density statistics?

 

if so, range cell density makes sense where with a calculation of an average number of duplicates an accurate guess can be made for the number of rows involved for a value or range or values.

but even with this will a single range cell density value for a whole table suffice - or would it be better to have separate range cell density values for each range?

 

also what purpose does total density which includes frequency cells serve? in the sense that when a particular column value represented by frequency cell gives you the actual number of rows involved with that value, what is the need for a density calculation for such a value?

 

I also have questions regarding statistics skew which I will raise later.

 

appreciate the insights.

ASE 15.7 ESD#01 stack trace

$
0
0

Hi,

Just migrated from ASE 12.5.4 to 15.7 ESD #01 on AIX 7.1.and  the following stack trace is randomly appearing in ASE  errorlog when excecuting SQL or some SPs

 

Current process (0x6d49016e) infected with signal 11 (SIGSEGV)

>>00:0002:00000:00335:2014/11/10 08:36:39.90 kernel  Address 0x000000000000f454 (pci_slot_stop_cmd+0xcc), siginfo (code, address) = (51, 0x0000000000000000)

00:0002:00000:00335:2014/11/10 08:36:39.90 kernel  **** Saved signal context (0x0000000167647490): ****

00:0002:00000:00335:2014/11/10 08:36:39.90 kernel  __sc_onstack: 0x0, __sc_uerror: 0

00:0002:00000:00335:2014/11/10 08:36:39.90 kernel  uc_sigmask: 0xffffffff1ffef877 0xffffffffffffffff 0xffffffffffffffff 0x7fffffffffffffff

00:0002:00000:00335:2014/11/10 08:36:39.90 kernel  Machine Save State:

00:0002:00000:00335:2014/11/10 08:36:39.90 kernel   PC (iar): 000000000000f454 (pci_slot_stop_cmd+0xcc)

 

other functions printed in errolog

 

0x000000010003160c prSCAN_RESOURCE+0x28()

00:0002:00000:00335:2014/11/10 08:36:39.95 kernel  pc: 0x0000000100030f38 prDBTABLE+0x7cc()

00:0002:00000:00335:2014/11/10 08:36:39.95 kernel  pc: 0x00000001000302d0 prPSS+0xd4c()

00:0002:00000:00335:2014/11/10 08:36:39.99 kernel  pc: 0x000000010091e064 _STL::rope<char,_STL::allocator<char>+0x98()

00:0002:00000:00335:2014/11/10 08:36:39.99 kernel  pc: 0x0000000101f39824 NameIdPoolEnumerator<XMLNotationDecl>::nextElement()+0x1c()

>> 00:0002:00000:00335:2014/11/10 08:36:39.99 kernel  pc: 0x000000000000f454 pci_slot_stop_cmd+0xcc() <<

 

..

Couldn't find anything on solved cases or similar

 

Thank you

 

Regards

Jose-Miguel

What's the difference bretween sp_rename and extended alter?

$
0
0

I am trying to rename a stored procedure. There are 2 way to do it as the a tool give me following option to do it:

 

sp_rename

Extended alter

 

what's the difference between these two way?

Where is "WITH CHECK OPTION" stored on a view ?

$
0
0

We have a DB Compare program to ensure all the objects between 2 database servers are the identical.

 

One thing we can't find when comparing our objects is the the "with check option" on a view.

We've searched sysobjects (and others but can't find it anywhere).

 

Any ideas where its stored ?


Any experience of downgrading ASE 15.7 SP122 to SP100

$
0
0

Anyone got any experience of downgrading ASE 15.7 SP122 to SP100 ?

 

Is this a simply a change to the binaries or is there anything else required ?

Should I expect any issues ?

ASE backup server check

$
0
0

Hello gentleman,

 

I have got simple question regarding ASE backup server.

I know that you can check it manually in error log, but he needs sp.

 

Our CT wants to monitor if backup server is up and down. For this purpose needs any stored procedure which returns 2 values 1 when it is up and 0 when it is down.

 

Is there any stored procedure within ASE which returns actual status of backup server?

 

Marian

Threads in ASE Edge Edition

$
0
0

Hi,

 

the ASE Edge Edition run on physical or virtual machines with 4 cores or less. Is there any limitiation with the number of threads?


Using an Oracle 10 zone (within one LDOM) with 32 threads (4 cpu cores) SPARC-M6 CPU. Do I have any limitations here or can I use all threads using the threading process model.


Many Thanks


Robert Kratschmann



create table commands

$
0
0

what's the different about the following cmds?

1.

create table aaa ( a1 int )

on 'seg_test'

partition by roundrobin 1 on ( 'seg_test')

 

2.

create table bbb ( a1 int )

on 'default'

 

3.

create table ccc ( a1 int )

on 'default'

partition by roundrobin 1 on ('seg_test')

 

the 1st and 2nd is clear, but what happne if I create table using 3rd cmd?

Issue in ASE 15.0.3 : suer_name(), user_name() in side store Proc in cross database , giving unexpected result

$
0
0

We have this problem in ASE 15.0.3 and proc is created (cross database) with login having sa_role ..
No problem in ASE 15,5 ...

Version : -Enterprise/15.0.3/EBF 16374/P/x86_64/Enterprise Linux/ase1503/2669/64-

1) Create login ajaysa with sa_role
2) Create two procedure in two databases as below using login ajaysa and grant exec permission to publoc
3) Create login akp and add in both databases as below
4) Now login using akp into ASE server and execute both procedure, still showing suser_name as akp and user_name as dbo


1) Create login ajaysa with sa_role

sp_addlogin 'ajaysa',<password>
go
grant role sa_role to 'ajaysa'
go

2) Create two procedure in two databases as below using login ajaysa and grant exec permission to publoc
================
use DB1
go
create proc sp_akp
as
select SP_AKP=suser_name(),user_name()
go
grant exec on sp_akp to public
go
=====================
use DB2
go
create proc sp_kosik
as
exec DB1.DBO.sp_akp
go
grant exec on sp_kosik to public
go
=================
3) Create login akp and add in both databases as below
sp_addlogin akp,<password>
go
use DB1
go
sp_adduser akp
go

use DB2
go
sp_adduser akp
go

=======
4) Now login using akp into ASE server and execute both procedure


EXEC DB1.DBO.sp_akp
SP_AKP
------ -
akp akp

EXEC DB2.DBO.sp_kosik
SP_AKP
------ -
akp dbo

ASE stress test on Linux configuration questions

$
0
0

Hello,

I’m running a stress test on a RHEL 2.6.32 (256 GB ram / RAID 0 SSD ~300GB / Xeon E5-2670 2.60GHz  2 CPU  8 Cores Hyper-Threading)

 

ASE 16.0 GA PL05 configured with 16K page size using a default pool of 16 thread is configured for 36 GB of memory is using Huge pages.

All data can fit in the caches.

The load injector send ~40 parallel requests to an Open Server which then make ~20 parallel requests to the ASE.

 

The result on the sp_sysmon raise at least these 2 questions for which I need your help:

 

- What can be done to reduce Minor Page Faults at OS as for me it’s pretty high considering the HW (~600pf/s)  and we already use huge pages?

 

- Do I need to bother to have a Task Context Switches Due To: Network Packet Received  ~ 80 %  ? Is there a miss network configuration as Tuning Recommendations suggest ?

Is NetController Activity / Polls Returning Events ratio of ~20% 'normal' ?  I’ve tried to add more NetController without success.

 

Any other recommendations ?

 

Thanks in advance

F++

PS: I’ve attached a sp_sysmon of 1 min taken during one of the stress tests.

using delayed commit

$
0
0

Hello,

 

We are running a weblogic application that opens connection pools on ASE, all connections have the same default database.

 

The connections run their update queries from the default database (they don't execute use database commands to go to the database in which the majority of the tables that are updated by the transaction resides), so all transactions are cross-database transactions.

 

This is causing some contention on the transaction log.

The database doesn't contain any data/tables (in the past we created this database to avoid that weblogic's default database is a database that is also replicated).

 

We want to set 'delayed commit' to true for this database, but I'm wondering if this will be limited to the default database and will handle cross database transactions correctly.

 

Any experience with this ?

 

Thanks,

Luc.


Bug in ADO drivers with using [ ] around Identifiers

$
0
0

For anyone using the ADO driver, we've found a bug

When using [ ] around Identifiers, the ComandText gets truncated after the

 

var command = this.Connection.CreateCommand();

command.CommandType = CommandType.StoredProcedure;

 

string commandText = String.Format("[{0}].[{1}].[{2}]", database, schema, storedProcedure);

command.CommandText = commandText;     //command text should be "[MyDatabase].[dbo].[MyStoredProc]"

           

Console.WriteLine("CommandText = " + command.CommandText);

 

This should contain "[MyDatabase].[dbo].[MyStoredProc]"

but Sybase outputs: "MyDatabase"

 

What's happened to the rest of the string ?

 

The bug exists in both SDK SP127 and SP130 in the "internal string CommandText" method of AseCommand.

Install 15.7 SDK on Windows 2012R2

$
0
0

Sorry if this is in the wrong group, but I'm hoping someone can help.

 

I'm trying to install the Sybase SDK 15.7 SP132 onto a newly built Windows 2012R2 server.  The installer completes but said some errors occurred during installation.  From looking at the installation folder it appears that nothing of any note got installed.

 

Attached is the full SDK_Suite.log file:

Multiple Alter Table Statements in one batch

$
0
0

Hi Team,

 

We have in one of our upcoming release two columns being added to a table that has over 20 million records and 14 indexes.

 

We needed to add two columns to the table both not null (bit). Because it was taking a while to add the columns, we thought that putting these two alter statements in one batch would speed up the operation significantly but to my surprise it did not.

 

Conclusion from my test: individual alter statements or batch alter statements take the same time

 

Here are me test and results - table Order1 and Order2 are exactly the same structure and data.

 

Test case 1:

===================

ALTER TABLE Order1

ADD OR_N BIT DEFAULT 0 NOT NULL

go

ALTER TABLE AccountTradeConfirmation_Alter1

ADD OR_S BIT DEFAULT 0 NOT NULL

Go

 

 

Elapsed Time: 2 hrs

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

             Mar 18 2015 5:56PM

 

 

(1 row affected)

Non-clustered index (index id = 3) is being rebuilt.

Non-clustered index (index id = 4) is being rebuilt.

Non-clustered index (index id = 5) is being rebuilt.

Non-clustered index (index id = 6) is being rebuilt.

Non-clustered index (index id = 7) is being rebuilt.

Non-clustered index (index id = 8) is being rebuilt.

Non-clustered index (index id = 9) is being rebuilt.

Non-clustered index (index id = 10) is being rebuilt.

Non-clustered index (index id = 11) is being rebuilt.

Non-clustered index (index id = 12) is being rebuilt.

Non-clustered index (index id = 13) is being rebuilt.

Non-clustered index (index id = 14) is being rebuilt.

(21777920 rows affected)

Non-clustered index (index id = 3) is being rebuilt.

Non-clustered index (index id = 4) is being rebuilt.

Non-clustered index (index id = 5) is being rebuilt.

Non-clustered index (index id = 6) is being rebuilt.

Non-clustered index (index id = 7) is being rebuilt.

Non-clustered index (index id = 8) is being rebuilt.

Non-clustered index (index id = 9) is being rebuilt.

Non-clustered index (index id = 10) is being rebuilt.

Non-clustered index (index id = 11) is being rebuilt.

Non-clustered index (index id = 12) is being rebuilt.

Non-clustered index (index id = 13) is being rebuilt.

Non-clustered index (index id = 14) is being rebuilt.

(21777920 rows affected)

 

 

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

             Mar 18 2015 7:52PM

 

 

Test case 2:

===================

ALTER TABLE Order2

ADD OR_N BIT DEFAULT 0 NOT NULL, OR_S BIT DEFAULT 0 NOT NULL

go

 

 

2 hrs elapsed time

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

             Mar 20 2015 11:10AM

 

 

(1 row affected)

Non-clustered index (index id = 3) is being rebuilt.

Non-clustered index (index id = 4) is being rebuilt.

Non-clustered index (index id = 5) is being rebuilt.

Non-clustered index (index id = 6) is being rebuilt.

Non-clustered index (index id = 7) is being rebuilt.

Non-clustered index (index id = 8) is being rebuilt.

Non-clustered index (index id = 9) is being rebuilt.

Non-clustered index (index id = 10) is being rebuilt.

Non-clustered index (index id = 11) is being rebuilt.

Non-clustered index (index id = 12) is being rebuilt.

Non-clustered index (index id = 13) is being rebuilt.

Non-clustered index (index id = 14) is being rebuilt.

(21777920 rows affected)

 

 

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

             Mar 20 2015 1:12PM

Configure SSL on SAP ASE 16 for Linux PowerPC

$
0
0

Hi

 

I've tried to configure SSL  on SAP ASE 16 for IBM Linux PowerPC.

 

when I ran

 

sp_ssladmin

 

I've got an error

SSL is not supported on this platform or product version.

 

Is SAP doesn' support SSl for this platform ?

 

Thanks

 

Iosif

Documentation for alternative_greedy_search

$
0
0

We have recently gone through a change to migrate over our tables from using int to bigint. Our roll out plan is to run with temporary tables on bigint before migrating permanent tables.

 

This is causing us problems with queries with more than 7 tables where sybase goes for table scans. Simon Ogden pointed me in the direction of setting alternative_greedy_search and this seems to work for 2 out of 3 problems that we have seen so far.

 

I would just like to read a little bit more about this optimisation. Is there any document about it, I couldn't find any searching for it.

Viewing all 685 articles
Browse latest View live