Vous êtes sur la page 1sur 16

TOPIC NAME

DBNAME SYBASE ASE 15.7

DEFAULT DATABASES Master

Model
Tempdb
SID(User Specific Database)
Sybtempdb
Saptools
Sybmgmtdb
Sybsystemprocs

DIRECTORY STRUCTURE
/sybase/<SID>
/sybase/<SID>/ASE-15_0
/sybase/<SID>/ASE-15_0/bin
/sybase/<SID>/ASE-15_0/install
/sybase/<SID>/sapdata_1
/sybase/<SID>/sapdiag
/sybase/<SID>/saplog_1
/sybase/<SID>/Shared
/sybase/<SID>/sybsystem
/sybase/<SID>/sybtemp
/sybase/<SID>/sybuninstall

DATABASE DEVICES
data<SID>_1.dat
log<SID>_1.dat
datasaptools_1.dat
logsaptools_1.dat
master.dat
sybmgmtdb.dat
sysprocs.dat
sybsysdb.dat
tempdbdev.dat

IMPORTANT FILES <SID>.cfg


sybase.env

DATA BASE PORTS


DATABASE SERVER 4901
BACKUP SERVER 4902
JOB SCHEDULER 4903
XP SERVER 4904

USERS IN SYBASE sapsa


sapsso
sapsr3

OS level users <SID>adm


syb<SID>

Client Utility Programs isql


dbisql
sybase central (version 6.0)

Important Stored Procedures

Sp_helpdb

Sp_helpdevice

Sp_helpconfig
Sp_addumpdevice

sp_configure

sp_dboption

sp_monitor

sp_who

Important Tables in Master Database Sysdatabases


Sysdevices
Sysusages

Compression Levels Compression levels


No compression/Level 0

Default compression/Level 1

LEVEL 2
Level 3
Level 4
Level 5
Level 6
Level 7
Level 8
Level 9
PATH REMARKS

Master database stores information on all


user databases and their associated devices
and it also stores information about
database users, objects

Home Path

Data file path

Log file path


Sybase Central path

Uninstall path

/sybase/<SID>/sapdata_1
/sybase/<SID>/saplog_1
/sybase/<SID>/sapdiag/
/sybase/<SID>/sapdiag/
By default Master, model and tempdb are
/sybase/<SID>/sybsystem stored in this device
/sybase/<SID>/sybsystem
/sybase/<SID>/sybsystem
/sybase/<SID>/sybsystem
/sybase/<SID>/sybtemp

/sybase/<SID> Stores all configuration parameters


/sybase/<SID> Stores all environment variables
text mode
gui mode
for monitoring

Reports information about a database object


(any object listed in sysobjects) and about
system or user-defined datatypes, as well as
computed columns and function-based
indexes.
Reports information about a particular
device or about all Adaptive Server
database devices and dump devices.
Reports help information on configuration
parameters.
Adds a dump device to Adaptive Server.

Displays configuration parameters by


group, their current values, their default
values, the value to which they have most
recently been set, and the amount of
memory used by this setting.
Displays or changes database options, and
enables the asynchronous log service
feature.

Displays statistics about Adaptive Server.

Reports information about all current


Adaptive Server users and processes or
about a particular user or process.

Stores all databases names that are running


Stores all database devices
Stores space allocated to each DB

compressed file size


630K

128K

124K
121K
116K
113K
112K
111K
110K
109K
DESCRIPTION
Backup
Backup Logs
Backup with compression
Create the data files

Database Status
Dump Transaction
Load Transaction
Restore
Start sybase databse
Stop sybase databse
Sybase Central

To assign above created data file to the database use the below command
To Backup DB Using SP from DBACOCKPIT (As per Note: 1588316)
To Backup Transaction Log Using SP from DBACOCKPIT
To bring database online
To check sybase version

To extend a device

To get dbisql prompt


To get isql prompt
To update the Param Value
To view the Param Value configured
To check what databases are running

Checking whether Backup server is running or not


Command is used to view what are the dump configurations in the system
to unlock sa login
COMMANDS
Dump database <SID> to “file Path”
\sybase\<SID>\ASE-15_0\install\<SID>_BS
Dump database <SID> to “file Path” with compression=101
disk init
name = “data<SID>_2.dat”,
physname = “/sybase/SID/sapdata_2/data<SID>_2.dat”,
size = “10G”

sp_helpdb <SID>
Dump tran <SID> to "file path"
Load tran <SID> from "file path"
load database <SID> from “backup_file”
startserver RUN_<SID>
SQL>shutdown
go to path : \sybase\BED\Shared\Sybase Central 6.0.0\win64 and click on
"scjview"
Alter database <SID> data on data<SID>_2.dat =”10G”
exec saptools..sp_dump <SID>
exec saptools..sp_dumptrans <SID>
online database database_name
select @@version
go
disk resize
name = data<SID>_1,
size = “10G"
c:\>dbisql
c:\>isql -Uusername -Ppassword -Ssid
sp_configure "<PARAM>", <VALUE>
sp_helpconfig "<PARAM>"
use master
go
select * from sysdatabases
exec SYB_BACKUP...sp_who
sp_config_dump
sp_locklogin sa, unlock
DB Parameter
Configuration
enable functionality group
enable inline default sharing
select for update
enable permissive unicode
quoted identifier enhancements
streamlined dynamic SQL
suppress js max task message
Kernel Mode
kernel mode
Data Collection Framework
enable job scheduler
job scheduler interval
job scheduler tasks
js job output width
Database Monitoring
enable monitoring
enable stmt cache monitoring
errorlog pipe active
deadlock pipe active
sql text pipe active
plan text pipe active
lock timeout pipe active
per object statistics active
statement statistics active
SQL batch capture
wait event timing
object lockwait timing
process wait events
enable metrics capture
Data Collection Framework
statement pipe active
errorlog pipe max messages
deadlock pipe max messages
statement pipe max messages
sql text pipe max messages
plan text pipe max messages
lock timeout pipe max messages
max SQL text monitored
FIPS login password encryption
net password encryption reqd
Compression
enable compression
compression info pool size
XML Support
enable xml
Unicode
enable unicode normalization
enable surrogate processing
disable character set conversion
enable unicode conversions
Character Set
default character set id
default language id
default sortorder id
Job Output
maximum job output
Procedure Cache
procedure cache size
statement cache size
Locks
lock scheme
page lock promotion HWM
page lock promotion LWM
row lock promotion HWM
row lock promotion LWM
number of locks
lock wait period
lock spinlock ratio
lock hashtable size

