Quantcast
Channel: Database Best Practices »» KnowledgeBase
Browsing all 47 articles
Browse latest View live

How to read output of USAGE column for table $hist_table_access_1

How to read output of USAGE column of History database table “$hist_table_access_1″. This column stores the integer value for the type of query ran against a database table. QUERYHISTORYDB(ADMIN)=>...

View Article


How to find the blower details in a SPA – Netezza

How to find the blower details in SPA 4 (i.e. mm004) of your Netezza Twinfin appliance. RUn below command as nz and you will get all the required info regarding this blower. Read more on How to find...

View Article


Identify disks to be failed over manually – Netezza

Below query can be used identify disks with read write erros more than 1000 should be a candidate of manual failover. These disks can fail cause data corruption if not taken care off in timely manner....

View Article

Error 5616 : The user is not authorized to grant or revoke role

Teradata user is not authorized to grant or revoke role. Command Executed: Ran below command by user login_user grant my_role_name to my_user; ERROR: Executed as Single statement. Failed [5616 :...

View Article

To remove the bogus SAS switch entries – Netezza

To remove the bogus SAS switch entries from the system catalogs : 1) Shut down NPS: nzstop 2) Connect to postgres database: Chance are this will not work: > /nz/kit/sbin/postgres -P -D /nz/data –O...

View Article


How to replace a failed disk in Netezza

Steps to follow for failed disk replacement in Netezza Twinfin appliance. 1) It is always good to first turn off all the lights for all disks beacuse its possible that someone may have left it ON...

View Article

How to restart viewpoint services ?

If you have to restart Teradata viewpoint then you need to login to the viewpoint server using Putty. Once logged in you have to run below commands to restart viewpoint: Navigate to /etc/init.d...

View Article

How to find serial number for your Netezza appliance?

To find serial number for your Netezza appliance just run the below command and you will find the required info: locate nps_serial.txt | xargs cat

View Article


Manually failover a disk in Netezza

1) Check for the disk to be failed over (hwid 1355) and make sure it have a healthy mirror available. MyServer:/export/home/nz->nzds -id 1355 Data Slice Status SPU Partition Size (GiB) % Used...

View Article


How to check Netezza versions history?

Run below command to find the history of NPS upgrade on your server. $more /nz/.versions/versionhistory 2013-08-22 13:17:28 -0400 (EDT)| ACTION=upgrade ORIGIN=6.0.5-0.F-1.P-10.Bld-24823...

View Article

How to start Teradata database?

First check Teradata state and it should be Down/Hardstopped Login to Teradata host (any node) and run below command: # pdestate -a PDE state: DOWN/HARDSTOP Issue below command to start Teradata Read...

View Article

How to check the current status of Teradata database ?

Login to Teradata host (any node) and run below command: # pdestate -a PDE state is RUN/STARTED. DBS state is 4: Logons are enabled – Users are logged on

View Article

How to move Unix script to run in background after it was started?

Say for example, you started nz_groom Netezza script and then want to move it to background so that you cna disconnect your session without aborting the script. Just follow below steps to make this...

View Article


How to stop Teradata database?

Login to Teradata host (any node) and run below command: # tpareset -x Your Comments You are about to shutdown the database on the system ‘XX87289X’ Do you wish to continue (default: n) [y,n] y Wait...

View Article

How to check Teradata viewpoint version?

You can check the current version of viepoint by either of below two ways: 1) If you have access to viewpoint host server then connect to the viewpoint host via putty and rrun below command...

View Article


How to change root password in all Teradata nodes?

TO change the default root password of Teradat nodes you can either login to each node and do it manually. But if you have a larger TD system then possibly this may not be feasible. To avoid loggin in...

View Article

How to check active viewpoint host in cluster environment?

You can have your viewpoint configured in a standalone environment or in a cluster environment. If you have a cluster environment then you need to be aware of the active host before you plan to...

View Article


How to disable Query history in Netezza?

TO disable query history in Netezza follow below steps: 1) Create a new history configuration which will not collect any data SYSTEM(ADMIN)=> CREATE HISTORY CONFIGURATION hist_disabled HISTTYPE...

View Article

HOW TO INCREASE MAX STORAGE LIMIT FOR QUERY HISTORY CONFIGURATION?

HOW TO INCREASE MAX STORAGE LIMIT FOR QUERY HISTORY CONFIGURATION? NOTE: hist_disabled is the QHIST configuration which will not collect anything. And ALL_HIST is supposed to be the configuration that...

View Article

How to restart viewpoint DCS (data collector services) in Cluster environment?

To restart viewpoint DCS (data collector services) in cluster environment, you have to follow below steps: 1) Check which viewpoint server is active and standby. Viewpoint1:~#cat...

View Article
Browsing all 47 articles
Browse latest View live


Latest Images