SQL Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
--用脚本创建的数据库create database时总报错,Ora-06553 Pls-213 Package Standard Not Accessible。最初以为是版本relink的问题,到后来又怀疑是环境变量的问题。因为远程ssh ip su -oradce -c "sh test.sh"时,环境变量会丢失。 --直接执行CreateDB.sql不报错。但是执行sid.sh和sid.sql时均有报错。研究了半天,终于在metalink上找到报错原因。 --只要把/opt/oracle/products/10.2.0/sqlplus/admin/login.sql中的set serveroutput on size 1000000 format wrapped这一行去掉即可。 col temporary_tablespace format a30 set pages 9999 SET TERMOUT OFF /* metalink原文如下: --Create Database Statement Generates Error Ora-06553 Pls-213 Package Standard Not Accessible [ID 400942.1] -------------------------------------------------------------------------------- 修改时间 16-JUL-2007 类型 PROBLEM 状态 MODERATED In this Document -------------------------------------------------------------------------------- This document is being delivered to you via Oracle Support‘s Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review. Applies to: Symptoms ERROR: Cause During database creation, the glogin.sql file is executed, which in turn causes the "SET SERVEROUT ORA-06553: PLS-213: package STANDARD not accessible Also, during subsequent logins to SQL Plus, the glogin.sql file is executed, and the same error is -------------------------------------------------------------------------------- 相关的产品 Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition |