oracle vps 免费额度和使用要求

结论

三份互相独立的额度:AMD 按台数、A1 按核/内存、块存储按 GB 总量(引导卷+块卷)。本账号 2026-11-10 三份全部用满且未越界,稳态账单 0;但这是 PAYG 号,越界即真扣钱,没有「超额停机」保护。

三台机器与额度

实例形态引导卷公网 IP(保留)DNS / 角色
softE2.1.Micro(1/8 OCPU、1 GB)Ubuntu 24.04 minimal50 GB (ghost CNAME 到此);主站宿主,rootful+rootless 双栈
microE2.1.Micro(同上)50 GB 冷备与迁移中转
armA1.Flex 4C24G Ubuntu 24.04 minimal aarch64100 GB ARM 侧站点宿主
额度限额键上限已用余量
块存储合计total-free-storage-gb200 GB200(50+50+100)0
卷备份(引导卷+块卷合并)free-backup-count5 个同时存在的备份对象05
AMD 微型实例vm-standard-e2-1-micro-count2 台2 台0
Ampere A1无独立限额键,按核与内存4 OCPU / 24 GB 常驻4 / 240
保留公网 IPreserved-public-ip-count服务限额 50 个 / 区域347
出网流量—10 TB / 月未接近充足
  • 临时 IP 不能原地转保留:做法是新建保留 IP → 删临时 IP → 挂到同一私有 IP(public-ip update --private-ip-id),地址随之改变并同步 DNS。保留 IP 生命周期独立于实例,重建后地址不变;解绑闲置会计费。

硬边界

  • 存储一分不剩:200 GB 已满,新增任何卷都建不出来(从备份恢复同样被拒 LimitExceeded);要扩必须先删卷。
  • 引导卷只能扩不能缩:缩容唯一办法是删卷重建实例。
  • 实例与 A1 都满额:第三台 micro 建不出;A1 4 核 24 GB 用满,加 ARM 须先缩现有实例。
  • 保留 IP 解绑即计费:销毁实例前先确认 IP 已转让或删除。
  • 按 GB-月摊销:短暂超额也留账单行(本次 250 GB 并存约 0.2 小时 ≈ 0.014 GB-月)。

配额限制怎么设(有效约束)

在租户根层挂配额策略(in tenancy):不改策略建不出超额资源,要建同类就先删旧资源腾额度。两条策略 2026-11-10 实测生效。

always-free-cap(计算与存储)

set compute-core   quota standard-a1-core-count       to 4   in tenancy
set compute-memory quota standard-a1-memory-count     to 24  in tenancy
set compute-core   quota standard-e2-micro-core-count to 2   in tenancy
set compute-core   quota standard-e2-core-count       to 0   in tenancy
set compute-core   quota standard-e4-core-count       to 0   in tenancy
set compute-core   quota standard-a2-core-count       to 0   in tenancy
set compute        quota vm-standard-e2-1-micro-count to 2   in tenancy
set compute        quota vm-standard-e2-1-count       to 0   in tenancy
set compute        quota vm-standard-e2-2-count       to 0   in tenancy
set compute        quota vm-standard-e2-4-count       to 0   in tenancy
set compute        quota bm-standard-e2-64-count      to 0   in tenancy
set block-storage  quota total-storage-gb             to 200 in tenancy
set block-storage  quota volume-count                 to 3   in tenancy
set block-storage  quota backup-count                 to 5   in tenancy
set block-storage  quota total-replica-storage-gb     to 0   in tenancy

always-free-cap-extras(非计算计费面)

set object-storage quota storage-bytes            to 21474836480 in tenancy
set load-balancer  quota lb-flexible-count       to 1           in tenancy
set load-balancer  quota lb-100mbps-count         to 0           in tenancy
set load-balancer  quota lb-10mbps-count          to 0           in tenancy
set load-balancer  quota lb-400mbps-count         to 0           in tenancy
set load-balancer  quota lb-8000mbps-count        to 0           in tenancy
set database       quota adb-free-count           to 2           in tenancy
set database       quota adb-developer-count      to 0           in tenancy
set database       quota adw-ocpu-count           to 0           in tenancy
set database       quota adw-ecpu-count           to 0           in tenancy
set database       quota ajd-ocpu-count           to 0           in tenancy
set vcn            quota reserved-public-ip-count to 3           in tenancy

服务名与配额名必须配对——语句里的 service 是配额自身的分类,不是资源所属云服务,写错直接被拒。

约束对象servicequota name值
A1 核数 / 内存compute-core / compute-memorystandard-a1-core-count / standard-a1-memory-count4 / 24
E2.1.Micro 核数compute-corestandard-e2-micro-core-count2
E2(非 micro)/ E4 / A2 核数compute-corestandard-e2-core-count / standard-e4-core-count / standard-a2-core-count0
Micro 实例数computevm-standard-e2-1-micro-count2
E2.1/2/4 实例数、裸金属 E2.64computevm-standard-e2-1-count(-2/-4 同)/ bm-standard-e2-64-count0
存储总量 / 卷数 / 备份数 / 跨区副本block-storagetotal-storage-gb / volume-count / backup-count / total-replica-storage-gb200 / 3 / 5 / 0
对象存储object-storagestorage-bytes20 GB
负载均衡load-balancerlb-flexible-count 留 1,lb-*-mbps-count 全 01 / 0
ADB 数据库databaseadb-free-count 留 2,adb-developer / adw-* / ajd-* 全 02 / 0
保留公网 IPvcnreserved-public-ip-count3

设置与复核

# 语句清单写成 JSON 数组,只能走 file://
oci limits quota create --compartment-id <tenancy> --name <策略名> --statements file:///tmp/q.json
# 改策略:删了重建(update 十余条语句会长时间挂住)
oci limits quota delete --quota-id <id> --force
oci limits quota create ... --statements file:///tmp/q.json
# 回读语句
oci limits quota get --quota-id <id> --query 'data.statements' --raw-output
# 查真实存在的配额名(设之前先确认名字合法)
oci limits definition list --service-name <service> --query 'data[].name'
# 实时可用量 = 准入判据,available=0 就建不出来
oci limits resource-availability get -c <tenancy> --service-name compute-core \
  --limit-name standard-e2-core-count --query 'data.{used:used,available:available}'
  • 超额表现:新建直接被拒 QuotaExceeded,存储满时先报 bootVolumeQuota;化解只有「改策略」或「删旧腾额度」两条路。
  • 按区域生效:只约束已订阅区域,订阅新区域须重建同样策略。
  • 防手滑不防主动改:有管理权限的身份可改可删策略;要真隔离须让自动化走无 limits 权限的子账号。

卷备份(5 个名额)

  • 是什么:块级时间点快照,存在 OCI 托管侧——不能挂载、不能浏览文件、不能上传,唯一用法是「从备份创建一块新卷」(同区域任意 AD)。备份的是卷不是实例,不含实例元数据与 cloud-init。
  • 5 个是同时存在的备份对象总数,引导卷与块卷合并计数(官方:Five total volume backups (boot volume and block volume combined) in home region),删一个才腾一个。
  • 增量:首份全量、其后只含变化块(实测 50 GB 卷:首份 unique 11 GB、第二份 1 GB),不占 200 GB 块存储额度。
  • 恢复前必须先腾空间:恢复=建新卷,200/200 时被拒。顺序:terminate 坏实例 → 删引导卷 → 恢复 → 起机。
  • 不开自动备份策略:Backup Policy 会自动吃掉这 5 个名额,挤掉手动留的回滚点。

免费活跃度要求

指标Micro(E2.1.Micro,AMD)ARM(A1.Flex,Ampere)
免费额度最多 2 台,每台 1/8 OCPU 可突发、1 GB 内存,终身免费常驻 4 OCPU + 24 GB;2026-06 有砍半报道,本账号 2026-11-10 实际建成 4C24G
闲置窗口连续 7 天连续 7 天
CPU / 网络95 分位利用率均低于 20%95 分位利用率均低于 20%
内存不适用利用率低于 20%
回收后果纯免费号可被终止且数据丢失;PAYG 是否也回收无官方口径同左

账号级要求与待实测

  • 实例在跑不等于账号活跃:30 天无活动可视为放弃,进入暂停或终止流程。
  • PAYG 号:Always Free 资源仍免费,超出部分按量计费,没有停机保护网。
  • 待实测:A1 砍半传闻是否对本号生效(现可建 4C24G)|PAYG 是否停止闲置回收|保留 IP 是否有独立计费行、块存储超额单价|关机实例是否计回收、出网 10 TB 计量口径。

来源

额度数值与用量:OCI Limits / Compute / Block Storage API 实测(2026-11-10);额度与闲置回收口径:Oracle Always Free Resources 文档;账号活动:Free Tier FAQ;A1 砍半:Linuxiac 2026-06-14。