Activity MOS Reference: Enable Native PL/SQL Compilation For Data Warehouse

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Activity

Enable Native PL/SQL Compilation for Data Warehouse

MOS Reference
How To Convert the Entire DB From INTERPRETED Mode to NATIVE or Vice Versa for PL/SQL (Doc ID
1340441.1)

Action Plan
1. Stop BI Application (to avoid data source disconnection after DB restart)

2. Database server activity

Stop database listener

lsnrctl stop LISTEN_POBI

Compile invalids and take plsql settings count before activity

$ cd /home/sdbisdba/SBI-4774

$ sqlplus / as sysdba

SQL> @?/rdbms/admin/utlrp

SQL> spool list_invalid_b4.txt

SQL> @list_invalid_objects.sql

SQL> spool off

SQL> spool verify_plsql_settings_b4.txt

SQL> @verify_plsql_settings.sql

SQL> spool off

Backup initialization file (optional)

SQL> create pfile='/tmp/pfileSBIDWPR.ora' from spfile;

Alter DB parameter and restart DB

SQL> alter system set plsql_code_type='NATIVE' scope=spfile;

SQL> shutdown immediate

SQL> startup upgrade

SQL> @?/rdbms/admin/dbmsupgnv.sql TRUE

SQL> shutdown;

SQL> startup

SQL> alter system enable restricted session;


Take invalids count and plsql settings count after activity

SQL> spool list_invalid_after.txt

SQL> @list_invalid_objects.sql

SQL> spool off

SQL> spool verify_plsql_settings_after.txt

SQL> @verify_plsql_settings.sql

SQL> spool off

SQL> ALTER SYSTEM DISABLE RESTRICTED SESSION;

Stop database listener

lsnrctl start LISTEN_POBI

3. Start BI Application and validate

Known issue
In Dev and QA “sysman.MGMT_STARTUP” got invalid after activity. This can be compiled manually.

SQL> alter trigger sysman.MGMT_STARTUP compile;

Trigger altered.

You might also like