What scripts to run to enable PL/SQL after creating a database?

Hello Smart One,

1) I created a database from scratch (NOT using the installer)

2) I created tablespaces and users.

3) BUT when I went to do an import of a databse it said I must create "package DBMS_STANDARD before running pl/sql"

What Oracle admin scripts must I run after creating a database to enable pl/sql? any other script I need to run for anything else?

Appreciate your help!
Keith
keithedwardAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bkesarlaCommented:
Run the scripts catalog.sql & catproc.sql
as SVRMGRL.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sudhi022299Commented:
I assume that keithedward has already run the catalog.sql and catproc.sql from server manager.

In case u get this error only when u try to import, then the scripts for Export/import should be run.

Regards,
Sudhi.
0
bkowalskiCommented:
Keith

You may encounter similar problems in the future.  To install Oracle options and packages, you often need to run scripts in %ORACLE_HOME\rdbms8\admin.  So what I do is search the contents of these files (using Windows advanced search features or Unix grep call) for the package given in the error message.  Then check the returned files more closely to see which ones need to be run.  Usually there is enough info in the header comment section to figure out how/as who to run the script.

For example, I searched for DBMS_STANDARD and got back dbmsstdx.sql and dbmsutil.sql.  It turns out you need to run dbmsstdx.sql to create the package DBMS_STANDARD.  However, running catalog.sql and catproc.sql will get this done also because catproc.sql calls dbmsstdx.sql.

Brad
0
bkowalskiCommented:
Keith

You may encounter similar problems in the future.  To install Oracle options and packages, you often need to run scripts in %ORACLE_HOME\rdbms8\admin.  So what I do is search the contents of these files (using Windows advanced search features or Unix grep call) for the package given in the error message.  Then check the returned files more closely to see which ones need to be run.  Usually there is enough info in the header comment section to figure out how/as who to run the script.

For example, I searched for DBMS_STANDARD and got back dbmsstdx.sql and dbmsutil.sql.  It turns out you need to run dbmsstdx.sql to create the package DBMS_STANDARD.  However, running catalog.sql and catproc.sql will get this done also because catproc.sql calls dbmsstdx.sql.

Brad
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.