USE [master]
GO
ALTER DATABASE DBNAME SET RECOVERY SIMPLE WITH NO_WAIT
GO
ALTER DATABASE DBNAME SET RECOVERY SIMPLE -- 设置简单模式
GO
USE DBNAME
GO
DBCC SHRINKFILE (N'DBNAME_log' , 2, TRUNCATEONLY) -- 设置压缩后的日志大小为 2M
GO
<!-- web.config -->
<configuration>
<system.webServer>
<!-- 移除 .html 后缀 -->
<rewrite>
<rules>
<rule name="RewriteHTML">
<match url="(.*)" />
# 示例:netsh wlan set hostednetwork mode=allow ssid=SSID名称 key=WIFI密码
netsh wlan set hostednetwork mode=allow ssid=NB key=notebook
# 开启
netsh wlan start hostednetwork
# 关闭
netsh wlan stop hostednetwork
docker search portainer # 搜索包
docker pull portainer/portainer # 下载镜像
# 本机部署
docker run -d -p 90:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data --name prtainer-test portainer/portainer
# 汉化部署(须下载汉化包)
docker run -d -p 90:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -v /package/portainer_cn:/public --name prtainer-test portainer/portainer
# 访问 ip:90,初始化账号、密码,选择 Local --> Connect
# help
https://www.cnblogs.com/Bug-Hunter/p/12023130.html
npm login # 登录
npm init # 初始化 package.json 包的信息
npm publish # 发布
npm unpublish <package-name>@<version> # 取消发布包(指定版本,72 小时内)
npm unpublish <package-name> -f # 取消发布包(整个包,72 小时内)
npm deprecate <package-name> "<message>" # 弃用整个包,留言
npm deprecate <package-name>@<version> "<message>" # 弃用包(指定版本),留言
npm config set registry https://registry.npmmirror.com # 设置镜像
npm config set registry https://registry.npmjs.org # 清除镜像,恢复
npm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ # 设置 electron 镜像
# 安装 yarn https://yarnpkg.com/getting-started/install
npm install -g yarn
# 安装 pm2 https://pm2.keymetrics.io/docs/usage/quick-start/
npm install pm2@latest -g
npm install -g npm-check-updates # 安装 npm-check-updates
ncu --loglevel verbose --packageFile package.json # 查看
ncu -u --packageFile package.json # 更新配置
npm install # 删除node_modules目录,重新下载依赖
# help
https://github.com/raineorshine/npm-check-updates/issues/136
-- 查看表空间物理文件的名称及大小
SELECT tablespace_name, file_id, file_name, round(bytes / (1024 * 1024), 2) total_space
FROM dba_data_files ORDER BY tablespace_name;
-- 表空间占用情况
SELECT a.segment_name, b.table_name, sum(a.bytes)/ 1024 / 1024 AS mb
FROM dba_segments a LEFT JOIN dba_lobs b ON a.segment_name = b.segment_name
WHERE a.tablespace_name = 'DSPACE' GROUP BY a.segment_name, b.table_name ORDER BY mb DESC;
-- 查询所有用户所对应的表空间,有dba权限的帐号,如sys,system