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

To rebuild indexes and analyze tables in Oracle Server:

Connect to 172.16.3.75 through telnet

Enter userid as oracle and password as oracle

At prompt enter pwd to find the present working directory it should be /home/oracle. If it is not
showing this then go to the directory using cd /home/oracle command.
Enter following command at prompt

Sqlplus / as sysdba

Enter @index_rebuild.sql at the prompt to start the rebuilding process.


After the indexes get rebuilt estimate statistics by executing the following queries at sql prompt 5
queries at a time .
analyze table OPTV.DEVINFO estimate statistics;
analyze table OPTV.DISHTV_MY_ACCOUNT_PAY_BACKUP estimate statistics;
analyze table OPTV.DISHTV_MY_ACCOUNT_PAY_DETAILS estimate statistics;
analyze table OPTV.MGMT$REORG_OBJECTS estimate statistics;
analyze table OPTV.MGMT$REORG_SCRIPTS estimate statistics;
analyze table OPTV.OACT_TBL1_ACCOUNTS estimate statistics;
analyze table OPTV.OACT_TBL1_ACCT_CUSTOM estimate statistics;
analyze table OPTV.OACT_TBL1_BILLTOADDRESSES estimate statistics;
analyze table OPTV.OACT_TBL1_CREDITCARDS estimate statistics;
analyze table OPTV.OACT_TBL1_DEVICES estimate statistics;
analyze table OPTV.OACT_TBL1_DEVICETYPES estimate statistics;
analyze table OPTV.OACT_TBL1_DIGITAL_ADDRESSES estimate statistics;
analyze table OPTV.OACT_TBL1_DIGITAL_ADDRESS_T estimate statistics;
analyze table OPTV.OACT_TBL1_ENGINERRORLOG estimate statistics;
analyze table OPTV.OACT_TBL1_NETWORKS estimate statistics;
analyze table OPTV.OACT_TBL1_SHIPTOADDRESSES estimate statistics;
analyze table OPTV.OACT_TBL1_VIEWERS estimate statistics;
analyze table OPTV.OACT_TBL1_VIEWER_REGISTRY estimate statistics;
analyze table OPTV.OACT_TBL1_VIRTUALVIEWERS estimate statistics;
analyze table OPTV.OACT_TBL1_WALLETS estimate statistics;
analyze table OPTV.OACT_TBLTMP_CREDITCARDS estimate statistics;
analyze table OPTV.OACT_TBL_ACCOUNTS estimate statistics;
analyze table OPTV.OACT_TBL_ACCOUNT_ATTRIBUTE_EXT estimate statistics;
analyze table OPTV.OACT_TBL_ACCTSTATUSES estimate statistics;
analyze table OPTV.OACT_TBL_ACCT_CUSTOM estimate statistics;
analyze table OPTV.OPTV_P estimate statistics;
analyze table OPTV.OACT_TBL_ADDRESS_SCHEME estimate statistics;
analyze table OPTV.OACT_TBL_APPCONTENTTYPES estimate statistics;
analyze table OPTV.OACT_TBL_APPLICATIONS estimate statistics;
analyze table OPTV.OACT_TBL_APPSTATUSES estimate statistics;
analyze table OPTV.OACT_TBL_APPTYPES estimate statistics;
analyze table OPTV.OACT_TBL_APP_ATTRIBUTE_EXT estimate statistics;
analyze table OPTV.OACT_TBL_APP_GROUPS estimate statistics;
analyze table OPTV.OACT_TBL_BILLTOADDRESSES estimate statistics;
analyze table OPTV.OACT_TBL_CALLLOGS estimate statistics;
analyze table OPTV.OACT_TBL_CARDTYPES estimate statistics;
analyze table OPTV.OACT_TBL_COUNTRIES estimate statistics;
analyze table OPTV.OACT_TBL_CREDITCARDS estimate statistics;
analyze table OPTV.OACT_TBL_CURRENCIES estimate statistics;
analyze table OPTV.OACT_TBL_DEVICES estimate statistics;
analyze table OPTV.OACT_TBL_DEVICETYPES estimate statistics;
analyze table OPTV.OACT_TBL_DIGITAL_ADDRESSES estimate statistics;
analyze table OPTV.OACT_TBL_DIGITAL_ADDRESS_TYPE estimate statistics;
analyze table OPTV.OACT_TBL_DISTRIBUTION_NETWORKS estimate statistics;
analyze table OPTV.OACT_TBL_ENGINERRORLOG estimate statistics;
analyze table OPTV.OACT_TBL_ENTITLEMENTS estimate statistics;
analyze table OPTV.OACT_TBL_ERRORCODES estimate statistics;
analyze table OPTV.OACT_TBL_ERRORGRP estimate statistics;
analyze table OPTV.OACT_TBL_ERRORLOGS estimate statistics;
analyze table OPTV.OACT_TBL_ERRORMSGS estimate statistics;
analyze table OPTV.OACT_TBL_ISMCONFIG estimate statistics;
analyze table OPTV.OACT_TBL_ISMGROUPS estimate statistics;
analyze table OPTV.OACT_TBL_ISMPRIVILAGES estimate statistics;
analyze table OPTV.OACT_TBL_ISMUSERS estimate statistics;
analyze table OPTV.OACT_TBL_LANGUAGES estimate statistics;
analyze table OPTV.OACT_TBL_MYACCTNOTIFICATIONS estimate statistics;
analyze table OPTV.OACT_TBL_NETWORKS estimate statistics;
analyze table OPTV.OACT_TBL_ORDERLOGS estimate statistics;
analyze table OPTV.OACT_TBL_ORDERSTATUSES estimate statistics;
analyze table OPTV.OACT_TBL_PATCHENTRIES estimate statistics;
analyze table OPTV.OACT_TBL_PATCHLOGS estimate statistics;
analyze table OPTV.OACT_TBL_PRIVILAGEGROUPS estimate statistics;
analyze table OPTV.OACT_TBL_PRIVILAGELIST estimate statistics;
analyze table OPTV.OACT_TBL_PROVIDERADDRESSES estimate statistics;
analyze table OPTV.OACT_TBL_PROVIDERS estimate statistics;
analyze table OPTV.OACT_TBL_PROVIDERSTATUSES estimate statistics;
analyze table OPTV.OACT_TBL_PROVIDERS_NETWORKS estimate statistics;
analyze table OPTV.OACT_TBL_SHIPTOADDRESSES estimate statistics;
analyze table OPTV.OACT_TBL_SMSCONFIG estimate statistics;
analyze table OPTV.OACT_TBL_TAGS estimate statistics;
analyze table OPTV.OACT_TBL_TAGSETENTRIES estimate statistics;
analyze table OPTV.OACT_TBL_TAGSETS estimate statistics;
analyze table OPTV.OACT_TBL_TAGTYPES estimate statistics;
analyze table OPTV.OACT_TBL_VIEWERS estimate statistics;
analyze table OPTV.OACT_TBL_VIEWER_ATTRIBUTE_EXT estimate statistics;
analyze table OPTV.OACT_TBL_VIEWER_REGISTRY estimate statistics;
analyze table OPTV.OACT_TBL_VIRTUALVIEWERS estimate statistics;
analyze table OPTV.OACT_TBL_WALLETS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ACCOUNT_GROUPS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ACCOUNT_GROUPS_FEB estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ACTION_HANDLERS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ACTION_HANDLER_PARAMS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ACTION_HANDLER_TABLE estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ACTIVE_MSGS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ADDRESS_TYPE estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ALLOWED_GROUPS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ALLOWED_RESLVR_FORMATS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_APPLICATIONS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_APPLICATION_STATUS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_BCS_SERVERS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_BCS_SERVER_SET estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_CONFIG estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_CONFIG_SERVER estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_CONFIG_TABLE_VERSIONS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_DC2_TRANSPORT_CONFIG estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_DOWNLOAD_APPS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_DOWNLOAD_VERSIONS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_DSS_TRANSPORT_CONFIG estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_GROUP_STATUS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ISMGROUPS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ISMPRIVILEGES estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_ISMUSERS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_LOG_LEVELS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_MPEG_TRANSPORT_CONFIG estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_NODE_REPORTDATA estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_NOTIFY_SERVERS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_NOTIFY_SERVER_STATUS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_OUTPUT_MUX estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_PARAMS_TABLE estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_PRIVILEGEGROUPS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_PRIVILEGELIST estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_QOS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_QOS_STEP estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_QUEUE_NODE estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_REQUESTS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_RESOLVER_FORMATS estimate statistics;
analyze table OPTV_NOTIFY.OMM_TBL_TRANSPORT_TYPES estimate statistics;
analyze table OPTV.PBCATCOL estimate statistics;
analyze table OPTV.PBCATEDT estimate statistics;
analyze table OPTV.PBCATFMT estimate statistics;
analyze table OPTV.PBCATTBL estimate statistics;
analyze table OPTV.PBCATVLD estimate statistics;
analyze table OPTV.SM_OPTV_DETAILS_OLD estimate statistics;
analyze table OPTV.sm_optv_details estimate statistics;
analyze table OPTV.sm_optv_details_old estimate statistics;

You might also like