Memory Usage
number of open objects
number of open indexes
number of open partitions
number of alarms
number of aux scan descriptors
number of devices
disk i/o structures
kernel resource memory
heap memory per user
number of user connections
cpu grace time
max network packet size
default network packet size
additional network memory
recovery interval in minutes
print recovery information
Additional Parameters
disable varbinary truncation
allocate max shared memory
optimizer level
enable literal autoparam
enable semantic partitioning
permission cache entries
enable java
deadlock checking period
read committed with lock
auto query tuning
max query parallel degree
optimization goal

number of histogram steps


histogram tuning factor
capture compression statistics
print deadlock information
min pages for parallel scan
cpu accounting flush interval
i/o accounting flush interval
session tempdb log cache size
number of large i/o buffers
enable housekeeper GC

sysstatistics flush interval

global cache partition number


number of oam trips
number of index trips
user log cache spinlock ratio
default exp_row_size percent
housekeeper free write percent
number of pre-allocated extents
sql perfmon integration
Stack
stack size
stack size
stack size
stack guard size

Data Caches
default data cache
Database Options
ddl in tran
allow nulls by default
allow wide dol rows
enforce dump tran sequence
full logging for all
abort tran on log full
page compression
select into/bulkcopy/pllsort
trunc log on chkpt

Additional settings for version 15.7.0.021


enable spin lock monitoring
enable plan sharing
update statistics hashing
enable concurrent dump tran
enable dump history

DB Options -- Version >= 15.7.0.021


deferred table allocation

Additional settings for version starting from 15.7.0.030


enable plan sharing
update statistics hashing

Additional settings for version starting from 15.7.0.042


deallocate first text page

Logging Error Messages


Message number 701 is raised when the procedure cache size is insufficient to run a request
Message number 1105 is raised when it is not possible to allocate additional space to store data or logs
Message number 2901 is raised when the stack limit has been exceeded
Message number 12205 is raised when a lock could not be set within the configured wait time
Type As per Note1539125

REQ 1
REQ 1
REQ 1
REQ 1
REQ 1
REQ 1
REQ 1

REQ Threaded

REQ 1
REQ <=60
REQ >=2
REQ >=1024

REQ 1
REQ 1
REQ 1
REQ 1
REC 0
REC 0
REQ 1
REQ 1
REQ 1
REQ 1
REQ 1
REQ 1
REC 0
REC 0

REC 0
REQ >=500
REQ >=500
0
REC 0
REC 0
REQ >=500
REQ >=2048
REQ 1
REC 1 The param should set with the sapsso user

REQ 1
REQ >=32768

REQ 1

REQ 0
REQ 0
REQ 0
REQ 1

REQ 190
REQ 0
REQ 25

REQ 2147483647

REC >= 512M


REQ >= 100M

REQ datarows
REQ 2147483647 Note: 1634716
REQ 2147483646 Note: 1634716
REC 2147483647 Note: 1634716
REC 2147483646 Note: 1634716
REC >= 5000000
REC 1800
REC 40
REC >= @num_locks / 1000000 * 8192
REQ >= 8192

REQ >= 40000


REQ >= 30000
REQ >= 50000
REQ >= 1000
REQ >= 1024
REQ >= 200
REQ >= 4096
REQ >= 32768
REQ >= 48K
REC >= 200
REC 1000
REQ 16384
REQ 16384
>= 10485760
REC <= 60
REC 1
REQ 1
REC 1
REQ ase_current
REQ 0
REQ 1
REC >=128
REC 0
REC >=500
REQ 0
REQ 0
REQ 1
REQ allrows_mix
REQ:BI allrows_mix
REC >= 20
REC >= 20
REC 0
REQ 1
REC >= 60000
REC >= 5000000
REC >= 5000000
REC 32768
REC 32
REC 5
REQ <> 0
REC 5
REQ <> 0
REC >=8
REC 1
REC 1
REC 5
REC 3
REC 10
REC 32
REC:WIN 0

REQ >= 151552


REQ:AIX >= 194560
REQ:HPUX >= 409600
REQ 16384
REQ:WIN 4096

REQ 400M
REQ 1
REQ 1
REQ 1
REQ 1
REQ 1
REC 1
REC 1
REQ 0
REQ 0

REC 1
REQ 0
REQ 0
REC 1
REQ 1

REQ 0
REQ 0

REC 1
REC partial

REQ 0

REQ 701
REQ 1105
REQ 2901
REQ 12205

Vous aimerez peut-être aussi