Oracle Simulation ASH
This project is maintained by Marcin Przepiorowski
Hosted on GitHub Pages based on the Dinky theme
targ_userview_<db_version>.sql
sqlplus / as sysdba @config.sqland answer all questions. In first part script will create repository owner and whole repository schema. The following questions have to be answered:
"------------------------------------------------------------------------------------" Creating repository owner and job kill function using SYS user "------------------------------------------------------------------------------------" Enter user name (schema owner) [or enter to accept username sash] ? Enter user password ? sash Enter SASH user default tablespace [or enter to accept USERS tablespace] ? SASH default tablespace is: users "------------------------------------------------------------------------------------" Existing sash user will be deleted. If you are not sure hit Control-C , else Return : "------------------------------------------------------------------------------------" New sash user will be created. Warning: Procedure created with compilation errors. Connected. "------------------------------------------------------------------------------------" Installing SASH objects into sash schema "------------------------------------------------------------------------------------" Create sequence Create tables Crating SASH_REPO package No errors. No errors. Crating SASH_PKG package No errors. No errors. "------------------------------------------------------------------------------------" Instalation completed. Starting SASH configuration process "------------------------------------------------------------------------------------" Enter target database name POLTP Enter number of instances [default 1] Enter host name for instance number 1 oracle-server.mydomain Enter instance name for instance number 1 [ default POLTP ] Enter listener port number [default 1521] Enter SASH password on target database sash "------------------------------------------------------------------------------------" Configuration completed. Exiting. You can now connect using user name and password specified above "------------------------------------------------------------------------------------" Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @job_stat.sql JOB_NAME LAST_START_DATE NEXT_RUN_DATE STATE FAILURE_COUNT ------------------------------ ----------------------------------- ----------------------------------- --------------- ------------- SASH_PKG_GET_ALL_POLTP1 24-NOV-11 03.00.30.431000 +00:00 24-NOV-11 03.15.30.300000 +00:00 SCHEDULED 0 SASH_REPO_PURGE 25-NOV-11 00.00.00.000000 +00:00 SCHEDULED 0 SASH_REPO_WATCHDOG 24-NOV-11 11.00.30.408000 +00:00 24-NOV-11 11.05.30.000000 +00:00 SCHEDULED 0 SASH_PKG_COLLECT_POLTP1 24-NOV-11 11.00.30.295000 +00:00 24-NOV-11 11.00.30.000000 +00:00 RUNNING 0Check repository error log using the following script - checklog.sql
SQL> @checklog.sql R START_TIME ACTION MESSAGE - ------------------------- ------------------------------------------------ ------------------------------------------------------------------------ W 2011-11-24 11:07:20 add_db no db link - moving forward POLTP1 I 2011-11-24 11:07:20 configure_db get_event_names I 2011-11-24 11:07:20 configure_db get_users I 2011-11-24 11:07:20 configure_db get_params I 2011-11-24 11:07:20 configure_db get_data_files I 2011-11-24 11:07:20 configure_db get_metrics I 2011-11-24 11:07:20 add_instance_job adding scheduler job sash_pkg_collect_POLTP1 I 2011-11-24 11:07:20 add_instance_job adding scheduler job sash_pkg_get_all_POLTP1 I 2011-11-24 11:07:21 create_repository_jobs adding new repository job 9 rows selected.