【TechTarget中国原创】问:我如何才能避免 ORA-01501、ORA-00200、ORA-00202、ORA-27038以及OSD-04010这些错误?
答:当你收到错误信息时,重要的一点就是要包含所有信息文本和数据。这样做不仅能够节省我查看错误信息的时间,还能在没有信息变化元素的情况下进行合理诊断。以下是你得到的错误信息:
01501, 00000, "CREATE DATABASE failed" // *Cause: An error occurred during create database // *Action: See accompanying errors. 00200, 00000, "controlfile could not be created" // *Cause: It was not possible to create the controlfile. // *Action: Check that there is sufficient disk space and no conflicts in // filenames and try to create the controlfile again. 00202, 00000, "controlfile: '%s'" // *Cause: This message reports the name file involved in other messages. // *Action: See associated error messages for a description of the problem. 27038, 00000, "skgfrcre: file exists" // *Cause: trying to create a database file, but file by that name already // exists // *Action: verify that name is correct, specify reuse if necessary |
从这些错误信息看来,很明显你是想创建数据库。ORA-200错误表示不能创建控制文件。ORA-27038显示不能创建控制文件的原因:因为文件名称已经存在。如果你已经删除了数据库并重新创建了数据库,你就必须手动删除这些控制文件。如果文件属于另一个数据库,那你可能不想改写控制文件。哪一个控制文件不能创建?注意ORA-202信息包括一个可变量:"%s",这是一个代表控制文件名称的字符串变量。