Experience: is what you get soon after you need it.

Experience: is what you get soon after you need it.



My Cloud Certifications:

GIAC Cloud Penetration Tester (GCPN)

GIAC Cloud Security Automation (GCSA)

GIAC Security Essentials (GSEC)

Certified Kubernetes Administrator (CKA)

Cloud Certified Security Professional (ISC2)

CyberSecurity Certified Professional (ISC2)

AWS Certified Solutions Architect Associate

Azure Certified Architect Expert

Azure Certified Architect

Azure Certified Administrator

Oracle Cloud Infrastructure 2018 Certified Architect Associate.

Oracle Cloud Infrastructure Classic 2018 Certified Architect Associate.

Oracle Database Cloud Administrator Certified Professional.

Oracle Database Cloud Service Operations Certified Associate.

Search This Blog

Tuesday, August 11, 2015

ORA-15028: ASM file not dropped; currently being accessed (DBD ERROR: OCIStmtExecute)


Issue:
ORA-15028: ASM file not dropped; currently being accessed (DBD ERROR: OCIStmtExecute)
 Trying to drop a asm file which is actively used by ORACLE Database.

ASMCMD> rm -rf users01.dbf
ORA-15032: not all alterations performed
ORA-15028: ASM file '+DATA2/ORCL/users01.dbf' not dropped; currently being accessed (DBD ERROR: OCIStmtExecute)


Fix:
Take the file offline(or shut the DB down ) and then try again:

SQL> alter database datafile '+DATA2/orcl/users01.dbf' offline;

Database altered.

ASMCMD> rm -rf users01.dbf

ASMCMD> ls -l users01.dbf
ASMCMD-8002: entry 'users01.dbf' does not exist in directory '+DATA2/ORCL/'



No comments: