Oracle interview question

How would I write a script, troubleshoot database issues