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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
bkesarlaConnect With a Mentor Commented:
Run the scripts catalog.sql & catproc.sql
as SVRMGRL.
0
 
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
All Courses

From novice to tech pro — start learning today.