[go: up one dir, main page]

0% found this document useful (0 votes)
566 views5 pages

Increase Size of Log Segment Sybase

Download as txt, pdf, or txt
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 5

Microsoft Windows [Version 10.0.

14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>J:

J:\>cd sybase\SMA

J:\sybase\SMA>dir
Volume in drive J is DATA:
Volume Serial Number is C024-F20A

Directory of J:\sybase\SMA

09/10/2019 02:37 PM <DIR> .


09/10/2019 02:37 PM <DIR> ..
09/10/2019 02:55 PM <DIR> ASE-16_0
07/13/2019 10:52 AM <DIR> charsets
07/13/2019 10:52 AM <DIR> collate
07/13/2019 10:54 AM <DIR> data
07/15/2019 08:51 AM <DIR> ini
07/13/2019 10:53 AM <DIR> jConnect-16_0
07/13/2019 10:52 AM <DIR> jre64
07/13/2019 10:53 AM <DIR> jutils-3_0
07/13/2019 10:52 AM <DIR> locales
07/13/2019 10:55 AM <DIR> log
07/13/2019 10:53 AM <DIR> OCS-16_0
07/13/2019 11:14 AM <DIR> sapdata_1
09/10/2019 01:32 PM <DIR> sapdata_2
07/17/2019 02:53 PM <DIR> sapdbctrl-config
07/13/2019 11:14 AM <DIR> sapdiag
07/13/2019 10:54 AM <DIR> Shared
07/13/2019 10:54 AM 867 SYBASE.1.bat
07/13/2019 10:54 AM 756 SYBASE.1.env
07/13/2019 10:55 AM 867 SYBASE.2.bat
07/13/2019 10:55 AM 756 SYBASE.2.env
07/15/2019 08:50 AM 867 SYBASE.bat
07/15/2019 08:50 AM 756 SYBASE.env
07/13/2019 10:52 AM <DIR> Sybase_Install_Registry
07/13/2019 10:54 AM <DIR> SYBDIAG
07/13/2019 11:14 AM <DIR> sybsecurity
07/13/2019 11:04 AM <DIR> sybsystem
07/13/2019 10:59 AM <DIR> sybtemp
07/13/2019 10:52 AM <DIR> sybuninstall
07/13/2019 10:53 AM <DIR> SYSAM-2_0
07/13/2019 10:54 AM <DIR> WS-16_0
189 File(s) 3,400,715 bytes
26 Dir(s) 101,520,146,432 bytes free

J:\sybase\SMA>SYBASE.bat

J:\sybase\SMA>REM

J:\sybase\SMA>REM SAP Product Environment variables

J:\sybase\SMA>REM

J:\sybase\SMA>set SAP_JRE7_32=J:\sybase\SMA\Shared\SAPJRE-7_1_055_32BIT

J:\sybase\SMA>set SAP_JRE7=J:\sybase\SMA\Shared\SAPJRE-7_1_055_64BIT
J:\sybase\SMA>set SAP_JRE7_64=J:\sybase\SMA\Shared\SAPJRE-7_1_055_64BIT

J:\sybase\SMA>set SYBASE_OCS=OCS-16_0

J:\sybase\SMA>set INCLUDE=J:\sybase\SMA\OCS-16_0\include;

J:\sybase\SMA>set LIB=J:\sybase\SMA\OCS-16_0\lib;

J:\sybase\SMA>REM

J:\sybase\SMA>REM Replace dll, lib3p, and lib3p64 with devdll, devlib3p, and
devlib3p64 when debugging

J:\sybase\SMA>REM

J:\sybase\SMA>set PATH=J:\sybase\SMA\OCS-16_0\bin;J:\sybase\SMA\OCS-
16_0\dll;J:\sybase\SMA\OCS-16_0\lib3p64;J:\sybase\SMA\OCS-
16_0\lib3p;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\SAP\hdbclient;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps

J:\sybase\SMA>set SYBASE=J:\sybase\SMA

J:\sybase\SMA>set SYBASE_ASE=ASE-16_0

J:\sybase\SMA>set SYBROOT=J:\sybase\SMA

J:\sybase\SMA>set PATH=J:\sybase\SMA\ASE-16_0\bin;J:\sybase\SMA\ASE-
16_0\dll;J:\sybase\SMA\OCS-16_0\bin;J:\sybase\SMA\OCS-16_0\dll;J:\sybase\SMA\OCS-
16_0\lib3p64;J:\sybase\SMA\OCS-
16_0\lib3p;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\SAP\hdbclient;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps

J:\sybase\SMA>set SYBASE_JRE_RTDS=J:\sybase\SMA\Shared\SAPJRE-7_1_055_64BIT

J:\sybase\SMA>set SYBASE_WS=WS-16_0

J:\sybase\SMA>set PATH=J:\sybase\SMA\ASE-16_0\jobscheduler\bin;J:\sybase\SMA\ASE-
16_0\bin;J:\sybase\SMA\ASE-16_0\dll;J:\sybase\SMA\OCS-16_0\bin;J:\sybase\SMA\OCS-
16_0\dll;J:\sybase\SMA\OCS-16_0\lib3p64;J:\sybase\SMA\OCS-
16_0\lib3p;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Common
Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\SAP\hdbclient;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps

J:\sybase\SMA>isql -Usapsa -SSMA -w999 -X


Password:
1> sp_helpdb SMA
2> go
name db_size owner dbid created durability lobcomplvl inrowlen status

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


-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----
SMA 194560.0 MB sapsa 4 Jul 13, 2019 full 100 2000 ddl in
tran, allow nulls by default, abort tran on log full, allow db suspect on rollback
error, allow wide dol rows, deferred table allocation, page compression, allow
incremental dumps, deallocate first text page, index compression,full logging for
all

(1 row affected)

device_fragments size usage created free_kbytes


---------------- ------------- --------- ------------------- ----------------
SMA_data_001 92160.0 MB data only Jul 13 2019 11:14AM 32272
SMA_log_001 20480.0 MB log only Jul 13 2019 11:14AM not applicable
SMA_data_002 81920.0 MB data only Sep 10 2019 1:33PM 76692000

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------
log only free kbytes = 177760

(return status = 0)
1> select * from master..syslogshold
2> go
dbid reserved spid page xactid masterxactid starttime
name xloid
------ ----------- ------ ---------- -------------- --------------
-------------------------------
------------------------------------------------------------------- -----------
5 0 159 1042795 0x6be90f001000 0x000000000000 Dec
2 2019 12:00PM $chained_transaction
318
6 0 46 1035335 0x47cc0f000e00 0x3aec0f000d00 Dec
2 2019 12:02PM $upd
92

(2 rows affected)
1> sp_helpdevice SMA_log_001
2> go
device_name physical_name description
status cntrltype vdevno vpn_low vpn_high
----------- --------------------------------------
-----------------------------------------------------------------------------------
----------- ------ --------- ------ ------- --------
SMA_log_001 F:\sybase\SMA\saplog_1\SMA_log_001.dat file system device, special,
dsync off, directio on, physical disk, 20480.00 MB, Free: 0.00 MB 2 0
6 0 10485759

dbname size allocated vstart lstart


------ ------------- ------------------- ------ -------
SMA 20480.00 MB Jul 13 2019 11:14AM 0 5898240
(return status = 0)
1> use master
2> go
1> disk resize name='SMA_log_001',size='10g'
2> go
1> alter database SMA log on SMA_log_001='10g'
2> go
Extending database by 655360 pages (10240.0 megabytes) on disk SMA_log_001
Processed 256 allocation unit(s) out of 2560 units (allocation page 12517120). 10%
completed.
Processed 512 allocation unit(s) out of 2560 units (allocation page 12582656). 20%
completed.
Processed 768 allocation unit(s) out of 2560 units (allocation page 12648192). 30%
completed.
Processed 1024 allocation unit(s) out of 2560 units (allocation page 12713728). 40%
completed.
Processed 1280 allocation unit(s) out of 2560 units (allocation page 12779264). 50%
completed.
Processed 1536 allocation unit(s) out of 2560 units (allocation page 12844800). 60%
completed.
Processed 1792 allocation unit(s) out of 2560 units (allocation page 12910336). 70%
completed.
Processed 2048 allocation unit(s) out of 2560 units (allocation page 12975872). 80%
completed.
Processed 2304 allocation unit(s) out of 2560 units (allocation page 13041408). 90%
completed.
Processed 2560 allocation unit(s) out of 2560 units (allocation page 13106944).
100% completed.
Warning: Using ALTER DATABASE to extend the log segment will cause user thresholds
on the log segment within 128 pages of the last chance threshold to be disabled.
1> sp_helpdb SMA
2> go
name db_size owner dbid created durability lobcomplvl inrowlen status

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


-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----
SMA 204800.0 MB sapsa 4 Jul 13, 2019 full 100 2000 ddl in
tran, allow nulls by default, abort tran on log full, allow db suspect on rollback
error, allow wide dol rows, deferred table allocation, page compression, allow
incremental dumps, deallocate first text page, index compression,full logging for
all

(1 row affected)

name attribute_class attribute int_value char_value comments


---- --------------------------- ------------- --------- ---------- --------
SMA Allocation Unit Initializer disk fragment NULL NULL NULL

device_fragments size usage created free_kbytes


---------------- ------------- --------- ------------------- ----------------
SMA_data_001 92160.0 MB data only Jul 13 2019 11:14AM 32272
SMA_log_001 20480.0 MB log only Jul 13 2019 11:14AM not applicable
SMA_data_002 81920.0 MB data only Sep 10 2019 1:33PM 76692000
SMA_log_001 10240.0 MB log only Dec 2 2019 12:09PM not applicable

-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
-------------------------
log only free kbytes = 10621872

(return status = 0)
1>

You might also like