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

Netezza system Logs

$
0
0

Some basic info about how and where Netezza system logs are stored, recycled and deleted.

- All system level logs are written under /nz/kit/log in respective directories
- Log files can have name like <pid>.<yyyy-mm-dd> depending on the log/component
- Each log file can have atleast 1 day data upto max of 7 days
- Each log file will have timestamp, severity and message
- Except postgress log all other log files are archived every day and 30 days log files are kept by system
- Postgress logs are moved to archive when it reached 1 GB size and max of 28 days archived postgress log files are kept
- Default retention of log files can be changed bu tfor that Neteza support help is needed

Read more on Netezza system Logs…


Sequence – Issue with Netezza restart?

$
0
0

In Netezza, sequence can be declared as 8-, 16-, 32-, or 64-bit integers and the cache size is a function of the number of distinct values in one complete cycle of the sequence (so it depends on the declared minvalue, maxvalue, and increment of the sequence).

Read more on Sequence – Issue with Netezza restart?…

How to find Netezza model type?

$
0
0

To find if Netezza system is a Mustang box, TwinFin or Striper by connecting to the server using putty:

1) Run Netezza provided support script nz_get_model

eg. Below was run on Mustang 10100 model
/export/home/nz->nz_get_model
10100SL

Read more on How to find Netezza model type?…

nzvacuumcat in Netezza

$
0
0

nzvacuumcat in Netezza is:

- Netezza background process which strats at Netezza boot time.All background processes are started by startupsvr background process
- During, Netezza boot time it invokes VACUUM command to groom system tables for faster table scans by removing deleted records and shrinking the system tables.
- When Netezza is running, it checks for database system table growth above 120 KB (checks every 60 secs) and invokes system table vacuum if it grows above 128 KB.
- VACUUM command takes exclusive locks on all system catalog tables before vacuuming the system tables.
- nzvacuumcat will shrink the database size only when Vacuum command runs succesfully.
- If it is not able to aquire locks, system will write ‘Could not acquire lock for lazy vacuum’ message in pg.log and will try again after some time.

Read more on nzvacuumcat in Netezza…

Row set limit in Netezza

$
0
0

Some info about row set limit in Netezza:

- We can set the maximum number of rows retrieved by a query at user level or group level.
- Rowset limit can be set upto 1 billion rows or set it to 0 for unlimited.
- Rowset limit only applied to user table and views. Queries to system table and view are not limied by this setting.
- To avoid issues with CTAS or “select * into” queries, user can disable the setting at session level. The setting will be disabled only for these two operations.
- User can run “SET ROWSETLIMIT_LEVEL=0″ to disable the rowset limit to perform above operation. To enable set the value back to 1.
- To check the status of rowset limit at session level run “SHOW ROWSETLIMIT_LEVEL”.
- When we disable row set limit at session level and tru to create table using CTAS or select * into , then it will not be suject to row limit if the table being created is a database table. IF external table is being created then the row set limit will still apply.

Read more on Row set limit in Netezza…

Nzstop vs Nzsystem stop

$
0
0

Difference between nzstop and nzsystem stop?

Nzstop –> Stops Netezza immediatelly by kiling the currently running queries. This is the recomended command to stop Netezza.
NOTE: You can run nzstart/nzstop directly on server only. You cannot issue these commands from a client machine.

Read more on Nzstop vs Nzsystem stop…

Distributed Replicated Block Device (DRBD) in Netezza

screen command – Unix

$
0
0

If you are connected to you Netezza server remotely using Putty or similar tool and have to run large scripts which will return output to screen then you can make use of screen command so taht you can re-connect to the session incase your connection is lost.

Read more on screen command – Unix…


Netezza Thermal Fault Event – Known Bug

$
0
0

Issue:
Thermal fault warning by TwinFin Server running on NPS v 6.0.5P5
NzEv-diskEncl Thermal_Fault 1122 @ 1st Rack, 7th DiskEnclosure for ServerName at 06-Nov-13, 01:14:22 EST

Exact Event Text:
Hostname ServerName
NzEvents 1
Event Thermal_Fault
Event Time 06-Nov-13, 01:14:22 EST
hwType diskEncl
hwLocation 1st Rack, 7th DiskEnclosure label slot-3 hwId 1122 currentValue $curValue errString Temperature reading is in missing state eventSource System initiated

Read more on Netezza Thermal Fault Event – Known Bug…

Core files in Netezza

$
0
0

Core file is generated when for some reason Netezza is not able to process some requests and hit some issue which result in Netezza server to dump all the contents of memory to a file for diagnostics purpose.

