Little Star Blog

路在脚下,心向远方

sybase

表操作 创建表 create table dbo.table_name ( column_name int) 删除表 drop table table_name 删除数据 delete from table_name

sybase

登录数据库 /sybase/isql -S DKSYBASE -U sa -P password 用户操作 创建用户 create login xxx with password wewewew@2323 修改用户密码 alter login xxx with password 'password' modify password 'wewewWWD#$ew@23233'

sybase

docker安装 https://hub.docker.com/r/chernov/sybase docker run -d -t -p 5000:5000 -e "SYBASE_USER=guest" -h dksybase --name sybase157 chernov/sybase:latest docker exec -t sybase157 /bin/bash /sybase/isql -i"/opt/sybase/ASE-15_0/scripts/installpubs2" 分页显示 设置返回条数 不限制 SET ROWCOUNT 0 返回4条 SET ROWCOUNT 4 显示前4条内容 SELECT TOP 4 t.* from table_name t 查看设备

sybase 审计操作

打开审计攻击 查看当前审计状态 sp_configure 'auditing' 打开审计 第一步、先初始化审计设备 disk init name = "auditdev", physname = "/opt/sybase/data/c2d0s4", size = "100M" disk init name = "auditlogdev", physname = "/opt/sybase/data/c2d0s5", size = "200M" create database sybsecurity on auditdev log on auditlogdev 第二步、执行审计