An error was executed after Oracle created the package: Object Omgmig.test_package is invalid.

Source: Internet
Author: User

Today I learned the wording of Oracle's package and then encountered a problem. Both the package declaration and the package body are correct, but the error is executed: Object Omgmig.test_package is invalid.

This is an error SQL, it looks normal, right? But it's an error.

--Package DeclarationCreatePackage Omgmig.test_package asprocedureShow1;EndOmgmig.test_package;--Package BodyCreatePackage Body Omgmig.test_package asprocedureShow1 isbegin forIinch 1..9Loopdbms_output.put_line ('The value of I is:'||i);EndLoop;End;EndOmgmig.test_package;beginOmgmig.test_package.show1;End;

Then right-click on the package name to view, PL/SQL prompts for the cause of the error:

But I was in the definition when the OMGMIG prefix is added, and then drop the package, the name of the OMGMIG prefix is removed after the execution succeeds. Because I am currently using the account is Omgmig,pl/sql will automatically remove this prefix. Additionally, the reason for the error is that the package name cannot contain "."

An error was executed after Oracle created the package: Object Omgmig.test_package is invalid.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.