Jan 29, 2016

OracleService on window hold system01.dbf file after drop pluggable database

เจอเหตุการณ์แปลกๆ ไม่แน่ใจนะว่า bug หรือป่าวลองหาข้อมูลใน oracle support ยังไม่เจอบทความเกี่ยวกับเรื่องนี้ คือ OracleService<InstanceName> บน window ยังใช้งาน system01.dbf  หลังจากที่สั่ง Drop pluggable database ไปแล้วเรียบร้อย

C:\Users\Administrator\Desktop>sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Fri Jan 29 15:16:34 2016

Copyright (c) 1982, 2014, Oracle.  All rights reserved.


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing opt
ions

SQL> select name,open_mode from v$pdbs;

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
PDBTEST                          READ WRITE

SQL> ALTER PLUGGABLE DATABASE PDBTEST CLOSE IMMEDIATE;

Pluggable database altered.

SQL> DROP PLUGGABLE DATABASE PDBTEST INCLUDING DATAFILES;

Pluggable database dropped.

SQL>

ปรากฎว่าเหลือไฟล์อยู่ตัวนึงคือ SYSTEM01.DBF และพอไปลบ Manual จึงเจอว่ามันยังใช้งานอยู่


แก้ไขโดย

ผมยังไม่ทราบ solution ที่ดีกว่านี้นะ workaround คือ stop - start instance ครับ


SQL> shutdown immediate
SQL> startup

หลังจากนั้นก็ไปลบไฟล์แบบ manual ครับ หายละ อิอิ

มีอะไรที่ผมเข้าใจผิดแจ้งด้วยนะครับ
Young Oracle DBA Thailand ..

No comments:

Post a Comment