Installing DBMS_JAVA package in Oracle following files need to be run:- sql> select comp_name, version, status from dba_registry where comp_name like '%JAVA%'; @?/javavm/install/initjvm.sql; @?/xdk/admin/initxml.sql; @?/xdk/admin/xmlja.sql; @?/rdbms/admin/catjava.sql; @?/rdbms/admin/catexf.sql; and verify your java installation in Oracle Database sql> select comp_name, version, status from dba_registry where comp_name like '%JAVA%'; sql> select dbms_java.longname(object_name), status, object_type from all_objects where object_type = 'JAVA CLASS'; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ calling UTL_DBWS web services through Oracle Database :- set the follwing parameters in .bash_profile of oracle user export JAVA_HOME=$ORACLE_HOME/jdk ORACLE_BASE=/opt/oracle/product; export ORACLE_BASE ORACLE_HOME=/opt/oracle/product/11.2.0/dbhome_1; exp...
First method ( and easy one too ) :- note:- must perform this activity on each instance one by one. ......stop jobs which is assigning to the specific instance..... $ export ORACLE_SID=SID connect database using job owner .... $ sqlplus username/password list of jobs and its instance.... sql> select JOB,INSTANCE from user_jobs; JOB INSTANCE ---------- ---------- 2510 0 2951 0 2992 0 3091 0 3111 0 1570 0 1567 0 1568 0 1569 ...
There is a way to find the last dml time :- Alter Table Tabname Monitoring; Once this is there, Select * from User_Tab_Modifications; If you want all tables to be Checked, Run the script like this Spool Monitor.sql Select 'Alter table '||Table_Name||' Monitoring ;' From User_Tables; Spool Off; @Monitor.sql select to_char(scn_to_timestamp(max(ora_rowscn))) from <table_name>; select * from all_tab_modifications where table_name = '<table_name>';
Comments
Post a Comment