Read more on Core files in Netezza…

Error – Record size limit exceeded

$
0
0

ISSUE:
You may get below error message when running a SQL query with REPLACE function.
ERROR: 229008 : Record size limit exceeded

DESCRIPTION:
You will face this error when you are using SQL extension toolkit version 1.6.1. It is a know defect 78087 reported with IBM and still there is no fix.

Read more on Error – Record size limit exceeded…

How to find Netezza software support tools?

Netezza – InvalidateSharedInvalid: handled cache state reset

$
0
0

You may see messages like below in postgres logs (/nz/kit/log/postgres/pg.log):

DEBUG:InvalidateSharedInvalid: handled cache state reset

This is just a informational message and no action is required.
Reason why you see this message is because during system activity Netezza cache the catalog information. At a point in time when system finds that the catalog information cached is now obsolete it resets the cache information. When this reset happens it writes this informational message in postgres logs.

Read more on Netezza – InvalidateSharedInvalid: handled cache state reset…

Case sensitive object name – Issue & Resolution

$
0
0

ISSUE:
Getting error message like below, even when you can see the objects exists:
ERROR: Relation ‘TESTING’ does not exist
ERROR: Attribute ‘name’ not found

DESCRIPTION:
In Netezza we can create case-sensitive object names by enclosing the in double quotes (“”) while creating the objects. If object is not enclosed in double quotes then Netezza by default will consider it uppercase. Same is the scenario when we query these objects.

Read more on Case sensitive object name – Issue & Resolution…

How to read Resource Allocation Performance History (Nz Admin tool)

$
0
0

1

Group -> Name of GRA group
Allocated -> Min RSG set for a GRA group
Maximum -> Max RSG set for a GRA group
Allowed -> Based on the actual appliance usage the resources that a specific GRA group can get
Actual -> Actual resources that a GRA group is using
Short Jobs – Running -> Short running jobs (generally that take less than 2 sec)
Long Jobs – Running -> Long running jobs (generally that take more than 2 sec)
Short Jobs – Waiting -> Number of short jobs that went to waiting state because of GRA max for a group.
Long Jobs – Waiting -> Number of long jobs that went to waiting state because of GRA max for a group.

Read more on How to read Resource Allocation Performance History (Nz Admin tool)…


Netezza – Max object id

$
0
0

Maximum number of objectid’s accepted by Netezza is around 2.14 Billiion in V7 (around 1 Billion in V6). If your system start using OBJID greater than 1 Billion (in V7) then you will never be able to downgrade to NPS v6. Point to note here is that when ever you create any new object the object id increased and can never be reused even if you drop any objects. So object id allocation is always increasing.
Also note that objid count will increase by 10 when ever you create a table because internally 10 oids were reserved by NPS for table creation (look little strange but its true).

Read more on Netezza – Max object id…

Sequence Caching in Netezza – Undocumented Feature

$
0
0

Netezza have an undocumented feature (another undocumented Netezza stuff) that allows user to set the cache size instead of using the default which is around 100k. You should be thinking of using this feature if you heavily use sequences and also you perform a regular NPS restarts (like weekly vacuum, etc). In this scenario the sequence caching will help in reducing the wasted number of sequence keys thus lowering the risk of running out of max values.

Read more on Sequence Caching in Netezza – Undocumented Feature…

How to find NPS versions ever installed on server

Netezza internal process – bnrmgr

$
0
0

bnrmgr is on of the Netezza process which starts automatically when Netezza starts (All background processes are started by startupsvr background process). Main purpose of this process is to handle all the incoming requests for nzbackup and nzrestore commands. It launches a instance of backupsvr or restoresvr to handle each client instance.

Read more on Netezza internal process – bnrmgr…

Netezza – How to failover a disk in TwinFin box

$
0
0

Steps to failover a disk in TwinFin applicance:

1) If we have to failover a disk id# 1514, then first run below command to check its in which SPA.

nzds -id 1514 -detail
Data Slice Status SPU Partition Size (GiB) % Used Supporting Supporting Disks
Disks Locations
———- ——- —- ——— ———- —— ———- ———————
43 Healthy 1643 2 356 59.07 1514 spa1.diskEncl3.disk11
1535 spa1.diskEncl4.disk11
44 Healthy 1643 3 356 59.06 1514 spa1.diskEncl3.disk11
1535 spa1.diskEncl4.disk11

Read more on Netezza – How to failover a disk in TwinFin box…

Viewing all 47 articles
Browse latest View live